Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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')
Release History

Release History

This version
History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
resource-allocator-0.1.0.tar.gz (2.3 kB) Copy SHA256 Checksum SHA256 Source Apr 27, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting