How lordphoenix1223/stl-inspector-cli works
STL Inspector is a small command-line utility for turning one or more STL files into geometry summaries. The user supplies file paths and an output format; the CLI calls the inspector, which reads and identifies each file, parses ASCII or binary geometry, and computes metadata. The CLI then prints a table or JSON. The runtime is concentrated in two source files; the parser’s internal stages are shown separately, though they share one implementation file.
Main entry points: cli.py CLI arguments · parser.py STL inspector
Components 9
Command-line interface
- CLI arguments
src/stl_inspector/cli.py - Table / JSON output
src/stl_inspector/cli.py
STL inspection
- STL inspector
src/stl_inspector/parser.py - File validation and read
src/stl_inspector/parser.py - Format detection
src/stl_inspector/parser.py - ASCII STL parser
src/stl_inspector/parser.py - Binary STL parser
src/stl_inspector/parser.py - Geometry summary
src/stl_inspector/parser.py
Other components
- User
Connections 10
- User → CLI arguments: provides paths
README.md - CLI arguments → STL inspector: inspects files
src/stl_inspector/cli.py - STL inspector → File validation and read: reads file
src/stl_inspector/parser.py - STL inspector → Format detection: detects format
src/stl_inspector/parser.py - Format detection → ASCII STL parser: dispatches ASCII
src/stl_inspector/parser.py - Format detection → Binary STL parser: dispatches binary
src/stl_inspector/parser.py - ASCII STL parser → Geometry summary: summarizes vertices
src/stl_inspector/parser.py - Binary STL parser → Geometry summary: summarizes vertices
src/stl_inspector/parser.py - CLI arguments → Table / JSON output: formats reports
src/stl_inspector/cli.py - Table / JSON output → User: prints results
src/stl_inspector/cli.py