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.7rc1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c6a24ab06764d259fcc6d5c6cbf4228794add04c0a99f2ae0181b376c9fda09 |
|
MD5 | 51f21505d9d9064585dede4586a9eb25 |
|
BLAKE2b-256 | 4b146a92528e728b6f5914a8f78f035b626d6f689c82f646663d120f73176425 |
Hashes for backend.ai_common-24.3.7rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9e04a70a484c2f8dc80c4eb09bdf57459ae508731324e39f1809eebd0643bfe |
|
MD5 | 22f0c0306cf3592042244cdc329a9ce2 |
|
BLAKE2b-256 | 762108020728d95d37a89832595479cd4db0dad101f55bec02ee811dcf1f40a1 |