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-4.0.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-4.0.1-py3-none-any.whl (37.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sretoolbox-4.0.1.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Red Hat Enterprise Linux","version":"10.2","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-4.0.1.tar.gz
Algorithm Hash digest
SHA256 84556894518154005766c75b49b547890020b7b473def3fb04dfe68a3b603179
MD5 11fb474599a3ecbc97fba2c30a52603d
BLAKE2b-256 4a2e37a8e3a4bf0a42c47e519f6ce1df85131e492e8fccc875535d0eec97888f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sretoolbox-4.0.1-py3-none-any.whl
  • Upload date:
  • Size: 37.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Red Hat Enterprise Linux","version":"10.2","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-4.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ca3a4447c908ae3bd3760cdc66a9b6707aa10e7ad0892638d70c7c29c13e9871
MD5 fbff04b8dfaf8ce5898f675b5ac51429
BLAKE2b-256 999cd6b0427623d978f68eed40872c6ab34ecddfbc23f5ae90532b1aa1bcfd64

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