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.0.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.0-py3-none-any.whl (37.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sretoolbox-3.2.0.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.7

File hashes

Hashes for sretoolbox-3.2.0.tar.gz
Algorithm Hash digest
SHA256 18765f4d6b65c2a454601d8dc3c56660c1ee80b9b1ff9dfa27da63bd4b539824
MD5 1ef866a38c1196d40afe7f87c5702cf9
BLAKE2b-256 fd3db8cbb9952868646015d66a3d9ba6abd4a65dfd079fcbe7934deab4fb5bec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sretoolbox-3.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ec1261be5495c8940cc70d9be234ca4a3b1edca961ac020d3b7dfee59b6cabc
MD5 120384340dc0b3ff6ca61292489e4a00
BLAKE2b-256 2be9f0399e1655b500421b8d7cbd7b0c6e2790061e007b72a53bbb1ce40fb9e1

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