Various utilities useful for working on cdis systems.
A few modules:
Networking utilities.
function that can be used as a decorator or a context manager to temporarily disable the pdc http_proxy
For working with storage via apache libcloud
Takes a libcloud storage Object, tells you if it's probably one of OpenStack Swift's goofy segment indicator JSON blobs
Given a libcloud storage object containing one of the aforementioned JSON blobs, gives you a stream to the data you actually wanted.
Simple logging setup.
Returns a basic stdlib Logger
object that logs to stdout with a
reasonable format string, set to level INFO.
Utilities for working with tungsten provisioned machines
We use pre-commit to setup pre-commit hooks for this repo. We use detect-secrets to search for secrets being committed into the repo.
To install the pre-commit hook, run
pre-commit install
To update the .secrets.baseline file run
detect-secrets scan --update .secrets.baseline
.secrets.baseline
contains all the string that were caught by detect-secrets but are not stored in plain text. Audit the baseline to view the secrets .
detect-secrets audit .secrets.baseline
Read how to contribute here