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.0.dev3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d45cc768a5e3b50239df2258975c22cdffa989a766c85264c3d36d91e81d660 |
|
MD5 | 583548614185c1093b658ffbb5b4cc72 |
|
BLAKE2b-256 | 44a7b8fc1ebe4f9048e9c3dc3bb160cb5611fa2bd3dac4f4ee841346a6bf0486 |
Hashes for backend.ai_common-24.3.0.dev3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cddb87010a45c73f88987987ab3263e4f4daa870d61baa9e90d7bbc7f09d1fe3 |
|
MD5 | 776687aba158bf991d9c58ab9652828e |
|
BLAKE2b-256 | 7a2c76ee2b6be6633224b604972c8efee9ea573c683b1c0469d1b63d321f628a |