a utility for smart logging
Project description
a utility for smart logging
Like this :
#source code of test.py
from utillc import *
import utillc
import time
a,b = 1,"23"
EKOX(a)
EKOX((a, b))
for i in range(5) :
time.sleep(1)
EKOX(i)
EKO()
EKOT("done")
Output :
MINEKOLEVEL=0 python test.py
test.py:8: [0021ms] a=1.
test.py:9: [0000ms] a = 1, b = 23.
test.py:12: [1002ms] i=0.
test.py:12: [1003/1003ms] i=1.
test.py:12: [1002/1002ms] i=2.
test.py:12: [1003/1003ms] i=3.
test.py:12: [1002/1002ms] i=4.
test.py:14: [0000ms] .
test.py:15: [0000ms] =done.
- format understood by emacs filename:linenumber
- time since last EKO
- time since last time when same line executed
- output format : =
more compact than fstring and compatible back to python 2.7
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for utillc-0.9.35-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 192596739e8bc033c0ae9b61285bd1e5b9d3cf26d5f8067afb67e8b58295aeb6 |
|
MD5 | 7e5a606352b1ecfb099aa4823ab3d377 |
|
BLAKE2b-256 | d1d5d3e6106a83452fdb2092191ad8bc6a7176b32a7f9af76a5e99f41b2aa592 |