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.3rc1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a11dd8283764761a896b085df697be2fec2397642015fdb24ec1d987c16e82d |
|
MD5 | eacf9edc0c24a9352394b5202e1fde84 |
|
BLAKE2b-256 | 868a317aa867fe485ebf7fe9b447f21eea5a8870ff82a3f4d74fe6f63dc3f839 |
Hashes for backend.ai_common-24.3.3rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d5fd043af3d0a0f597a53c4d9d6c2aa554e0c2404c617bc9a0669f01b3e9ca4 |
|
MD5 | cd2d0dee6ebd8d3e9215c08234d8b62a |
|
BLAKE2b-256 | 7a41cf89400c77f85178613fee72c4033b4caf1cd03bc303b5168e60dad5fc07 |