Skip to main content

A config framework that you can cue and hint quickly.

Project description

How to use

  1. Create conf package
  2. Create conf/config.py // Optional
  3. Create conf/config_deploy.py // Optional
  4. Add logging.yaml in conf // We have a default config, the logger file will write into logs directory as name main.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}")

img.png

  • Here you can see, the config variable be cue as in very fast way.

How to upload

python setup.py deploy

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

cuefig-0.0.14.tar.gz (68.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page