Skip to main content

Chef Authentication protocol support for Python-Requests

Project description

latest Circle CI Coverage Status Requirements Status

Chef auth support for Python-Requests

import requests
import requests_chef

auth = requests_chef.ChefAuth('chef-user', '~/chef-user.pem')
response = requests.get('',
                        headers={'X-Chef-Version': '12.0.2'},
{'display_name': 'chef-user',
 'email': '',
 'first_name': 'Chef',
 'last_name': 'User',
 'middle_name': '',
 'public_key': '-----BEGIN PUBLIC KEY-----\nMIIBIj...IDAQAB\n-----END PUBLIC KEY-----\n',
 'username': 'chef-user'}

See samstav/okchef first, since thats generally more useful. okchef uses requests-chef to sign and authenticate requests.


This project currently requires a fork of pyca/cryptography due to the following related issues:


First, install this fork of cryptography directly from github.

$ pip install git+

If you don’t do this first, you’d have to use the (deprecated, scheduled for removal) --process-dependency-links option through pip, since pip no longer respects dependency links by default (as of pip 1.5).

$ pip install --process-dependency-links requests-chef

Project details

Download files

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

Files for requests-chef, version 0.1.7
Filename, size File type Python version Upload date Hashes
Filename, size requests_chef-0.1.7-py2.py3-none-any.whl (8.8 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size requests-chef-0.1.7.tar.gz (5.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page