{"id":18320864,"url":"https://github.com/bazaarvoice/python-hmac-auth","last_synced_at":"2025-04-05T22:32:06.178Z","repository":{"id":15911219,"uuid":"18652875","full_name":"bazaarvoice/python-hmac-auth","owner":"bazaarvoice","description":"Python SDK for https://github.com/bazaarvoice/jersey-hmac-auth","archived":false,"fork":false,"pushed_at":"2021-04-29T20:59:58.000Z","size":26,"stargazers_count":12,"open_issues_count":4,"forks_count":12,"subscribers_count":78,"default_branch":"master","last_synced_at":"2024-10-07T18:08:50.704Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bazaarvoice.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":"2014-04-10T21:42:44.000Z","updated_at":"2022-04-20T00:52:01.000Z","dependencies_parsed_at":"2022-09-10T13:50:50.212Z","dependency_job_id":null,"html_url":"https://github.com/bazaarvoice/python-hmac-auth","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazaarvoice%2Fpython-hmac-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazaarvoice%2Fpython-hmac-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazaarvoice%2Fpython-hmac-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazaarvoice%2Fpython-hmac-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bazaarvoice","download_url":"https://codeload.github.com/bazaarvoice/python-hmac-auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223221193,"owners_count":17108527,"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","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-05T18:17:42.786Z","updated_at":"2024-11-05T18:17:43.369Z","avatar_url":"https://github.com/bazaarvoice.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# python-hmac-auth\n\nHMAC authentication for Python client libraries.\n\nThis library makes it easy to add support for HMAC authentication in Python clients that:\n\n1. Interface with a REST API that uses\n[jersey-hmac-auth](https://github.com/bazaarvoice/jersey-hmac-auth) to implement HMAC authentication, and \n2. Use the Python [Requests](http://docs.python-requests.org) library to make API calls. \n\nIt works by providing a custom authenticator for the Requests library that modifies outgoing API calls to encode\nthe requests for HMAC authentication.\n\n## Getting Started\n\nTo install:\n\n```python\npip install python-hmac-auth\n```\n\nIn your code, import the `HmacAuth` class and specify it on the `auth` parameter when issuing API calls:\n\n```python\nimport requests\nfrom python_hmac_auth import HmacAuth\n\nresponse = requests.get('http://example.com/api', auth=HmacAuth('your_api_key', 'your_secret_key'))\n```\n\nIf you need to you can adjust the **names** of the query parameter and headers used by HMAC by passing \nvalues for:\n* api_key_query_param\n* signature_http_header\n* timestamp_http_header\n* version_http_header\nto the constructor as named parameters.\n\nSee the User Guide to find the default names for these headers.\n\nChanges in the client must also be made at the server or authentication will not work.\n\n## User Guide\n\nSee the [User Guide](https://github.com/bazaarvoice/jersey-hmac-auth/wiki) for jersey-hmac-auth for more details \nabout HMAC authentication on the server and for clients libraries.\n\n## Contributing\n\nTo get the code:\n\n```sh\n$ git clone git@github.com:bazaarvoice/python-hmac-auth.git\n```\n\nTo submit a new request or issue, please visit the [Issues](https://github.com/bazaarvoice/python-hmac-auth/issues) page.\n\nPull requests are always welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbazaarvoice%2Fpython-hmac-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbazaarvoice%2Fpython-hmac-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbazaarvoice%2Fpython-hmac-auth/lists"}