Skip to main content

okchef

latest Circle CI Coverage Status Requirements Status

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'}

Authentication & Authorization

okchef uses the auth handler from the requests-chef library at https://github.com/samstav/requests-chef

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)

Source distribution for okchef 1.2.5
File Size Uploaded
okchef-1.2.5.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for okchef 1.2.5
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.2.5 This release

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

1 release file

1.1.3

1 release file

1.1.2

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.0

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page