A simple config lib
Project description
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
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
fastconf-1.0.0.tar.gz
(2.2 kB
view details)
Built Distribution
File details
Details for the file fastconf-1.0.0.tar.gz
.
File metadata
- Download URL: fastconf-1.0.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0198c35468ba54887fc1e3b0e3e99d38adc6457491b1dfcc705d365fd02f4b3d |
|
MD5 | da0cda40bf304b7af833f692b079effa |
|
BLAKE2b-256 | a10775771542fccfbe015ed61342222984217a2da525866bb769f98738ef1d8f |
File details
Details for the file fastconf-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: fastconf-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cd6c2bf83a4b4bace0d766d886d344f9f9185f962115e798924971ab1215471 |
|
MD5 | a9e7c5ac55185c9081ca0abfbb0e7849 |
|
BLAKE2b-256 | 0d09e8f3b232b488fba3f1332a7da23c64096b5b9f893f38e6d3b0fd8ce2f36b |