takumi-config
Takumi framework configuration manager.
Configs are in yaml format stored in app.yaml by default. An environment vairable TAKUMI_APP_CONFIG_PATH can be used to change the path of the yaml file.
To set current running environment of the app use environment vairable TAKUMI_ENV. The default env is dev.
Usage
For the given config files:
# app.yaml
app_name: echo
app: echo:service
settings: settings
# settings.py
DB_DSN = 'psycopg2+postgresql://root:123@localhost:5432/dev'
>>> # With this environment vairable set:
>>> # TAKUMI_ENV=prod
>>>
>>> from takumi_config import config
>>> print(config.env)
'prod'
>>> print(config.app_name)
'echo'
>>> config.settings.update({'TEST': True, 'HELLO': 'world'})
>>> print(config.settings['TEST'])
True
>>> print(config.settings['DB_DSN'])
'psycopg2+postgresql://root:123@localhost:5432/dev'
Metadata
Release files for takumi-config 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| takumi_config-0.1.3.tar.gz | 3.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| takumi_config-0.1.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 9.4 kB
Release files / takumi_config-0.1.3.tar.gz
| Download URL | takumi_config-0.1.3.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e0477b8b308e596b6df7687e89516c43b6f2ffa82bd8bbbd353381878191b33
|
|
BLAKE2b-256 checksum How to use checksums |
a025b3f4aaeff74fa18d0f2b55dcbb995de25dc09d6821a442a19564f629765e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / takumi_config-0.1.3-py2.py3-none-any.whl
| Download URL | takumi_config-0.1.3-py2.py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
909b1150e651830fc62cffffdf97112fb4afa431640664e3eea702bd89e0f240
|
|
BLAKE2b-256 checksum How to use checksums |
43005a1c72bc81d12f5e528d380590ba842c8f790eff27125f8c2163729432ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for takumi-config 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.