Skip to main content

A simple requests based wrapper for a Chef server api.

Project description

Cheffy provides a method-based access to Chef server api. Typical usage often looks like this:

# -*- coding: utf-8 -*-
from cheffy.client import Client
from cheffy.rsa import Key

chef_host = ''
chef_user = 'john'

with open("private.pem", "r") as f:
    key = Key(

chef_client = Client(key, chef_host, chef_user)

# get clients list
# chef_request its a dict with the request data to the chef
# Its handy for logging.
chef_request, chef_response = chef_client.get('/clients')

clients = json.loads(chef_response.text)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cheffy, version 0.3.8
Filename, size File type Python version Upload date Hashes
Filename, size cheffy-0.3.8.tar.gz (6.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page