Skip to main content

python client library for Chef Server

Project description

latest Circle CI Coverage Status Requirements Status

import chef

client = chef.ChefClient('')
# not to be confused with chef-client, the agent :)
client.authenticate('chef-user', '~/chef-user.pem')
response = client.get('/users/chef-user')
{'display_name': 'chef-user',
 'email': '',
 '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


Before installing okchef, see the current installation instructions for requests-chef:

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

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 hashes)

Uploaded Source

Built Distribution

okchef-1.2.5-py2.py3-none-any.whl (7.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page