{"id":28479733,"url":"https://github.com/dizcza/pinspect","last_synced_at":"2025-07-03T15:30:27.287Z","repository":{"id":57452845,"uuid":"219373755","full_name":"dizcza/pinspect","owner":"dizcza","description":"Python graphical pretty object inspect (visualization)","archived":false,"fork":false,"pushed_at":"2019-11-17T23:26:25.000Z","size":694,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-29T12:53:09.479Z","etag":null,"topics":["graph","inspect","networkx","python","pyvis","visualization"],"latest_commit_sha":null,"homepage":"https://pinspect.readthedocs.io/","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/dizcza.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}},"created_at":"2019-11-03T22:23:50.000Z","updated_at":"2023-01-31T17:54:26.000Z","dependencies_parsed_at":"2022-08-28T16:40:46.769Z","dependency_job_id":null,"html_url":"https://github.com/dizcza/pinspect","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dizcza/pinspect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dizcza%2Fpinspect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dizcza%2Fpinspect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dizcza%2Fpinspect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dizcza%2Fpinspect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dizcza","download_url":"https://codeload.github.com/dizcza/pinspect/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dizcza%2Fpinspect/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263350153,"owners_count":23453233,"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":["graph","inspect","networkx","python","pyvis","visualization"],"created_at":"2025-06-07T18:10:12.270Z","updated_at":"2025-07-03T15:30:27.280Z","avatar_url":"https://github.com/dizcza.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pretty inspect\n\n[![Build Status](https://travis-ci.org/dizcza/pinspect.svg?branch=master)](https://travis-ci.org/dizcza/pinspect)\n[![Coverage Status](https://coveralls.io/repos/github/dizcza/pinspect/badge.svg?branch=master)](https://coveralls.io/github/dizcza/pinspect?branch=master)\n[![Documentation Status](https://readthedocs.org/projects/pinspect/badge/?version=latest)](https://pinspect.readthedocs.io/en/latest/?badge=latest)\n\n\nInspired by the complexity of [Neo](https://github.com/NeuralEnsemble/python-neo).\n\nWhen browsing/inspecting an object, you want to collect all methods and attributes that match the key.\n\n### Example\n\nBrowsing the documentation of `neo.io.BlackrockIO` and looking for the ways of extracting `Epoch`s, you found `read_epoch()` method. But calling this method raises `AssertionError`. You need to go deeper.\n1. Run `pip install pinspect neo`\n2. Download BlackRock [sampledata.zip](http://www.blackrockmicro.com/wp-content/software/sampledata.zip)\n\n```\nwget http://www.blackrockmicro.com/wp-content/software/sampledata.zip\nunzip sampledata.zip\n```\n\n3. In python,\n\n```python\nfrom neo.io import BlackrockIO\nfrom pinspect import find\n\nsession = BlackrockIO('sampleData')\ngraph = find(session, 'epoch', verbose=True)\n```\n\nOutput:\n\n```\nBlackrockIO.rescale_epoch_duration() -\u003e 'TypeError'\nBlackrockIO.read_epoch() -\u003e 'AssertionError'\nBlackrockIO._rescale_epoch_duration() -\u003e 'TypeError'\nBlackrockIO.read()[0].segments[0].epochs -\u003e 'list of size 0'\nBlackrockIO.read()[0].segments[0].events[0].to_epoch() -\u003e 'Epoch'\n```\n\nThe last two lines are candidates to explore manually.\n\n### Graph visualization\n\nYou can pass `visualize=True` and enjoy the beautiful `networkx` with `pyvis` interactive graph rendering.\nHover over the nodes (objects) and edges (methods and attributes) to explore the graph in details and inspect how a particular object has been generated.\n\n![](screenshots/neo_BlackRockIO_Epoch.png)\n\n#### Unfiltered graph\n\nBelow is the full unfiltered graph of `neo.BlackRockIO` of all possible method and attribute calls. Can you find the green dot?\n\n![](screenshots/neo_BlackRockIO.png)\n\n### Requirements\n\n1. Python 3.6+\n2. [requirements.txt](requirements.txt)\n\n### Alternative\n\nAnother package to inspect python variables is [objbrowser](https://github.com/titusjan/objbrowser).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdizcza%2Fpinspect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdizcza%2Fpinspect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdizcza%2Fpinspect/lists"}