A package to ease usage of different configuration conditions in your projects.
Project description
config-joker
A package to ease usage of different configuration conditions in your projects.
How to use in
Import the sources you'll use and the Config class:
from config_joker.sources.environment import EnvironmentSource
from config_joker.config import Config
Initialize the config class implementing the sources you want to use:
config = Config(
sources=[
EnvironmentSource(})
]
)
Find the configurations you want to use:
import os
os.environ['env_variable'] = '1'
number_one_from_env_source_as_int = config.required(key='env_variable', value_type=int)
Project details
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 config_joker-0.1.0.tar.gz.
File metadata
- Download URL: config_joker-0.1.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.6 Linux/5.19.0-38-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38cab8efda11cf728c41791ba9c4c5fe16d37c7e97a2671b7556e86daa488a10
|
|
| MD5 |
8f1ff54b35542126bdc9bf1c75f42084
|
|
| BLAKE2b-256 |
948db77ad1e83f707e6f18b7b118af7ebe207812304d4a297db3f0ffd9387726
|
File details
Details for the file config_joker-0.1.0-py3-none-any.whl.
File metadata
- Download URL: config_joker-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.6 Linux/5.19.0-38-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a30382a79d115018f30a236a74e5d62124a644dc74b669606b150e1e4a1106eb
|
|
| MD5 |
75357fc6294eb6a9a0d30f7bbbc5a64c
|
|
| BLAKE2b-256 |
180b4cdaaa2257da9bb15919c663cda88ced5c6e4ee8bd95736b58cf08129b5b
|