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.

Install

From PyPI:

$ pip install sretoolbox

From source:

$ python setup.py install

Use

Just import the library you want. Example:

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

Develop

Install the development requirements:

$  make develop

Run the code checks and tests:

$  make check

Release

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.

License

The default license of the code in this repository is [http://www.apache.org/licenses/LICENSE-2.0](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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

sretoolbox-1.2.4-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sretoolbox-1.2.4-py3-none-any.whl
  • Upload date:
  • Size: 28.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.25.1 setuptools/54.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.8

File hashes

Hashes for sretoolbox-1.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2ac30a33a575b0e67ce6120f7294664c450f2a34f61b4c5f0c2f93b7485b195b
MD5 de1108b36a3b01d59f5d7049d19ab03a
BLAKE2b-256 d179545efd264f2ca37f20ae1f296dfb64c1fac6808a09ddf1fa063cf8ef6f05

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