Skip to main content

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
  • 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

Project details


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.31.tar.gz (14.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page