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.4rc1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b10cbfee176a2fc4311fdb74ab8c509cb51982773105888d80d713ad9fa84dc |
|
MD5 | 4e3a25485ad7a7f13df015c4ff7b3fd1 |
|
BLAKE2b-256 | d063de97c1ec423b96dbce9bd43e4c948445deffa8210c6d999da530f19d92ee |
Hashes for backend.ai_common-24.3.4rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97c5ad0532bfbde25a0f08945e66d82c210d3b707115c7d968423a7389e8e0ba |
|
MD5 | ccc1bb4116b4029f0d8875ef90f187e4 |
|
BLAKE2b-256 | 84243345b654fff20e2b92579217d47762663e488235b10e90a9e5d213e23749 |