{"id":20697774,"url":"https://github.com/opennti/nti.tahrir-api","last_synced_at":"2026-04-24T13:03:04.796Z","repository":{"id":154601018,"uuid":"107185574","full_name":"OpenNTI/nti.tahrir-api","owner":"OpenNTI","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-24T18:06:03.000Z","size":265,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-11T02:51:36.070Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenNTI.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-16T21:34:38.000Z","updated_at":"2023-04-24T15:18:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"e82d9f41-82bf-4b85-8b02-d9071e87a8bc","html_url":"https://github.com/OpenNTI/nti.tahrir-api","commit_stats":null,"previous_names":[],"tags_count":78,"template":false,"template_full_name":null,"purl":"pkg:github/OpenNTI/nti.tahrir-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenNTI%2Fnti.tahrir-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenNTI%2Fnti.tahrir-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenNTI%2Fnti.tahrir-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenNTI%2Fnti.tahrir-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenNTI","download_url":"https://codeload.github.com/OpenNTI/nti.tahrir-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenNTI%2Fnti.tahrir-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32224413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T10:26:35.452Z","status":"ssl_error","status_checked_at":"2026-04-24T10:25:27.643Z","response_time":64,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T00:19:45.090Z","updated_at":"2026-04-24T13:03:04.781Z","avatar_url":"https://github.com/OpenNTI.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Tahrir-API\n==========\n\nAPI for interacting with the Tahrir database.  Based on the `Tahrir\n\u003chttps://github.com/fedora-infra/tahrir\u003e`_ database model written by `Ralph\nBean \u003chttps://github.com/ralphbean\u003e`_. There are two classes that can be used\nin this module. The first is the ``TahrirDatabase`` class located in\n``tahrir_api.dbapi`` and the second is the database model located in\n``tahrir_api.model``. The ``TahrirDatabase`` class is a high level way to\ninteract with the database. The model is used for a slightly more low level way\nof interacting with the database. It allows for custom interactions with the\ndatabase without having to use the ``TahrirDatabase`` class.\n\nCreating a Badge\n================\n\nThis is an example of creating a badge via Tahrir-API:\n\n.. code-block:: python\n\n    from tahrir_api.dbapi import TahrirDatabase\n\n\n    db = TahrirDatabase('backend://badges:badgesareawesome@localhost/badges')\n\n    origin = 'http://foss.rit.edu/badges'\n    issuer_name = 'FOSS@RIT'\n    org = 'http://foss.rit.edu'\n    contact = 'foss@rit.edu'\n\n    issuer_id = db.add_issuer(origin, issuer_name, org, contact)\n\n    badge_name = 'fossbox'\n    image = 'http://foss.rit.edu/files/fossboxbadge.png'\n    desc = 'Welcome to the FOSSBox. A member is you!'\n    criteria = 'http://foss.rit.edu'\n\n    db.add_badge(badge_name, image, desc, criteria, issuer_id)\n\n\nAwarding a Badge\n================\n\nThis is an example of awarding a badge via Tahrir-API:\n\n.. code-block:: python\n\n    from tahrir_api.dbapi import TahrirDatabase\n\n\n    db = TahrirDatabase('backend://badges:badgesareawesome@localhost/badges')\n\n    badge_id = 'fossbox'\n    person_email = 'person@email.com'\n    issued_on = None\n\n    db.add_person(person_email)\n    db.add_assertion(badge_id, person_email, issued_on)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopennti%2Fnti.tahrir-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopennti%2Fnti.tahrir-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopennti%2Fnti.tahrir-api/lists"}