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.9.19.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5876dfddf2ecbdeb7e354d302f7274797f18024456bcdc64b450dea2e8f528f |
|
MD5 | 7dd84f92f2de01e56779a869092d978e |
|
BLAKE2b-256 | d886cc9f74f518dfb5396fadf6ec985bccbdc7d9e7a761566acfd22cb20f9dd6 |
Hashes for backend.ai_common-22.9.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7321c0cdc40d4fbc7eabf45287128b068e7b06027aa67b60357b7563f75132a |
|
MD5 | ada6efce42fd0dbf5206a1b201fb8b3a |
|
BLAKE2b-256 | 8c762937601691f587a865d5b76e09497d2b8c85e52dc64002cacd1475e144d2 |