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.36.tar.gz (14.9 kB view details)

Uploaded Source

File details

Details for the file muuusiiik-0.0.36.tar.gz.

File metadata

  • Download URL: muuusiiik-0.0.36.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for muuusiiik-0.0.36.tar.gz
Algorithm Hash digest
SHA256 8850c3fcea84ce418478910a73568bddf0623e27e74aa1546d11f189f5d13af9
MD5 41068698870eebafd52cba95e4527523
BLAKE2b-256 a5ef0acda0a45cf99073aecd4a0bd82c3c9eaf5a3b62316561e7c10d948a69e1

See more details on using hashes here.

Supported by

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