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.8rc1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86bb882a052ad997f72ad231a18f8f5097d7882009c8a66113b31618a8c3cf71 |
|
MD5 | 1de9b7e29534b0a2536f1032582a916b |
|
BLAKE2b-256 | 2cea19690f9e77b5067e542a1fde245cb683c9cfda0c996cb13d4edbdbaed661 |
Hashes for backend.ai_common-24.3.8rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a131047c425102b70dac5cde4b8d5b1d4f80f7e34a95e4deade157622ff31ad8 |
|
MD5 | 3ecdbe47f5a424fccfe3a261434a4fef |
|
BLAKE2b-256 | 17d6e754dfc0b61346b8c417e8d1d3a956bb8a4d72901678ad935eec2b77e65d |