Skip to content

fhats/py_razor_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Python client for the Razor API

Build Status

py_razor_client is a Python client for Puppetlab's excellent Razor imaging project.

In Your Code

>>> from py_razor_client.razor_client import RazorClient
>>> client = RazorClient("localhost", 8080)
>>> client.collections
set([u'tags', u'repos', u'brokers', u'policies', u'nodes'])
>>> client.commands
set([u'unbind_node', u'create_installer', u'delete_node', u'create_policy', u'delete_tag', u'create_tag', u'create_broker', u'delete_repo', u'enable_policy', u'create_repo', u'update_tag_rule', u'disable_policy'])
>>> client.nodes()
[{u'spec': u'http://api.puppetlabs.com/razor/v1/collections/nodes/member', u'name': u'node1', u'id': u'http://localhost:8080/api/collections/nodes/node1'}]

About

A simple Python client for the Razor imaging tool

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages