simple utilities
Project description
UTILITY PACKAGE
OVER VIEW
- timer - counter a runtime
- configure - reading configure file in yaml format
- data - load & save plain text & object
- log - log manager
DEMO LOG
import muuusiiik.util as msk
# define logger
logger = msk.log.GetLogger(level=msk.log.DEBUG, formatter='minimal')
hand = msk.log.GetHandler(filename='logs/usage.log', when='daily', level=msk.log.WARNING, formatter='full')
logger.addHandler(hand)
# use logger
logger.info(' > info')
logger.debug(' > debug')
logger.warning(' > warning')
logger.error(' > error')
logger.critical(' > critical')
HOW TO BUILD A PACKAGE TO PYPI
prerequisite
pip install setuptools wheel tqdm twine
build and upload package
# preparing tar.gz package
python setup.py sdist
# uploading package to pypi server
python -m twine upload dist/* --verbose
install package
# install latest version
pip install muuusiiik --upgrade
# specific version with no cache
pip install muuusiiik==0.0.11 --no-cache-dir
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
muuusiiik-0.0.12.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for muuusiiik-0.0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c018fe1ade54214aac633af06012f762745c1929473c920e037513bed30bf247 |
|
MD5 | bc6cedfef24ad9730c182b1804cec0b5 |
|
BLAKE2b-256 | b44731942344d0b542372f8de703ce5d78eddcf4e98e010818420bc6557237a9 |