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

Uploaded Python 3

File details

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

File metadata

  • Download URL: sretoolbox-4.0.0.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","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.0.tar.gz
Algorithm Hash digest
SHA256 504f8cb428e79ab43477e4e905cb4d8b73f47fe769042dcbc7f258dda8d66963
MD5 e76f1edb431049d4e44e2fc8471ac8a8
BLAKE2b-256 f3329465740ddf917ac0a37403940ed0a3b1b6615a9a35a18b584bb9bcb39439

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sretoolbox-4.0.0-py3-none-any.whl
  • Upload date:
  • Size: 37.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f9a5771cf148f022661b2ba8fa43aec90e50092ee9c1f2f036f90b737116424
MD5 81d409de3ec8dfb656bb379cfba57711
BLAKE2b-256 47917a020c1a7fa32e7a339da5cbe20230f6b76e0edef5f0a574b89bc3058471

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