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.2.tar.gz
(4.6 kB
view details)
Built Distribution
File details
Details for the file okchef-1.2.2.tar.gz
.
File metadata
- Download URL: okchef-1.2.2.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb41feb0c1eceec31065550e8fc88682faa70a377fc54200487f0c9612c810c9 |
|
MD5 | 24cae80a09921ee04c35bef86a4fd8e8 |
|
BLAKE2b-256 | 1ab7df2cbf48c7444054f95698f2061c2a6d1e89aea1a2a8f50573487c483a88 |
File details
Details for the file okchef-1.2.2-py2.py3-none-any.whl
.
File metadata
- Download URL: okchef-1.2.2-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 | d35ec9882db44e6f66b7090cc47a954427a7e153dfd340437619ad48b398f522 |
|
MD5 | ab26ed33533193c196e810b5e74850e0 |
|
BLAKE2b-256 | 1c0904091bb1bdcaa3fe113b73ddd4593ca1026b463b7b974cf352629ca97a61 |