python client library for Chef Server
Project description
import chef
client = chef.ChefClient('https://api.opscode.com')
# not to be confused with chef-client, the agent :)
client.authenticate('chef-user', '~/chef-user.pem')
response = client.get('/users/chef-user')
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'}
Install
Before installing okchef, see the current installation instructions for requests-chef: https://github.com/samstav/requests-chef#install
If you don’t feel like reading those, you can use --process-dependency-links (for now)
$ pip install -U --process-dependency-links okchef
Preferably, you’ve read the install for requests-chef, so this will work:
# -U ensures you get the latest version $ pip install -U okchef
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
okchef-1.2.3.tar.gz
(4.6 kB
view details)
Built Distribution
File details
Details for the file okchef-1.2.3.tar.gz
.
File metadata
- Download URL: okchef-1.2.3.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f75bdc74c47835a45dbaf1e6fefa0d9e4b25a801ce3211f6949dc71577592c3c |
|
MD5 | 97b1a3830a6771fa0bf377e47ad1aa92 |
|
BLAKE2b-256 | 8af3a57fb0f91a244cf44c5ba47ff80f9dee624f5f3cd0270b2cc4fad8693e98 |
File details
Details for the file okchef-1.2.3-py2.py3-none-any.whl
.
File metadata
- Download URL: okchef-1.2.3-py2.py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d497e2173873b2324e3f38c411fe57367d24424d8d66609292cbf8812f20549 |
|
MD5 | 250fcc74196fb1f3a6cb4ec49bd2c3be |
|
BLAKE2b-256 | 5095c97831cdf1ca14dda0cbd97f99e82957912b56cf6a6dcf2e811b3ebf31a1 |