How to use
- Create
confpackage - Create
conf/config.py// Optional - Create
conf/config_deploy.py// Optional - Add
logging.yamlinconf// We have a default config, the logger file will write intologsdirectory 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
cueas in very fast way.
How to upload
python setup.py deploy
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)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e61f12403b890de81ef982e28f7e03034987678299e737a185c52dfcce5046de
|
|
| MD5 |
af4dc487cd509b530ffe1b26a32bdcdf
|
|
| BLAKE2b-256 |
b1841d346f992f24e1b5c5736ff54d00b16d80125e60431e4f7f6d8dc135bbed
|