How saulpw/visidata works
Main Components Architecture
a) Core Engine Layer:
• Base Components (/visidata/)
• Sheet Management (basesheet.py, sheets.py)
• Command Processing (cmdlog.py)
• Data Types (_types.py)
• Expression Engine (expr.py)
b) Interface Layer:
• Terminal UI Components
• Management (interface.py)
• Input Handling (_input.py)
• Status Bar (statusbar.py)
• Mouse Support (mouse.py)
c) Data Processing Layer:
• Loaders (/visidata/loaders/)
• File Format Handlers (csv.py, json.py, xlsx.py, etc.)
• Database Connectors (sqlite.py, postgres.py)
• Network Loaders (http.py)
• Data Manipulation
• Aggregators (aggregators.py)
• Sorting (sort.py)
• Filtering (selection.py)
d) Extension System:
• Plugin Architecture (plugins.py)
• Features Management (/visidata/features/)
• Experimental Features (/visidata/experimental/)
Data Flow Representation
[Input Sources] → [Loaders] → [Core Engine] → [Interface Layer] → [Display]
• ↕ ↕ ↕
• [Plugin System] [Data Processing] [User Input]
Component Relationships
• Data flow between components
• Command processing flow
• Plugin integration points
• Extension hooks
Key Design Elements to Highlight
a) Modular Architecture:
• Clear separation between core, interface, and data processing
• Plugin system integration points
b) Data Processing Pipeline:
• Input handling
• Data transformation
• Rendering
c) Extension Points:
• Plugin hooks
• Custom loader integration
• Feature addition mechanisms
Implementation Details
Technical details like:
• Python version requirements (3.8+)
• External dependencies
• File format support
• Platform compatibility