Name | utillc JSON |
Version |
0.10.1
JSON |
| download |
home_page | |
Summary | a utility for smart logging |
upload_time | 2023-06-18 10:35:42 |
maintainer | |
docs_url | None |
author | Clovis Heaulier |
requires_python | >=2.7 |
license | MIT |
keywords |
logging
fstring
alternative
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
## 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 : <variable name>=<value>
more compact than fstring and compatible back to python 2.7
Raw data
{
"_id": null,
"home_page": "",
"name": "utillc",
"maintainer": "",
"docs_url": null,
"requires_python": ">=2.7",
"maintainer_email": "",
"keywords": "logging fstring alternative",
"author": "Clovis Heaulier",
"author_email": "clovis.heaulier@gmail.com",
"download_url": "",
"platform": null,
"description": "\n## a utility for smart logging\nLike this :\n\n#source code of test.py\n\n\tfrom utillc import *\n\timport utillc\n\timport time\n\n\ta,b = 1,\"23\"\n\tEKOX(a)\n\tEKOX((a, b))\n\tfor i in range(5) :\n \t\ttime.sleep(1)\n \t\tEKOX(i)\n\n\tEKO()\n\tEKOT(\"done\")\n\n\n# Output :\n\nMINEKOLEVEL=0 python test.py\n\n\ttest.py:8: [0021ms] a=1.\n\ttest.py:9: [0000ms] a = 1, b = 23.\n\ttest.py:12: [1002ms] i=0.\n\ttest.py:12: [1003/1003ms] i=1.\n\ttest.py:12: [1002/1002ms] i=2.\n\ttest.py:12: [1003/1003ms] i=3.\n\ttest.py:12: [1002/1002ms] i=4.\n\ttest.py:14: [0000ms] .\n\ttest.py:15: [0000ms] =done.\n\n\n\n- format understood by emacs filename:linenumber\n- time since last EKO\n- time since last time when same line executed\n- output format : <variable name>=<value>\n\nmore compact than fstring and compatible back to python 2.7\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "a utility for smart logging",
"version": "0.10.1",
"project_urls": null,
"split_keywords": [
"logging",
"fstring",
"alternative"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "efc0b29b66742093ce9ea2c8bb8941a04f0a6dcdfaf3790dbd599af0a9a0658e",
"md5": "ca26f8b925b0e4d03b8c1a60b52dfc70",
"sha256": "941e4b1a1f61527056b25eeb7b1fbe18ad5ce1125d07f30e01578697d4464703"
},
"downloads": -1,
"filename": "utillc-0.10.1-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "ca26f8b925b0e4d03b8c1a60b52dfc70",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": ">=2.7",
"size": 20080,
"upload_time": "2023-06-18T10:35:42",
"upload_time_iso_8601": "2023-06-18T10:35:42.472894Z",
"url": "https://files.pythonhosted.org/packages/ef/c0/b29b66742093ce9ea2c8bb8941a04f0a6dcdfaf3790dbd599af0a9a0658e/utillc-0.10.1-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-18 10:35:42",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "utillc"
}