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.
Metadata
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 | Provenance | Actions |
|---|---|---|---|---|
| sretoolbox-4.0.1.tar.gz | 22.4 kB | Without provenance | Details for sretoolbox-4.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sretoolbox-4.0.1-py3-none-any.whl | Python 3 | none | any | Details for sretoolbox-4.0.1-py3-none-any.whl |
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}
|
Security for sretoolbox 4.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.