Yuanfen Python Library
Project description
Yuanfen Python Library
build && upload
$ python3 setup.py sdist bdist_wheel
$ python3 -m twine upload dist/*
utils.config
Support .json, .yaml, .ini files. Support auto reloading while config file changes.
config_json = Config(os.path.abspath("config.json"))
config_yaml = Config(os.path.abspath("config.yaml"))
config_ini = Config(os.path.abspath("config.ini"))
print(config_ini["app"]["config_a"])
print(config_yaml["movie"]["name"])
utils.logger
Stream and TimedRotatingFile handlers for logging.
logger = Logger(name="my-logger", level=logging.INFO)
logger.debug("debug log")
logger.info("info log")
logger.warn("warn log")
logger.error("error log")
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
yuanfen-2023.10.24.3.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for yuanfen-2023.10.24.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b91531e6bea2682b0671abd7e2f4f4721247b8e56efdaffd0c36100aa5ed21b3 |
|
MD5 | fc2f3b03ef5a9b4a829e86b3cd7c90c8 |
|
BLAKE2b-256 | ba92b368513d1a2a9f04021fe37ee5cc12976f3d14591008abc04ace6bbd8009 |