{"id":30143832,"url":"https://github.com/lahadiyani/tracemorph","last_synced_at":"2026-02-11T04:04:54.129Z","repository":{"id":302593904,"uuid":"1012995883","full_name":"lahadiyani/tracemorph","owner":"lahadiyani","description":"library Python untuk melacak eksekusi fungsi, membangun visualisasi call-chain, serta menghasilkan narasi error berbasis AI (via LLM API).","archived":false,"fork":false,"pushed_at":"2025-07-04T06:07:40.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-14T11:51:12.633Z","etag":null,"topics":["debugging-tools","error-tracking","function-tracing","llm-error-tracing","llm-evaluation"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/tracemorph/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lahadiyani.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,"zenodo":null}},"created_at":"2025-07-03T07:47:55.000Z","updated_at":"2025-07-04T06:07:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"a84f2c7c-99d0-4c01-9572-4abb2c4e5d17","html_url":"https://github.com/lahadiyani/tracemorph","commit_stats":null,"previous_names":["lahadiyani/tracemorph"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lahadiyani/tracemorph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lahadiyani%2Ftracemorph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lahadiyani%2Ftracemorph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lahadiyani%2Ftracemorph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lahadiyani%2Ftracemorph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lahadiyani","download_url":"https://codeload.github.com/lahadiyani/tracemorph/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lahadiyani%2Ftracemorph/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29326897,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T03:52:29.695Z","status":"ssl_error","status_checked_at":"2026-02-11T03:52:23.094Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-tools","error-tracking","function-tracing","llm-error-tracing","llm-evaluation"],"created_at":"2025-08-11T07:21:02.260Z","updated_at":"2026-02-11T04:04:54.123Z","avatar_url":"https://github.com/lahadiyani.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TraceMorph\n\n![image](tracemorph/static/icon.jpg)\n\n**TraceMorph** adalah library Python untuk melacak eksekusi fungsi, membangun visualisasi call-chain, serta menghasilkan narasi error berbasis AI (via LLM API).\n\n### 🚀 Fitur\n\n- Dekorator tracing fungsi otomatis\n- Pelacakan exception global\n- Ekspor hasil trace ke JSON\n- Narasi human-readable berbasis LLM\n- Bisa diintegrasikan ke middleware, testing, atau backend\n\n### Cara install\n\n```pip\n\npip install tracemorph\n\n```\n\n### 🧠 Contoh Penggunaan\n\n```python\nfrom tracemorph import trace\n\n@trace\ndef bagi(a, b):\n    return a / b\n\nbagi(10, 2)\n```\n\n### contoh 2\n\n```python\n\nfrom tracemorph import trace, TraceBuilder\n\n@trace()\ndef error_prone(x, y):\n    return x / y  # Bisa error kalau y=0\n\nif __name__ == \"__main__\":\n    try:\n        error_prone(10, 0)\n    except Exception:\n        pass\n\n    data = TraceBuilder.build_latest_and_export()\n\n    if data:\n        print(data['colored_narrative'])  # Print narasi berwarna rapi di terminal\n    else:\n        print(\"No trace found.\")\n\n```\n\n### contoh 3\n\n```python\n\nfrom tracemorph import trace, TraceBuilder\n\n@trace\ndef test(x):\n    return x * 2\n\ntest(10)\n\nprint(TraceBuilder.build_narrative_for_last()[0])\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flahadiyani%2Ftracemorph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flahadiyani%2Ftracemorph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flahadiyani%2Ftracemorph/lists"}