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
todo
remove text like 'ipython-input-7-210784e6384d' which is the 'filename' equivalent when running in notebook and which is useless
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
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 utillc-0.11.4-py2.py3-none-any.whl.
File metadata
- Download URL: utillc-0.11.4-py2.py3-none-any.whl
- Upload date:
- Size: 20.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf27358031b6517af060ad60a7a4d8c942702eb4cb9486c628865bb4e330f91e
|
|
| MD5 |
a31e5165d443016926293439d1655b13
|
|
| BLAKE2b-256 |
6414d105832952af36d6ff93a9d1029da3ffb37a6c46675df8a6694387ec8ed1
|