UTILITY PACKAGE
OVER VIEW
- timer - counter a runtime
- configure - reading configure file in yaml format
- data - load & save plain text & object
- hasher - string hashing
- param_tool - convert between dict and plain-text
- 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')
DEMO PARSER
import muuusiiik.parser as ps
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
Metadata
Release files for muuusiiik 0.0.36
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| muuusiiik-0.0.36.tar.gz | 14.9 kB | Details |
Release files / muuusiiik-0.0.36.tar.gz
| Download URL | muuusiiik-0.0.36.tar.gz |
|---|---|
| Size | 14.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8850c3fcea84ce418478910a73568bddf0623e27e74aa1546d11f189f5d13af9
|
|
BLAKE2b-256 checksum How to use checksums |
a5ef0acda0a45cf99073aecd4a0bd82c3c9eaf5a3b62316561e7c10d948a69e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.7
|