Chef Authentication protocol support for Python-Requests
Project description
Chef auth
support for Python-Requests
import requests_chef
auth = requests_chef.ChefAuth('chef-user', '~/chef-user.pem')
response = requests.get('https://api.chef.io/users/chef-user',
headers={'X-Chef-Version': '12.0.2'},
auth=auth)
response.json()
{'display_name': 'chef-user',
'email': 'chef-user@example.com',
'first_name': 'Chef',
'last_name': 'User',
'middle_name': '',
'public_key': '-----BEGIN PUBLIC KEY-----\nMIIBIj...IDAQAB\n-----END PUBLIC KEY-----\n',
'username': 'chef-user'}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
requests-chef-0.0.3.tar.gz
(4.6 kB
view details)
File details
Details for the file requests-chef-0.0.3.tar.gz
.
File metadata
- Download URL: requests-chef-0.0.3.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91fe8de254ea633490a5bdc77bff05cb5927b76fbec6e4bf609ddbfa7db74df2 |
|
MD5 | 834ca388d3040f224f9c1146e20a05a5 |
|
BLAKE2b-256 | f0498b3481094bf4977e788a1a37d3e0a3decb0240234dcd9165d0ac53f80097 |