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
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
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
sretoolbox-0.9.2-py3-none-any.whl
(15.5 kB
view hashes)
Close
Hashes for sretoolbox-0.9.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9794b79a3e3fac48be1ebe19ad425649bc9a056351b81649e3823596cae1410b |
|
MD5 | 719b279ee0a11bcdb08e47da6402ea63 |
|
BLAKE2b-256 | d9516fbbec1e31dad1d8c2e6e525d25b9d0f064da6cba32ff1fa41009adff86b |