Skip to main content

Set of libraries commonly used by multiple SRE projects

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sretoolbox-3.2.1.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sretoolbox-3.2.1-py3-none-any.whl (37.1 kB view details)

Uploaded Python 3

File details

Details for the file sretoolbox-3.2.1.tar.gz.

File metadata

  • Download URL: sretoolbox-3.2.1.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.25 {"installer":{"name":"uv","version":"0.9.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Red Hat Enterprise Linux","version":"9.7","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for sretoolbox-3.2.1.tar.gz
Algorithm Hash digest
SHA256 a8cec8e013c6b8e565590a3439ceeb2ccfa7f97cfabdcf305b4efefae765c77c
MD5 d784624399aa578e49253d09eccea3cb
BLAKE2b-256 2b539d37f5b2e1fd2976b272806a0ff19e20711eaf97b537e03b5e7759819ca4

See more details on using hashes here.

File details

Details for the file sretoolbox-3.2.1-py3-none-any.whl.

File metadata

  • Download URL: sretoolbox-3.2.1-py3-none-any.whl
  • Upload date:
  • Size: 37.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.25 {"installer":{"name":"uv","version":"0.9.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Red Hat Enterprise Linux","version":"9.7","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for sretoolbox-3.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 289c2ce26583f3dc8bc7d60ab7cd43ed7bf281c5ac41b6380d11c50f1e029abc
MD5 2e7edd0569be32ad1d0846694ba0f52d
BLAKE2b-256 ea592be46826db3afe3bd9efde860deaa50e2124543ee8ceb67c538d5e55c92c

See more details on using hashes here.

Supported by

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