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.10rc1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3c7a79d5c0b0196fdaff7a995325787ee503343a44e20742d0c21bdbd6dae82 |
|
MD5 | b61081c9d9c3a08e7af3c3242deb6c02 |
|
BLAKE2b-256 | 8156c88de10f059242c32db034828ed140d31ff7200393c1c767c86a6089f4ff |
Hashes for backend.ai_common-24.3.10rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e5e25f0cc24509a2af340c3963440b924ef5f5f2bd20d82a1fff017fe6ac674 |
|
MD5 | 0575a240139a82f32f2c45b827e4acdb |
|
BLAKE2b-256 | 169a1d75a7e713cc25dc568f030553a8f7c036aa17f5cb91e23ff5b3730af3cb |