{"id":34996433,"url":"https://github.com/apaz-cli/graphviewer","last_synced_at":"2026-05-21T01:33:18.240Z","repository":{"id":251708648,"uuid":"838208432","full_name":"apaz-cli/GraphViewer","owner":"apaz-cli","description":"For viewing huge object graphs, and finding reference cycles.","archived":false,"fork":false,"pushed_at":"2024-09-08T20:50:52.000Z","size":1753,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-09T21:56:24.265Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/apaz-cli.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":"2024-08-05T07:07:21.000Z","updated_at":"2024-09-08T20:50:55.000Z","dependencies_parsed_at":"2024-09-08T21:01:55.734Z","dependency_job_id":"62a44be5-52fa-4932-8aac-239e0bad34e1","html_url":"https://github.com/apaz-cli/GraphViewer","commit_stats":null,"previous_names":["apaz-cli/graphviewer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/apaz-cli/GraphViewer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apaz-cli%2FGraphViewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apaz-cli%2FGraphViewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apaz-cli%2FGraphViewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apaz-cli%2FGraphViewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apaz-cli","download_url":"https://codeload.github.com/apaz-cli/GraphViewer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apaz-cli%2FGraphViewer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28069264,"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","status":"online","status_checked_at":"2025-12-27T02:00:05.897Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-12-27T02:16:09.908Z","updated_at":"2025-12-27T02:16:23.798Z","avatar_url":"https://github.com/apaz-cli.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GraphViewer\nFor viewing huge object graphs, and finding reference cycles.\n\n\n## Installation\n```bash\n# Pending acceptance to PyPI\npip install objgraph_viewer\n```\n\n\n## Usage\n```python\n# Let's create some objects to visualize.\nclass Needle:\n    def __str__(self):\n        return \"Needle Object\"\n\nneedle = Needle()\ndel Needle\n\n# Create a weak reference to the needle\nneedle_ref = ReferenceType(needle)\n\n# Create a container that holds the needle\nhaystack = [{\"a\": tuple}, tuple, [needle], (lambda x: x), 123, \"hello\"]\n\n# Remove the original reference to needle.\n# Now \"haystack\" is the only object that holds a reference to the Needle object.\ndel needle\n```\n```python\n# Now, let's use the module to visualize the objects.\nimport graph_viewer\n\n# Visualize the object graph using a GUI\ngraph_viewer.collect_and_view(needle_ref)\n\n# Or export to JSON file to view it elsewhere.\ngraph_viewer.collect_to_json(needle_ref, output_file=\"graph.json\")\ngraph_viewer.view_json(\"graph.json\")\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapaz-cli%2Fgraphviewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapaz-cli%2Fgraphviewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapaz-cli%2Fgraphviewer/lists"}