Python Resource Allocation API
Project description
Purpose
The objective of this module is to provide a common API to the configuration registy used to store service instance properties using KeyValue stores like consul, etcd or zookeeper.
Usage examples
Basic usage examples:
import registry registry.connect() instance = registry.get_cluster_instance(user='jlopez', framework='cdh', flavour='5.7.0', id='1') # Alternatively you can retrieve it by DN instance = registry.get_cluster_instance(dn='jlopez/cdh/5.7.0/1') nodes = instance.nodes services = instance.services for node in nodes: print node.status (user, framework, flavour, id) = registry.register(user='jlopez', framework='cdh', flavour='5.7.0', nodes=nodes, services=services)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for configuration-registry-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65863105a6b5b75f5440c8a582f06fc0873389e5f7be345d7e487566a300219b |
|
MD5 | f914f4814dd63023630c2376be56eb53 |
|
BLAKE2b-256 | 326cd84cf21c0c20dbecfb2240e68d2c8b6794db9186472f91b02dbd36aca07e |