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
File details
Details for the file backend_ai_common-24.9.0.tar.gz
.
File metadata
- Download URL: backend_ai_common-24.9.0.tar.gz
- Upload date:
- Size: 78.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38f4cb3f780acce33f68950c6cac2f6a426421ad968170cb8ff7cbbed55021a3 |
|
MD5 | f17f1c17df717561d0b913cb087a3162 |
|
BLAKE2b-256 | 7cf52d734abeaa5724634da874e3a8ebf82fb3b29220df01a07968e7d0b03654 |
File details
Details for the file backend.ai_common-24.9.0-py3-none-any.whl
.
File metadata
- Download URL: backend.ai_common-24.9.0-py3-none-any.whl
- Upload date:
- Size: 95.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3da4438565b3cb34e2bdc17d1a6f208d5aed2026d6cc8e5a1228e24d0f78003 |
|
MD5 | 7bf35f4514b59b30132160daff273d12 |
|
BLAKE2b-256 | e1363f1942fb270b750d08d68fb7090002386320f2a26dd2b5b5f90ee56794e2 |