Skip to main content

Library for one endpoint config managment

Project description

Sitri - powerful settings & configs for python

PyPI PyPI - Downloads codecov Maintainability Code Climate technical debt Build Status Read the Docs

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.26.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sitri-0.10.26-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file sitri-0.10.26.tar.gz.

File metadata

  • Download URL: sitri-0.10.26.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.8.6 Linux/5.4.0-1032-azure

File hashes

Hashes for sitri-0.10.26.tar.gz
Algorithm Hash digest
SHA256 1901af3bcce74704aa238a77feedccba3f0c90df37baa6f1f460b9e947e54e85
MD5 2970f85346f50d53d911929a0bcbff43
BLAKE2b-256 4e4258a726bd34ad169b1b18f71b03cf9e09455986b73936a0c995172c6c891b

See more details on using hashes here.

File details

Details for the file sitri-0.10.26-py3-none-any.whl.

File metadata

  • Download URL: sitri-0.10.26-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.8.6 Linux/5.4.0-1032-azure

File hashes

Hashes for sitri-0.10.26-py3-none-any.whl
Algorithm Hash digest
SHA256 c71530761b0d69e8283e978807797f933bc624a38bf4f7cda837a3bbcd719342
MD5 398bf740146fb17fa1cd14b28bb92d0e
BLAKE2b-256 05512fc1157694ca08a21b715628e53a8e1e2d5f23f65190bd24c8ca291386e6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page