A config framework that you can cue and hint quickly.
Project description
How to use
- Create
conf
package - Create
conf/config.py
// Optional - Create
conf/config_deploy.py
// Optional - Add
logging.yaml
inconf
// We have a default config, the logger file will write intologs
directory as namemain.log
File Tree
│ main.py
├───conf
│ │ config.py
│ │ config_deploy.py
│ │ logging.yaml
│ │ __init__.py
└───logs
main.log
import cuefig
from cuefig import logger
if __name__ == '__main__':
logger.info("hi")
print(f"username in conf/config.py: {cuefig.USERNAME}")
print(f"password override in conf/config_deploy.py: {cuefig.PASSWORD}")
print(f"Path var: {cuefig.ROOT_DIR}")
- Here you can see, the config variable be
cue
as in very fast way.
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
cuefig-0.0.7.tar.gz
(67.8 kB
view hashes)