DSP utility collection
Project description
DSP utility packages
Common utilities developed by DSP inc.
packages
- log
- dbintf
log
A loggin decorator keeps logging functions' error messeages
- features
- Crete logger using different log file
- Identical log file shared by multiple
loginstances (in same module scope) won't create multiple file handler for multiple write
- import package
from dsputility import log
instance = log()
from dsputility.log import log
instance = log()
import dsputility as du
instance = du.log()
- usseage
from dsputility import log
logName = 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
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
DSPutility-0.0.21.tar.gz
(6.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file DSPutility-0.0.21.tar.gz.
File metadata
- Download URL: DSPutility-0.0.21.tar.gz
- Upload date:
- Size: 6.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee1404d5649c0d40fd945c607c0207a6dc9c30b50944203f1352e313afd531ee
|
|
| MD5 |
2e674629a4417768c6688679ae50af1d
|
|
| BLAKE2b-256 |
a78ffe6ccf53dab01627febf603368416666fa1a5a80f8af0ab889c9dabf935c
|
File details
Details for the file DSPutility-0.0.21-py3-none-any.whl.
File metadata
- Download URL: DSPutility-0.0.21-py3-none-any.whl
- Upload date:
- Size: 7.3 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbe9a4f320450869f048680ca7258cbb764c52b8c9fe74983e1fca8ab86e1631
|
|
| MD5 |
7fcba4c1cf420336132647218eeddcd3
|
|
| BLAKE2b-256 |
4e2490b9faa8e1cf18f0069a8bb179bc1a304e5b46c9767809265a4f82444033
|