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-24.3.7b4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5f31170fbeca9f578403818c636012c9e30717328eb5ac02b4118b6a3014935 |
|
MD5 | 9826895e74b3be7b533f58cd62f34dae |
|
BLAKE2b-256 | 0d2aec7b30330253e6f6d5d963648d460cc82b7e3f7f34d37354fc65fcbd035c |
Hashes for backend.ai_common-24.3.7b4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6fd2648fdc6ec0d6d6b361a38f95d67384ae621564d48db35e64969f515985c |
|
MD5 | 4479b96f7bb77e1102633138fec1d008 |
|
BLAKE2b-256 | 9858b7bf5a7453a7ae94dfe13a9e54dc980ece5daeb4b8a1529682b76529da5c |