{"id":21423836,"url":"https://github.com/ossystems/python-hydra-sdk","last_synced_at":"2025-10-12T01:20:38.055Z","repository":{"id":17529848,"uuid":"82175795","full_name":"OSSystems/python-hydra-sdk","owner":"OSSystems","description":"Hydra SDK for Python","archived":false,"fork":false,"pushed_at":"2023-01-13T08:02:07.000Z","size":51,"stargazers_count":16,"open_issues_count":1,"forks_count":10,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-07-14T09:12:37.669Z","etag":null,"topics":["oauth2","python","sdk"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OSSystems.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-16T11:56:56.000Z","updated_at":"2023-07-25T14:07:14.000Z","dependencies_parsed_at":"2023-01-16T21:15:38.835Z","dependency_job_id":null,"html_url":"https://github.com/OSSystems/python-hydra-sdk","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/OSSystems/python-hydra-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSSystems%2Fpython-hydra-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSSystems%2Fpython-hydra-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSSystems%2Fpython-hydra-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSSystems%2Fpython-hydra-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OSSystems","download_url":"https://codeload.github.com/OSSystems/python-hydra-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSSystems%2Fpython-hydra-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279009736,"owners_count":26084645,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["oauth2","python","sdk"],"created_at":"2024-11-22T21:18:26.425Z","updated_at":"2025-10-12T01:20:38.011Z","avatar_url":"https://github.com/OSSystems.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Hydra SDK [![Build Status](https://travis-ci.org/OSSystems/python-hydra-sdk.svg?branch=master)](https://travis-ci.org/OSSystems/python-hydra-sdk) [![Coverage Status](https://coveralls.io/repos/github/OSSystems/python-hydra-sdk/badge.svg?branch=master)](https://coveralls.io/github/OSSystems/python-hydra-sdk?branch=master)\n\nThis package provides a Python SDK\nfor [Hydra](https://github.com/ory/hydra) OAuth2 and OpenID Connect\nserver made in Go.\n\n## Installing\n\n```\npip install hydra-sdk\n```\n\n## Basic usage\n\nDocumentation is still in progress...\n\n```python\nfrom hydra import Hydra\n\n# First, create a Hydra client\nhydra = Hydra(publichost='http://localhost:4444',adminhost='http://localhost:4445', client='client-server', secret='secret-server')\n\n# Get an access token\ntoken = hydra.get_access_token()\n\n# Create a client\nclient = Client(\n    name='new-client',\n    secret='client-secret',\n    scopes=['devices', 'products'],\n    redirect_uris=['http://localhost/callback'],\n)\nclient_id = hydra.clients.create(client).id\n\n# Get a client\nclient = hydra.clients.get(cliente_id)\n```\n\n## Covered API\n\nHydra API coverage is a work in progress. You can check what is\nalready developed in the following list:\n\n- Public Endpoints\n  - [ ] JSON Web Keys Discovery\n  - [ ] OpenID Connect Discovery\n  - [ ] The OAuth 2.0 authorize endpoint\n  - [x] Revoke OAuth2 tokens\n  - [ ] The OAuth 2.0 token endpoint\n  - [ ] OpenID Connect Userinfo\n- Administrative Endpoints\n  - [x] List OAuth 2.0 Clients\n  - [x] Create an OAuth 2.0 client\n  - [x] Get an OAuth 2.0 Client.\n  - [x] Update an OAuth 2.0 Client\n  - [x] Deletes an OAuth 2.0 Client\n  - [ ] Retrieve a JSON Web Key Set\n  - [ ] Update a JSON Web Key Set\n  - [ ] Generate a new JSON Web Key\n  - [ ] Delete a JSON Web Key Set\n  - [ ] Fetch a JSON Web Key\n  - [ ] Update a JSON Web Key\n  - [ ] Delete a JSON Web Key\n  - [x] Get consent request information\n  - [x] Accept an consent request\n  - [x] Reject an consent request\n  - [x] Get an login request\n  - [x] Accept an login request\n  - [x] Reject a login request\n  - [x] Lists all consent sessions of a user\n  - [x] Revokes all previous consent sessions of a user\n  - [x] Revokes consent sessions of a user for a specific OAuth 2.0 Client\n  - [x] Logs user out by deleting the session cookie\n  - [x] Invalidates a user's authentication session\n  - [x] Flush Expired OAuth2 Access Tokens\n  - [x] Introspect OAuth2 tokens\n\n## License\n\nPython Hydra SDK is released under MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fossystems%2Fpython-hydra-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fossystems%2Fpython-hydra-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fossystems%2Fpython-hydra-sdk/lists"}