Skip to main content

DSP utility collection

Project description

DSP utility packages

Common utilities developed by DSP inc.

packages

  1. DSPlogging

DSPlogging

A loggin decorator keeps logging functions' error messeages

  • features
    1. Crete logger using different log file
    2. Identical log file shared by multiple log instances (in same module scope) won't create multiple file handler for multiple write
  • usseage
from DSPlogging import log
logName = logPath=os.path.basename(__file__)
myLog = log(logPath=logName)
myLog2 = log(logPath=logName)

@myLog.errlog(logName)
def func1(x):
    return x/0

@myLog.errlog(logName)
async def afunc1():
    open('not exist', 'r')
		
@myLog2.errlog(logName)
def func2(x):
    "won't cause multiple handler problem"
    return x/0

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

DSPutility-0.0.4.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

DSPutility-0.0.4-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file DSPutility-0.0.4.tar.gz.

File metadata

  • Download URL: DSPutility-0.0.4.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

File hashes

Hashes for DSPutility-0.0.4.tar.gz
Algorithm Hash digest
SHA256 8c0045e72d6bdedf283e774589e929c2c1eb655903905d06e288a3811e87c55c
MD5 de3d98b6e8e595146302dfcaae489875
BLAKE2b-256 34faa199e125ec05cae18718ac6afd9bda8064d2a01d4878309d5a3ac36db6a1

See more details on using hashes here.

File details

Details for the file DSPutility-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: DSPutility-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

File hashes

Hashes for DSPutility-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3a38d6105c891e647cbf2e4cc536173bb8ecee648ad7a5f6b052330ca268d558
MD5 4278ebef47fc7c19a33d210275a3b543
BLAKE2b-256 d456585bc8559d2d4351deba4d2d21481112551b0059d84052becd3aa360bf92

See more details on using hashes here.

Supported by

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