LogScope is a Python CLI that parses plain-text and JSON logs and renders them in a readable, filterable, live terminal view.
Supported package managers and flows:
# pip (from PyPI)
pip install logscope
# pip (local editable)
pip install -e .
# Poetry (project contributors)
poetry installMinimal executable example:
# 1) Install
pip install logscope
# 2) Run against a file
logscope ./examples/sample.log
# 3) Follow logs in real time with pulse mode
logscope ./examples/docker.log --follow --pulseUseful follow-up commands:
# Filter by severity
logscope ./examples/api.log --min-level WARN
# Search + regex
logscope ./examples/api.log --search "timeout|refused" --regex
# Export rendered output
logscope ./examples/api.log --export-html report.htmlPublic package entry points:
logscope.cli:app-> Typer command group exposed aslogscope.logscope.parser.parse_line()-> parses a single line intoLogEntry.logscope.viewer.stream_logs()-> standard stream renderer.logscope.viewer.run_dashboard()-> dashboard mode renderer.logscope.viewer.run_pulse_stream()-> pulse mode renderer.
Developer documentation:
- Stabilize release automation for PyPI publishing and changelog generation.
- Expand test coverage for follow mode and HTML export flows.
- Add user-facing docs for custom theme packs and plugin-like format adapters.
Contribution guide is in CONTRIBUTING.md.
MIT. See LICENSE.