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 = '123.123.123.123'
chef_user = 'john'

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

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.

Source Distribution

cheffy-0.3.8.tar.gz (6.3 kB view details)

Uploaded Source

File details

Details for the file cheffy-0.3.8.tar.gz.

File metadata

  • Download URL: cheffy-0.3.8.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cheffy-0.3.8.tar.gz
Algorithm Hash digest
SHA256 74f65767c3d6dea3c2b7e433b40f1a6e9feba28ba7689ff81f837ac586cdbf59
MD5 3f134ba48ba843799d3713066f299e61
BLAKE2b-256 0b657d62922dcd495533974d2566284afe655f0d13653f325b3d957de723d60e

See more details on using hashes here.

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