Library for one endpoint config and credentials 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sitri-0.10.2.tar.gz.
File metadata
- Download URL: sitri-0.10.2.tar.gz
- Upload date:
- Size: 9.2 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 |
0a631783384c1378fa2b26249e2359e195dd84e897d6fdad5093a675ccca47b0
|
|
| MD5 |
a6ae10227b940eef48232f641d20284f
|
|
| BLAKE2b-256 |
f7016b13e0325edc9ce2e6aad3d8c9a5c8ddcc9c5de4f85e59d5bf3f90aadbf9
|
File details
Details for the file sitri-0.10.2-py3-none-any.whl.
File metadata
- Download URL: sitri-0.10.2-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 |
08c2ec341ac8f2143a088d9f5a30d7be468b76fa3bf29b8a42f05a5425e07c1c
|
|
| MD5 |
ea41fb1870b39914ef0e4f4a1463a8a9
|
|
| BLAKE2b-256 |
fefa1c680b733ad2d89dd25e3b538d47d0b4792ea3105605cd92288244466035
|