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-23.9.9rc1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8f0e098b30562910a14f9d7735cec8b2d06d0bd6b9d49fec6af7fad3e4a2137 |
|
MD5 | da85eadec313277f2dc5713136aa4e2f |
|
BLAKE2b-256 | 17937b553296240193da50bd53722b1f2171967460d5a20b6bbb958ad06ac30a |
Hashes for backend.ai_common-23.9.9rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f6df56b9d00bea5b4e4b255ec1460075ac66e971f25dd52e6b8f60f447a7a8a |
|
MD5 | 48e18f3afdd3179bbb25317743cc69ec |
|
BLAKE2b-256 | 6085d41218146bd2f17817dcaef3f9bca019401ad9048a775b1cc9d2bbebbae7 |