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
Metadata
Release files for cuefig 0.0.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cuefig-0.0.14.tar.gz | 68.5 kB | Details |
Release files / cuefig-0.0.14.tar.gz
| Download URL | cuefig-0.0.14.tar.gz |
|---|---|
| Size | 68.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e61f12403b890de81ef982e28f7e03034987678299e737a185c52dfcce5046de
|
|
BLAKE2b-256 checksum How to use checksums |
b1841d346f992f24e1b5c5736ff54d00b16d80125e60431e4f7f6d8dc135bbed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|