{"id":13586232,"url":"https://github.com/akme/lsofgraph-python","last_synced_at":"2026-01-21T07:27:53.684Z","repository":{"id":170264543,"uuid":"129093632","full_name":"akme/lsofgraph-python","owner":"akme","description":"python version of lsof to graphviz parser","archived":false,"fork":false,"pushed_at":"2023-02-21T16:11:56.000Z","size":133,"stargazers_count":122,"open_issues_count":1,"forks_count":9,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-04-22T05:10:26.501Z","etag":null,"topics":["dot","graphviz","linux","lsof","macos","python","unflatten"],"latest_commit_sha":null,"homepage":null,"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/akme.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":"2018-04-11T12:56:01.000Z","updated_at":"2024-06-14T15:49:21.960Z","dependencies_parsed_at":null,"dependency_job_id":"cda51237-d121-41d4-ae42-31774b669068","html_url":"https://github.com/akme/lsofgraph-python","commit_stats":null,"previous_names":["akme/lsofgraph-python"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/akme/lsofgraph-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akme%2Flsofgraph-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akme%2Flsofgraph-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akme%2Flsofgraph-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akme%2Flsofgraph-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akme","download_url":"https://codeload.github.com/akme/lsofgraph-python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akme%2Flsofgraph-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28629915,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["dot","graphviz","linux","lsof","macos","python","unflatten"],"created_at":"2024-08-01T15:05:24.977Z","updated_at":"2026-01-21T07:27:53.656Z","avatar_url":"https://github.com/akme.png","language":"Python","readme":"Python version of [zevv/lsofgraph](https://github.com/zevv/lsofgraph)\n\nA small utility to convert Unix `lsof` output to a graph showing FIFO and UNIX interprocess communication.\n\nGenerate graph:\n\n````shell\nsudo lsof -n -F | python lsofgraph.py | dot -Tjpg \u003e /tmp/a.jpg\n    OR\nsudo lsof -n -F | python lsofgraph.py | dot -T svg \u003e /tmp/a.svg\n````\nor add `unflatten` to the chain for a better layout:\n\n````shell\nsudo lsof -n -F | python lsofgraph.py | unflatten -l 1 -c 6 | dot -T jpg \u003e /tmp/a.jpg\n    OR\nsudo lsof -n -F | python lsofgraph.py | unflatten -l 1 -c 6 | dot -T svg \u003e /tmp/a.svg\n````\nNote: In cases of handling large datasets, you might encounter a \"maximum recursion depth exceeded\" error. To work around this, you can increase the recursion limit in your Python environment by adding `sys.setrecursionlimit(15000)` in the `lsofgraph.py` script.\n\n![example output](/example.jpg)\n\n# Install and use on MacOS\n\nGraphviz contains utilities dot and unflatten\n````shell\nbrew install Graphviz\ngit clone https://github.com/akme/lsofgraph-python.git\ncd lsofgraph-python\nlsof -n -F | python lsofgraph.py | unflatten -l 1 -c 6 | dot -T jpg \u003e /tmp/a.jpg \u0026\u0026 open /tmp/a.jpg\nlsof -n -F | python lsofgraph.py | unflatten -l 1 -c 6 | dot -T svg \u003e /tmp/a.jpg \u0026\u0026 open -a Safari.app '/tmp/a.svg'\n````\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakme%2Flsofgraph-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakme%2Flsofgraph-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakme%2Flsofgraph-python/lists"}