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.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c02b292918ef924551ceace5ced2cdc441727722e1f81c514c02a7937d0670d |
|
MD5 | 820548ef611e85a6fd12694a80c5889c |
|
BLAKE2b-256 | bbbfa8c7270eca372db06d21b008cfb7b967ac36699c4ff2cc764f89514a9d5a |
Hashes for backend.ai_common-24.3.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8913bc7af25ce9effa548bd49978be6339a4226d546262aa823d4a5d1c5eec3f |
|
MD5 | da4b24291b545b021798625eb97d01e9 |
|
BLAKE2b-256 | 6f1232f8605885a18c17002b4ee08950f5a8289b4c71c8cf88ff74da03086a9e |