Skip to main content

Library for one endpoint config and credentials managment

Project description

Sitri Configuration Library

Build Status codecov PyPI Read the Docs CodeFactor

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.contrib.system import SystemCredentialProvider, SystemConfigProvider
from sitri import Sitri

conf = Sitri(config_provider=SystemConfigProvider(prefix="basics"),
             credential_provider=SystemCredentialProvider(prefix="basics"))

System provider use system environment for get config and credential 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.5.4.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

sitri-0.5.4-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sitri-0.5.4.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.7.1 Linux/4.15.0-1040-gcp

File hashes

Hashes for sitri-0.5.4.tar.gz
Algorithm Hash digest
SHA256 c9025b5e6794dacf7f74d6fe6e77660e801758f3f3351cc52fb5ed2d2c114b48
MD5 5f6904e76af80fc08e8b74e63dd85b39
BLAKE2b-256 87aaabe491301392c2aefbc8ba24ea6816c0775748679b0b432ae90ffcd8a00f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sitri-0.5.4-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.7.1 Linux/4.15.0-1040-gcp

File hashes

Hashes for sitri-0.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0dcefad9c98f35546dc17d7926140af10d11f35ad6b5942ba96bc5295b96bd2b
MD5 ae2c6f253a069ee84e776867829ddbef
BLAKE2b-256 02bd515a00d7db0fa2124971fea146d40f0b6131ec904f1bb873d225ab22359e

See more details on using hashes here.

Supported by

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