Acit4040 Config Helper
Config Helper provides multiple ways of getting configuration data from environment variables and secrets from GCP Secret Manager..
Environment Variables
As of version 0.1.1, the following methods are supported:
- get_envvar_int(envvar_name: str, default_value: int | None = None) -> int
- Reads an integer from the environment variable in
envvar_name. - Supports fallback values with
default_value.
- Reads an integer from the environment variable in
- get_envvar_path(envvar_name: str, check_exists: bool = True) -> Path
- Reads a path from the environment variable in
envvar_name. - Supports checking if the path exists with
check_exists. - Does not support fallback values.
- Reads a path from the environment variable in
- get_envvar_str(envvar_name: str, default_value: str | None = None) -> str
- Reads a string from the environment variable in
envvar_name. - Supports fallback values with
default_value.
- Reads a string from the environment variable in
GCP Secret Manager
As of version 0.1.1, the following methods are supported:
- get_secret(env_var_name: str, fallback_env_var_name: t.Optional[str]) -> str
- Reads a text secret from GCP Secret Manager.
- Supports fallback values with
fallback_env_var_name.
- get_secret_file(env_var_name: str, output_file: Path, fallback_env_var_name: t.Optional[str]) -> Path
- Reads a binary secret/a file from GCP Secret Manager and writes it to
output_file. - Supports fallback values with
fallback_env_var_name.
- Reads a binary secret/a file from GCP Secret Manager and writes it to
Metadata
Release files for acit4040-config-helper 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| acit4040_config_helper-0.1.3.tar.gz | 2.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| acit4040_config_helper-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.5 kB
Release files / acit4040_config_helper-0.1.3.tar.gz
| Download URL | acit4040_config_helper-0.1.3.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e3bc702daf611b5729a2b0e7291d39e1f32ba57ed2b91c8fa1d64974810e2e8f
|
|
BLAKE2b-256 checksum How to use checksums |
18fa706cfeab6d8f270e21bef322b37708d65e9f89b8a725f955b90b544fa36c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.6 Windows/10
|
Release files / acit4040_config_helper-0.1.3-py3-none-any.whl
| Download URL | acit4040_config_helper-0.1.3-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c98fb63afd0a97cb66cfdf1089f4be7b3de66763143aa33136e99c96c1375979
|
|
BLAKE2b-256 checksum How to use checksums |
35031a7774a93f6452d9498c5d1d366e27f1e26bce0b2f3d5b79c80bbd4fa2cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.6 Windows/10
|
Security for acit4040-config-helper 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.