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.0a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16a513f1f42cb71e94a946126b16bfddb0c38b14bb65a590e7f177fa3324862e |
|
MD5 | d0c8f9542d0a689f11f40e4ecb675833 |
|
BLAKE2b-256 | aab09332f5d73fc7bb67090de3840d634329fa896cf5a754e6d037afad5eca48 |
Hashes for backend.ai_common-23.3.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a3d79b6f9e4fe60e4a33a42e5d2c56577807fb4a83f9e8f53d3e409b7a8c06c |
|
MD5 | 478cedc91c3131f3b488838148ed880b |
|
BLAKE2b-256 | 686952ffc38a17fb897ea4bdd9d977729094070105e9a7f1563427d8076dbe7c |