Skip to main content

Python Resource Allocation API

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

Metadata

Release files for resource-allocator 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for resource-allocator 0.1.0
File Size Uploaded Provenance Actions
resource-allocator-0.1.0.tar.gz 2.3 kB Without provenance Details for resource-allocator-0.1.0.tar.gz

Release files / resource-allocator-0.1.0.tar.gz

Download URL resource-allocator-0.1.0.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3e369e8fdb89694b5ca0c83cc0225097c4b00417aab4f69e4b5de109579a5c4e
BLAKE2b-256 checksum
How to use checksums
c5f51045cadae7f59e8965c4ee64528188884f8da2d5b2ed0df33a274891f9e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for resource-allocator 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page