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.9.tar.gz
(9.3 kB
view details)
Built Distribution
sitri-0.10.9-py3-none-any.whl
(15.4 kB
view details)
File details
Details for the file sitri-0.10.9.tar.gz
.
File metadata
- Download URL: sitri-0.10.9.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 | 98395a703566fa499cf0da3ca7cfe4cc6ae231323b424eafce474b41720585b8 |
|
MD5 | eaf01c2efc4001ba078931821b6afb71 |
|
BLAKE2b-256 | 645e15f5a3af8ddcbdea6f7f40148212dbe46200e8e5feb9234f5899381d8c49 |
File details
Details for the file sitri-0.10.9-py3-none-any.whl
.
File metadata
- Download URL: sitri-0.10.9-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 | 65ad617dcd86597451d492c9dd811fab3b75991ffc28b4d30defb17c937ffe7f |
|
MD5 | 226631846d69ff55f9b3aaa5b6ba07ee |
|
BLAKE2b-256 | 21ef5c4c4dfeef75cfa515ebc771049c9d23c31b38a5dbdaaca03ddac5307758 |