{"id":13578259,"url":"https://github.com/gleb-sevruk/pycrunch-trace","last_synced_at":"2025-04-06T04:16:18.195Z","repository":{"id":42374872,"uuid":"244773859","full_name":"gleb-sevruk/pycrunch-trace","owner":"gleb-sevruk","description":"Time Travel Debugging for Python","archived":false,"fork":false,"pushed_at":"2024-07-16T11:29:26.000Z","size":233,"stargazers_count":176,"open_issues_count":9,"forks_count":15,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-30T03:09:33.114Z","etag":null,"topics":["debugging","profiler","python","time-travel","tracing"],"latest_commit_sha":null,"homepage":"https://pytrace.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gleb-sevruk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-04T00:45:06.000Z","updated_at":"2025-03-28T15:51:15.000Z","dependencies_parsed_at":"2024-11-28T00:35:52.168Z","dependency_job_id":null,"html_url":"https://github.com/gleb-sevruk/pycrunch-trace","commit_stats":{"total_commits":42,"total_committers":5,"mean_commits":8.4,"dds":0.1428571428571429,"last_synced_commit":"f338629160587d56c7d12f768eeb77e903df3454"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gleb-sevruk%2Fpycrunch-trace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gleb-sevruk%2Fpycrunch-trace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gleb-sevruk%2Fpycrunch-trace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gleb-sevruk%2Fpycrunch-trace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gleb-sevruk","download_url":"https://codeload.github.com/gleb-sevruk/pycrunch-trace/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247430966,"owners_count":20937875,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["debugging","profiler","python","time-travel","tracing"],"created_at":"2024-08-01T15:01:28.854Z","updated_at":"2025-04-06T04:16:18.173Z","avatar_url":"https://github.com/gleb-sevruk.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# UI Overview\n\n![PyTrace UI](https://hsto.org/webt/vp/im/xd/vpimxdvufmcmirahmktwpii79vw.png)\n\n\n# Quick start\n\n[Interactive Demo](https://app.pytrace.com/?open=v0.1-interactive-demo)\n\n[Documentation](https://pytrace.com)\n\n\n`pip install pycrunch-trace`\n\nThen, Add attribute `@trace` to the method you want to record\n\n```python\nfrom pycrunch_trace.client.api import trace\n\n@trace\ndef run():\n    some_code()\n```\n\nOr, alternatively, without decorator:\n\n```python\nfrom pycrunch_trace.client.api import Trace\n\ntracer = Trace()\ntracer.start('recording_name')\n\nsome_code()\n\ntracer.stop()\n```\n\n\nOptional session_name can be also passed to decorator:\n```python\n@trace('my_custom_recording_name')\n``` \n\n### Specifying custom folders/files to exclude \nthis will greatly speed-up profiler, however calls to the ignored directories will be ignored. \n\nExclusion will be considered if absolute file path either `starts_with` or `ends_with` with given stop-list. \n\n```python\nfrom pycrunch_trace.client.api import Trace\n \nt = Trace()\nt.start(additional_excludes=[\n             '/Users/gleb/.venvs/pycrunch_trace'\n             '/Users/gleb/.pyenv/versions/3.6.15/',\n             'unwanted_file.py',\n        ])\n\nsome_code()\n\nt.stop()\n\n```\n\nThis is also possible via decorator:\n\n```python\nfrom pycrunch_trace.client.api import trace\n\n@trace(additional_excludes=['/Users/gleb/.venvs/pycrunch_trace'])\ndef run():\n    some_code()\n```\n\n\n\n\nUse web app for replaying recording:\n\nhttp://app.pytrace.com/\n\nIn case if you want to run UI locally, instead of using hosted version:\n[Link for web app source code](https://github.com/gleb-sevruk/pycrunch-tracing-webui)\n\n(Replays are not sent anywhere and processed entirely in-memory)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgleb-sevruk%2Fpycrunch-trace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgleb-sevruk%2Fpycrunch-trace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgleb-sevruk%2Fpycrunch-trace/lists"}