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-22.6.0.dev2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eef0ea867b3b8be237a270ba8bfd4857ea6c12c12349c2676a28ceb108a5a4d0 |
|
MD5 | 8700fe4c528661dc3b250949bafc118a |
|
BLAKE2b-256 | 119222eed0c2013f30c14be655917b0d0bc6961129c114abc5a3b0231d3e0478 |
Hashes for backend.ai_common-22.6.0.dev2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6088655561ae0971841e86c11e12b5c6eeedb99c192c775f1e70b7565620675d |
|
MD5 | d11692687f7e6c70e751ff63f4211cf7 |
|
BLAKE2b-256 | 5af8ff6f9f81fcef92eed345855cf288fc2319f27d353fde1d138e7d0d452f8c |