How nelsonseth/python-explorer works
Python Explorer is a browser-based interface for discovering installed Python packages and inspecting their members, documentation, signatures, and class inheritance. The main workflow runs from package selection through import and interactive exploration, with search, navigation, and a separate class-graph view. The sampled callbacks show the exploration and display coordination; several layout and callback details are only represented by their enclosing module paths because their source was not sampled.
Main entry points: callbacks.py Interaction Callbacks · main_page.py Page Layout · app.py App Server · body_right_cyto.py Class Graph Panel
Components 21
Launch and UI
- CLI
src/python_explorer/cli/__init__.py - App Server
src/python_explorer/utils/app.py - Page Layout
src/python_explorer/layouts/main_page.py
Package Discovery
- Environment Catalog
src/python_explorer/utils/envdata.py
Object Exploration
- Interaction Callbacks
src/python_explorer/utils/callbacks.py - Module Imports
src/python_explorer/utils/callbacks.py - Explore State
src/python_explorer/utils/explore.py - Member Search
src/python_explorer/utils/callbacks.py - Navigation History
src/python_explorer/utils/explore.py - Member Metadata
src/python_explorer/utils/explore.py - Class Heritage
src/python_explorer/utils/explore.py
Exploration Views
- Package Header
src/python_explorer/layouts/header.py - Member Panel
src/python_explorer/layouts/body_left.py - Member Details
src/python_explorer/layouts/body_right_members.py - Class Graph Panel
src/python_explorer/layouts/body_right_cyto.py - Layout Helpers
src/python_explorer/layouts/layout_utils.py - Graph Helpers
src/python_explorer/layouts/cyto_utils.py - UI State Stores
src/python_explorer/layouts/stores.py
Other components
- User
- Python Environment
- Browser
Connections 32
- User → CLI: launches
- CLI → App Server: calls run
- App Server → Page Layout: sets layout
- App Server → Interaction Callbacks: registers callbacks
- App Server → Browser: opens interface
- User → Browser: selects and explores
- Page Layout → Package Header: embeds
- Page Layout → Member Panel: embeds
- Page Layout → Member Details: embeds
- Page Layout → Class Graph Panel: embeds
- Page Layout → UI State Stores: embeds
- Package Header → Environment Catalog: reads catalog
- Environment Catalog → Python Environment: inspects packages
- Interaction Callbacks → Module Imports: requests import
- Module Imports → Python Environment: imports module
- Interaction Callbacks → Explore State: creates or restores
- Explore State → Python Environment: inspects objects
- Interaction Callbacks → Member Search: filters members
- Interaction Callbacks → Navigation History: updates exploration
- Interaction Callbacks → Member Metadata: requests details
- Interaction Callbacks → Class Heritage: requests inheritance
- Interaction Callbacks → Graph Helpers: builds graph display
- Browser → Interaction Callbacks: dispatches interactions
- Interaction Callbacks → Member Panel: updates member list
- Interaction Callbacks → Member Details: updates details
- Interaction Callbacks → Class Graph Panel: updates class view
- Interaction Callbacks → UI State Stores: updates state
- Class Graph Panel → Graph Helpers: uses layout options
- Package Header → Layout Helpers: uses components
- Member Panel → Layout Helpers: uses components
- Member Details → Layout Helpers: uses components
- Class Graph Panel → Layout Helpers: uses components