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.9b1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 054e90ad68ae85b5ccba465494620171727524341958e641638e3ef5f6f28157 |
|
MD5 | 1ff150705a7b20c28f4d7a2c1260ef62 |
|
BLAKE2b-256 | 1f9e9ce8a8720dbcf18fd14b9382f9059985caa63674be7afd0a052717f9a111 |
Hashes for backend.ai_common-24.3.9b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 829c373ecbea5ff6f80922ef05251035bd1cadea8f4b8329803a4442a48d2732 |
|
MD5 | bdb799be1a420be5c456e7b7bf70f904 |
|
BLAKE2b-256 | 442b2b7db6b66f79c3c04f1fa40fa63702af08a01c256af7f807f543372e7b18 |