loadcredential
This is a simple python package for interfacing with systemd's LoadCredential mechanism.
It allows reading secrets from the credentials directory, with a fallback on environment variables if needed.
Usage
Basic usage
from loadcredential import Credentials
credentials = Credentials()
secret1 = credentials["SECRET_1"]
Changes
v1.1 (2024-05-10)
- Added
credentials.get(key, default=None)which returns a default value and does not raise an error when the key is absent - Added
credentials.get_json(key, default = None)which treats the imported secret as json data
v1.0 (2024-05-09)
Initial version
Metadata
Release files for loadcredential 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 | Actions |
|---|---|---|---|---|
| loadcredential-1.3.tar.gz | 3.4 kB | Without provenance | Details for loadcredential-1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| loadcredential-1.3-py3-none-any.whl | Python 3 | none | any | Details for loadcredential-1.3-py3-none-any.whl |
Total release size: 7.7 kB
Release files / loadcredential-1.3.tar.gz
| Download URL | loadcredential-1.3.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b0061b5dea739177f5cf675fb07546b4689909886291713c78ed9ffabf0f25c
|
|
BLAKE2b-256 checksum How to use checksums |
033091b8c259d2f384f7491f9565f1ced3629227daa2230555f4817609faaa99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.9
|
Release files / loadcredential-1.3-py3-none-any.whl
| Download URL | loadcredential-1.3-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0980e332db85c93808dade21da18c008b2191f1ac90fe8f04365e9c4c8ddb3c0
|
|
BLAKE2b-256 checksum How to use checksums |
80a5630dde382b5c54b2bac50bf65b20aa98169252726ef5e22f5dfb018ac038
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.9
|
Security for loadcredential 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.