Library for one endpoint config managment
Project description
Sitri Configuration Library
Sitri - library for managing authorization and configuration data from a single object with possibly different or identical providers
Installation
poetry add sitri
or
pip3 install sitri
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/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sitri-0.10.6.tar.gz
(9.3 kB
view details)
Built Distribution
sitri-0.10.6-py3-none-any.whl
(15.4 kB
view details)
File details
Details for the file sitri-0.10.6.tar.gz
.
File metadata
- Download URL: sitri-0.10.6.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.6 Linux/5.4.0-1031-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a68301d3bf83ffd8de7333c85cd3112d696ec8082c5fca08a0d74e5a802f1cb7 |
|
MD5 | 4e5a14402d637099d50e8508e2937fca |
|
BLAKE2b-256 | 837cafefd4a3a6dae1299f5610896f14a7e6f8e704756b0e321d311312b86484 |
File details
Details for the file sitri-0.10.6-py3-none-any.whl
.
File metadata
- Download URL: sitri-0.10.6-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.6 Linux/5.4.0-1031-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 934650a2a2d221953d389df2b09b7b38cccb231f4ba9f8b09dd6a500d11ff3a4 |
|
MD5 | cb3777d91d00e577f15befe0f7324e0c |
|
BLAKE2b-256 | 0d1ad85a8452ce23bf60bfa7b997db23778d303ccd007d00a4120afd50461ae1 |