Skip to main content

Python Resource Allocation API

Project description

Purpose

The objective of this module is to provide a common API to perform Resource Allocation (network addresses, disks) using a KeyValue store like consul, etcd or zookeeper as the persistence backend.

Usage examples

Basic usage examples:

import allocator

adresses = allocator.AddressManager()
adresses.get_free('private')
adresses.get_status('private', '10.112.254.101')
adresses.set_used('private', '10.112.254.101')
adresses.set_free('private', '10.112.254.101')

disks = allocator.DiskManager()
disks.get_free('node1.local')
disks.get_status('node1.local', '1')
disks.set_used('node1.local', '1')
disks.set_free('node1.local', '1')

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

resource-allocator-0.1.0.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file resource-allocator-0.1.0.tar.gz.

File metadata

File hashes

Hashes for resource-allocator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3e369e8fdb89694b5ca0c83cc0225097c4b00417aab4f69e4b5de109579a5c4e
MD5 e2e6cd5a3c82d23a86d2ca7af05fe672
BLAKE2b-256 c5f51045cadae7f59e8965c4ee64528188884f8da2d5b2ed0df33a274891f9e4

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