okchef
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
Metadata
Release files for okchef 1.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| okchef-1.2.5.tar.gz | 4.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| okchef-1.2.5-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 11.8 kB
Release files / okchef-1.2.5.tar.gz
| Download URL | okchef-1.2.5.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f32502702526195c01e9b104e70738d416b0458c7ee9f6b524a09a468185cde
|
|
BLAKE2b-256 checksum How to use checksums |
438b085a10ca67b47e1f4addcae72b4f4a65b76ce01700cd52cc00122eb435a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / okchef-1.2.5-py2.py3-none-any.whl
| Download URL | okchef-1.2.5-py2.py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
eaf744a17bf91a88d6a751cfd568e2e7f129e77953b023fba72c40d74874f0be
|
|
BLAKE2b-256 checksum How to use checksums |
0bbf0bf1a8db2b5957e87d030d707c5da30243617a7c8372364beadd07b1e5dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |