Skip to main content

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.


From PyPI:

$ pip install sretoolbox

From source:

$ python install


Just import the library you want. Example:

>>> from sretoolbox import container
>>> image = container.Image('fedora')
>>> if image:
...     print('Image exists!')
Image exists!


Install the development requirements:

$  make develop

Run the code checks and tests:

$  make check


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.


The default license of the code in this repository is []( 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

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-2.4.2-py3-none-any.whl (35.1 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page