Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Python client for jersey-hmac-auth (

Project Description

# python-hmac-auth

HMAC authentication for Python client libraries.

This library makes it easy to add support for HMAC authentication in Python clients that:

1. Interface with a REST API that uses
[jersey-hmac-auth]( to implement HMAC authentication, and
2. Use the Python [Requests]( library to make API calls.

It works by providing a custom authenticator for the Requests library that modifies outgoing API calls to encode
the requests for HMAC authentication.

## Getting Started

To install:

pip install python-hmac-auth

In your code, import the `HmacAuth` class and specify it on the `auth` parameter when issuing API calls:

import requests
from python_hmac_auth import HmacAuth

response = requests.get('', auth=HmacAuth('your_api_key', 'your_secret_key'))

## User Guide

See the [User Guide]( for jersey-hmac-auth for more details
about HMAC authentication on the server and for clients libraries.

## Contributing

To get the code:

$ git clone

To submit a new request or issue, please visit the [Issues]( page.

Pull requests are always welcome.

Release History

This version
History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(12.5 kB) Copy SHA256 Hash SHA256
2.7 Wheel Aug 22, 2014
(7.1 kB) Copy SHA256 Hash SHA256
Source Aug 22, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting