Set of libraries commonly used by multiple SRE projects
Project description
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
Use
Just import the library you want. Example:
>>> from sretoolbox import container >>> image = container.Image('fedora') >>> if image: ... print('Image exists!') ... Image exists! >>>
Develop
Install the development requirements:
$ make develop
Run the code checks and tests:
$ make check
Release
Edit the VERSION file and change the new version. Submit a pull request to master. When it is merged, create a tag and push it to app-sre/sretoolbox.
This will trigger a CI job that 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](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.
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 Distributions
Built Distribution
File details
Details for the file sretoolbox-2.5.4-py3-none-any.whl
.
File metadata
- Download URL: sretoolbox-2.5.4-py3-none-any.whl
- Upload date:
- Size: 35.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.8.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a66a1e049e8ee05352feb26ed03ab8fd1865311c4b085112d9a19477f6f5e3b0 |
|
MD5 | f85f884e21181691832d6cddd1b0bf97 |
|
BLAKE2b-256 | e3544d0d944c4a5679fc8c1c33476ca1f86dd7c59a80cf491ffc9133cc662318 |