Sitri - powerful settings & configs for python
Sitri - library for managing authorization and configuration data from a single object with possibly different or identical providers
Installation
poetry add sitri -E "all"
or
pip3 install sitri[all]
Extras packs and providers:
1. all - all providers and settings module.
2. settings - pydantic, providers with settings-support.
3. redis - for redis provider.
4. hvac - for HashiCorp Vault provider.
5. vedis - for vedis provider.
6. pyyaml - for YAML provider.
7. orjson - speed-up your json provider (optional).
Basics with SystemProvider
from sitri.providers.contrib import SystemConfigProvider
from sitri import Sitri
conf = Sitri(
config_provider=SystemConfigProvider(prefix="basics"),
)
System provider use system environment for get config data. For unique - sitri lookup to "namespace" by prefix.
Example:
In console:
export BASICS_NAME=Huey
In code:
name = conf.get_config("name")
print(name) # output: Huey
Docs
Read base API references and other part documentation on https://sitri.readthedocs.io/
Metadata
Release files for sitri 2.2.12
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 |
|---|---|---|---|---|
| sitri-2.2.12.tar.gz | 20.2 kB | Without provenance | Details for sitri-2.2.12.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sitri-2.2.12-py3-none-any.whl | Python 3 | none | any | Details for sitri-2.2.12-py3-none-any.whl |
Total release size: 40.8 kB
Release files / sitri-2.2.12.tar.gz
| Download URL | sitri-2.2.12.tar.gz |
|---|---|
| Size | 20.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd0d801d63787d0df55de93129543a634ee74835e4362d31e846a2a9b542fa50
|
|
BLAKE2b-256 checksum How to use checksums |
a5b49973d8a714b11a9c66cef4681b873b2061dffc19de8a45887d896ca65745
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.3.4 CPython/3.10.9
|
Release files / sitri-2.2.12-py3-none-any.whl
| Download URL | sitri-2.2.12-py3-none-any.whl |
|---|---|
| Size | 20.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
072de3ce6e0668963a9e9d5f85d4b0de0c0173a6a99e8ee59e87515a78477cd9
|
|
BLAKE2b-256 checksum How to use checksums |
086d4a1f4da1926ab2bbd1fe3cbd742e7b8cd94aec9c14cb19d8a5757ebffe00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.3.4 CPython/3.10.9
|
Security for sitri 2.2.12
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.