FastConf
Simple lib for configuration
Install
$ pip install fastconf
Example project structure
main.py
core/
__init__.py
config.py
main.py
from core import config
print('TOKEN:', config.TOKEN)
core/config.py
import fastconf
TOKEN = '...'
fastconf.config(__name__)
Run project:
$ python main.py
TOKEN: ...
The config.yml file is created in the project root directory.
Change him:
TOKEN: 'MY_TOKEN'
Run again
$ python main.py
TOKEN: MY_TOKEN
fastconf.config(name, file='config.yml', root=ROOT_DIR)
name - current name of config module
file - name config file
dir - path to config dir
Metadata
Release files for fastconf 1.0.0
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 | Actions |
|---|---|---|---|---|
| fastconf-1.0.0.tar.gz | 2.2 kB | Without provenance | Details for fastconf-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fastconf-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for fastconf-1.0.0-py3-none-any.whl |
Total release size: 5.5 kB
Release files / fastconf-1.0.0.tar.gz
| Download URL | fastconf-1.0.0.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0198c35468ba54887fc1e3b0e3e99d38adc6457491b1dfcc705d365fd02f4b3d
|
|
BLAKE2b-256 checksum How to use checksums |
a10775771542fccfbe015ed61342222984217a2da525866bb769f98738ef1d8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.7.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
|
Release files / fastconf-1.0.0-py3-none-any.whl
| Download URL | fastconf-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2cd6c2bf83a4b4bace0d766d886d344f9f9185f962115e798924971ab1215471
|
|
BLAKE2b-256 checksum How to use checksums |
0d09e8f3b232b488fba3f1332a7da23c64096b5b9f893f38e6d3b0fd8ce2f36b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.7.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
|
Security for fastconf 1.0.0
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.