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.4b2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e000b948b4c74789519e4b6f0d5aea31c76febd512d589425eaf000d11b1a2e2 |
|
MD5 | 476989b8b38900fa2f978345f20d8f1e |
|
BLAKE2b-256 | 11d48d1a1d8ecbd9ce28932f7e8fc438f26a549dba4dee16863a64460d5abe3a |
Hashes for backend.ai_common-24.3.4b2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a5e6b18fbfe4c54991431273ef5381668cabcfb7b06ccd1c1aa4893dd24695a |
|
MD5 | 1cc732e9bea2969a8dc6843a0dc24cd4 |
|
BLAKE2b-256 | f81d84452c5c71c56224a7737faa6d14a97eef03fbdcff130343c7ff50648060 |