utillc


Nameutillc JSON
Version 0.10.32 PyPI version JSON
download
home_pageNone
Summarya utility for smart logging
upload_time2024-05-25 20:21:58
maintainerNone
docs_urlNone
authorClovisHeaulier
requires_python>=2.7
licenseMIT
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": null,
    "name": "utillc",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=2.7",
    "maintainer_email": null,
    "keywords": "logging fstring alternative",
    "author": "ClovisHeaulier",
    "author_email": "clovis.heaulier@gmail.com",
    "download_url": null,
    "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.32",
    "project_urls": null,
    "split_keywords": [
        "logging",
        "fstring",
        "alternative"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8efc7a144f3fd3c534d86381268f0232b819989af3492e639594e70117a659f9",
                "md5": "4cb0ade500c60920de05dcef04c5895e",
                "sha256": "34e218001609e5aed677097245062992a3cce290a62948dd1ff59851a86af976"
            },
            "downloads": -1,
            "filename": "utillc-0.10.32-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4cb0ade500c60920de05dcef04c5895e",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=2.7",
            "size": 20676,
            "upload_time": "2024-05-25T20:21:58",
            "upload_time_iso_8601": "2024-05-25T20:21:58.405347Z",
            "url": "https://files.pythonhosted.org/packages/8e/fc/7a144f3fd3c534d86381268f0232b819989af3492e639594e70117a659f9/utillc-0.10.32-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-25 20:21:58",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "utillc"
}
        
Elapsed time: 0.23985s