{"id":31028981,"url":"https://github.com/kporus/gc-visualizer","last_synced_at":"2026-04-17T13:33:16.515Z","repository":{"id":307612524,"uuid":"1030113743","full_name":"KPorus/gc-visualizer","owner":"KPorus","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-01T05:40:45.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-13T21:52:39.393Z","etag":null,"topics":["inspect","psutil","python","streamlit"],"latest_commit_sha":null,"homepage":"https://gc-visualizer-hpe9rcie4gxfwm54n3fwpp.streamlit.app/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KPorus.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-08-01T05:39:12.000Z","updated_at":"2025-08-01T05:44:45.000Z","dependencies_parsed_at":"2025-08-01T08:06:21.332Z","dependency_job_id":null,"html_url":"https://github.com/KPorus/gc-visualizer","commit_stats":null,"previous_names":["kporus/gc-visualizer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KPorus/gc-visualizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KPorus%2Fgc-visualizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KPorus%2Fgc-visualizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KPorus%2Fgc-visualizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KPorus%2Fgc-visualizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KPorus","download_url":"https://codeload.github.com/KPorus/gc-visualizer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KPorus%2Fgc-visualizer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31931482,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T12:37:54.787Z","status":"ssl_error","status_checked_at":"2026-04-17T12:37:25.095Z","response_time":62,"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":["inspect","psutil","python","streamlit"],"created_at":"2025-09-13T21:52:01.762Z","updated_at":"2026-04-17T13:33:16.497Z","avatar_url":"https://github.com/KPorus.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🧹 Python GC Visualizer\n\nAn interactive tool to understand and experiment with Python's built-in garbage collection (GC) system — especially how it handles **circular references** and unreachable objects.\n\nBuilt using **Streamlit**, this educational tool helps visualize and debug memory management behavior in real time.\n\n---\n\n## 🚀 Features\n\n* ✅ Create Python objects with or without circular references\n* 🧼 Force garbage collection manually\n* 📊 View memory usage and unreachable object count\n* 🔁 Toggle circular references to simulate GC edge cases\n* 🧠 Show internal GC debug statistics\n* 📦 Live summary of object types in memory\n\n---\n\n## 🧪 Usage\n\n1. **Launch app locally**:\n\n   ```bash\n   streamlit run app.py\n   ```\n\n2. **Explore buttons**:\n\n   * Create and delete objects\n   * Toggle circular references\n   * Force GC and monitor behavior\n\n3. **Understand output**:\n\n   * See how memory usage changes\n   * Discover how many objects GC can reclaim\n   * Use object type summary to detect object leaks\n\n---\n\n## 📸 Screenshots\n\n\u003e (You can add screenshots here after running it!)\n![alt text](image.png)\n\n---\n\n## 🧠 What You'll Learn\n\n* How Python tracks and reclaims memory\n* Why circular references need a GC (not just reference counting)\n* How to analyze memory behavior using `gc`, `psutil`, and `inspect`\n\n---\n\n## 🛠️ Tech Stack\n\n* **Python 3.9+**\n* **Streamlit** — for the interactive frontend\n* **gc**, **psutil**, **inspect** — for memory analysis\n\n---\n\n## 📄 License\n\nMIT — use freely and learn boldly!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkporus%2Fgc-visualizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkporus%2Fgc-visualizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkporus%2Fgc-visualizer/lists"}