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.3.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6c857d7988e01434b6715c8c9bfd0ec734d64c9a4242f1320a563155162a158 |
|
MD5 | 94d031d42076afa4a2f83aac1fe95dfe |
|
BLAKE2b-256 | f8f5ea107d78a570aa47da9c1765462dcbfb5d5cccc98d5a18d7a4f499548ec6 |
Hashes for backend.ai_common-23.3.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06b38936f8f838463e3e9b6c040ad3a17a7d2a9b4589ab9506ed300033be71c3 |
|
MD5 | f8d4e7270ec391dc2df628be3a8e852f |
|
BLAKE2b-256 | 3be9ddf326babfbd5f6d8087b04cde7fc9d9042d20e4b40a8f68c608902272ef |