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.17.tar.gz
(9.7 kB
view details)
Built Distribution
sitri-0.10.17-py3-none-any.whl
(15.9 kB
view details)
File details
Details for the file sitri-0.10.17.tar.gz
.
File metadata
- Download URL: sitri-0.10.17.tar.gz
- Upload date:
- Size: 9.7 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 | dd76073032b5b10f7721e0c922c22f45e60ecffc0de7efe67fb3d4579f568883 |
|
MD5 | 38a948e0109ad2bfe62c7c5507719dd5 |
|
BLAKE2b-256 | 35e46f90e9884cbaa55b724187e03849e626172675e9130b879f831cd039d777 |
File details
Details for the file sitri-0.10.17-py3-none-any.whl
.
File metadata
- Download URL: sitri-0.10.17-py3-none-any.whl
- Upload date:
- Size: 15.9 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 | 19097d9b14b1c4eb9421de819b4a1db40178e97942cf58ae305c64f98bc0c26f |
|
MD5 | 986e6e15a323477c45c25510871cd735 |
|
BLAKE2b-256 | 95ac6d3a90a307e489965160601a0bbf199d4ed1bf64e4a8d3a78cba29eb7cb9 |