Backend.AI commons library
Project description
Backend.AI Commons
Common utilities library for Backend.AI
Installation
$ pip install backend.ai-common
For development
$ pip install -U pip setuptools
$ pip install -U -r requirements/dev.txt
Running test suite
$ python -m pytest
With the default halfstack setup, you may need to set the environment variable BACKEND_ETCD_ADDR
to specify the non-standard etcd service port (e.g., localhost:8110
).
The tests for common.redis
module requires availability of local TCP ports 16379, 16380, 16381,
26379, 26380, and 26381 to launch a temporary Redis sentinel cluster via docker compose
.
In macOS, they require a local redis-server
executable to be installed, preferably via brew
,
because docker compose
in macOS does not support host-mode networking and Redis cannot be
configured to use different self IP addresses to announce to the cluster nodes and clients.
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
Built Distribution
Hashes for backend.ai-common-22.9.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b039a89beea17e484895a4e62744746a5298060fd771a23644dc462d32c374f5 |
|
MD5 | 4f74da47b0edc661bfde1cd436ba4268 |
|
BLAKE2b-256 | 72c3850273f84465cb48596acc332af71d563c8ec5583bd65e176256d9469f0a |
Hashes for backend.ai_common-22.9.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30b89460c6c519dc32cb3cd15410a8add10cb16d6121de44d20a69d794a15b82 |
|
MD5 | 535b9a67753f84b129667090f5ff60c2 |
|
BLAKE2b-256 | 6a412f15466d12e5af277f1b02ed1bc1f027015a50e14afef5101daad172a752 |