SRE Toolbox
Set of libraries commonly used by multiple SRE projects:
container.Image: class for container image inspection.container.Skopeo: wrapper around Skopeo.utils.replace_values: deep replace of object values according to values map.utils.retry: decorator to add resilience to function calls.
Install
From PyPI:
pip install sretoolbox
From source:
python setup.py install
Usage
Just import the library you want. Example:
>>> from sretoolbox import container
>>> image = container.Image('fedora')
>>> if image:
... print('Image exists!')
...
Image exists!
>>>
Development
Install the development requirements:
make develop
Run the code checks and tests:
make check
Release
Bump the version number in pyproject.toml. Submit a pull
request to master. When it is merged, a Konflux job will publish the package on pypi.
License
The default license of the code in this repository is http://www.apache.org/licenses/LICENSE-2.0. That applies for most of the code here, as they were written from scratch, but exceptions exist. In any case, each module carries the corresponding licensing information.
Release files for sretoolbox 4.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sretoolbox-4.0.1.tar.gz | 22.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sretoolbox-4.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 59.4 kB
Release files / sretoolbox-4.0.1.tar.gz
| Download URL | sretoolbox-4.0.1.tar.gz |
|---|---|
| Size | 22.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
84556894518154005766c75b49b547890020b7b473def3fb04dfe68a3b603179
|
|
BLAKE2b-256 checksum How to use checksums |
4a2e37a8e3a4bf0a42c47e519f6ce1df85131e492e8fccc875535d0eec97888f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Red Hat Enterprise Linux","version":"10.2","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / sretoolbox-4.0.1-py3-none-any.whl
| Download URL | sretoolbox-4.0.1-py3-none-any.whl |
|---|---|
| Size | 37.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ca3a4447c908ae3bd3760cdc66a9b6707aa10e7ad0892638d70c7c29c13e9871
|
|
BLAKE2b-256 checksum How to use checksums |
999cd6b0427623d978f68eed40872c6ab34ecddfbc23f5ae90532b1aa1bcfd64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Red Hat Enterprise Linux","version":"10.2","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|