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 details)

Uploaded Source

File details

Details for the file cuefig-0.0.14.tar.gz.

File metadata

  • Download URL: cuefig-0.0.14.tar.gz
  • Upload date:
  • Size: 68.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.62.3 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.5

File hashes

Hashes for cuefig-0.0.14.tar.gz
Algorithm Hash digest
SHA256 e61f12403b890de81ef982e28f7e03034987678299e737a185c52dfcce5046de
MD5 af4dc487cd509b530ffe1b26a32bdcdf
BLAKE2b-256 b1841d346f992f24e1b5c5736ff54d00b16d80125e60431e4f7f6d8dc135bbed

See more details on using hashes here.

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