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.9.10rc4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b9af99cf23d44472320d6fd304f7a615cb02edd1b1e0b435ab22841fea5e629 |
|
MD5 | af4d7586e7fb60fc69ea9036e1481dd4 |
|
BLAKE2b-256 | cbe51b0a523a89453af712b67ff297336e3b2d14d3de865145725202b324570c |
Hashes for backend.ai_common-23.9.10rc4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a832331636e78af9591ae28a4a39e3519d485475819bb71f3abfe7e4ebd36c7 |
|
MD5 | 12479cc69579804d7432cfb027baef78 |
|
BLAKE2b-256 | 98f3b886358ee3ced52114c59d8c91747e6efc18d71dc20a815e9b6af3f4c7f2 |