# Prints all executed lines
## pip install tracealllines
### Tested against Windows 10 / Python 3.10 / Anaconda
```python
from tracealllines import print_execution, enable_trace_all, disable_trace_all
colorprint = "green"
@print_execution(
file=__file__, color=colorprint, logfile="c:\\logogog.txt", enabled=True
)
def fu():
for x in range(2):
print(x * 1)
@print_execution(file=__file__, color=colorprint, logfile=None, enabled=True)
def fu3():
for x in range(3):
print(x * 25)
@print_execution(file=__file__, color=colorprint, logfile=None, enabled=True)
def fu2():
for x in range(2):
print(x * 150)
if __name__ == "__main__":
fu()
fu3()
fu2()
file, color, logfile = __file__, colorprint, "c:\\logogog.txt"
enable_trace_all(file, color, logfile)
fu2()
disable_trace_all()
fu3()
```
![](https://github.com/hansalemaos/screenshots/blob/main/lineexecprinter.png?raw=true)
Raw data
{
"_id": null,
"home_page": "https://github.com/hansalemaos/tracealllines",
"name": "tracealllines",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "sys,trace,settrace,debug",
"author": "Johannes Fischer",
"author_email": "<aulasparticularesdealemaosp@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/27/2d/2cc7c18eaa4bc2def94d8768d29ddb35fe73b81710657e3c7f9b4cc48d8d/tracealllines-0.10.tar.gz",
"platform": null,
"description": "\r\n# Prints all executed lines \r\n\r\n\r\n\r\n## pip install tracealllines\r\n\r\n\r\n\r\n### Tested against Windows 10 / Python 3.10 / Anaconda \r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n```python\r\n\r\n\r\n\r\nfrom tracealllines import print_execution, enable_trace_all, disable_trace_all\r\n\r\n\r\n\r\ncolorprint = \"green\"\r\n\r\n\r\n\r\n\r\n\r\n@print_execution(\r\n\r\n file=__file__, color=colorprint, logfile=\"c:\\\\logogog.txt\", enabled=True\r\n\r\n)\r\n\r\ndef fu():\r\n\r\n for x in range(2):\r\n\r\n print(x * 1)\r\n\r\n\r\n\r\n\r\n\r\n@print_execution(file=__file__, color=colorprint, logfile=None, enabled=True)\r\n\r\ndef fu3():\r\n\r\n for x in range(3):\r\n\r\n print(x * 25)\r\n\r\n\r\n\r\n\r\n\r\n@print_execution(file=__file__, color=colorprint, logfile=None, enabled=True)\r\n\r\ndef fu2():\r\n\r\n for x in range(2):\r\n\r\n print(x * 150)\r\n\r\n\r\n\r\n\r\n\r\nif __name__ == \"__main__\":\r\n\r\n fu()\r\n\r\n fu3()\r\n\r\n fu2()\r\n\r\n file, color, logfile = __file__, colorprint, \"c:\\\\logogog.txt\"\r\n\r\n\r\n\r\n enable_trace_all(file, color, logfile)\r\n\r\n fu2()\r\n\r\n disable_trace_all()\r\n\r\n fu3()\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n```\r\n\r\n\r\n\r\n![](https://github.com/hansalemaos/screenshots/blob/main/lineexecprinter.png?raw=true)\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Prints all executed lines",
"version": "0.10",
"split_keywords": [
"sys",
"trace",
"settrace",
"debug"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "33993167525612cdc82cb2d295dd22c4a5dedb76728028afeeef22d9df5e501e",
"md5": "0a2edf7eca995d4b60ac35ad0d83d392",
"sha256": "83c7ccfef082ac3035e79dbc3b6e00b3e448fb4ccdf4734c30265d2c2f9692f1"
},
"downloads": -1,
"filename": "tracealllines-0.10-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0a2edf7eca995d4b60ac35ad0d83d392",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 5566,
"upload_time": "2023-04-01T13:16:29",
"upload_time_iso_8601": "2023-04-01T13:16:29.633466Z",
"url": "https://files.pythonhosted.org/packages/33/99/3167525612cdc82cb2d295dd22c4a5dedb76728028afeeef22d9df5e501e/tracealllines-0.10-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "272d2cc7c18eaa4bc2def94d8768d29ddb35fe73b81710657e3c7f9b4cc48d8d",
"md5": "1d5fd31aff32a6b6a9f11226f39b8d1e",
"sha256": "6845112eac6b7ed6765b09682bb127bb588ff93669be806e0f48e906ffe7f3ee"
},
"downloads": -1,
"filename": "tracealllines-0.10.tar.gz",
"has_sig": false,
"md5_digest": "1d5fd31aff32a6b6a9f11226f39b8d1e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4129,
"upload_time": "2023-04-01T13:16:31",
"upload_time_iso_8601": "2023-04-01T13:16:31.803979Z",
"url": "https://files.pythonhosted.org/packages/27/2d/2cc7c18eaa4bc2def94d8768d29ddb35fe73b81710657e3c7f9b4cc48d8d/tracealllines-0.10.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-01 13:16:31",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "hansalemaos",
"github_project": "tracealllines",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "tracealllines"
}