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.5.tar.gz
(4.7 kB
view details)
Built Distribution
File details
Details for the file okchef-1.2.5.tar.gz
.
File metadata
- Download URL: okchef-1.2.5.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f32502702526195c01e9b104e70738d416b0458c7ee9f6b524a09a468185cde |
|
MD5 | 5117b67533a95b400de11b7238a8b64f |
|
BLAKE2b-256 | 438b085a10ca67b47e1f4addcae72b4f4a65b76ce01700cd52cc00122eb435a5 |
File details
Details for the file okchef-1.2.5-py2.py3-none-any.whl
.
File metadata
- Download URL: okchef-1.2.5-py2.py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaf744a17bf91a88d6a751cfd568e2e7f129e77953b023fba72c40d74874f0be |
|
MD5 | 46a366bc5a82da06e47e6b9b1b73a180 |
|
BLAKE2b-256 | 0bbf0bf1a8db2b5957e87d030d707c5da30243617a7c8372364beadd07b1e5dc |