simple-print v2.2.8
This release makes simple-print cleaner, easier to read, and more pleasant to use during everyday development. The main focus is improved console formatting, better error presentation, and a clearer public API for lightweight printing.
What's new
- Added
lprintas the primary lightweight print helper. - Kept backward compatibility:
lsprintstill works as an alias. - Exported
lprintdirectly fromsimple_print.
Output improvements
sprintnow prints the value on the first line and metadata on a separate second line.- Metadata is more informative and now includes type,
file:line, function name, and time. - File paths in output are more convenient for terminal navigation.
- Indentation and overall visual formatting have been improved.
spprint improvements
spprintnow renders dictionaries inside a framed box.- Added call-site information in the format
file:line in function. - Added color support via the
cparameter. - Output is now much easier to scan for nested and larger structures.
SprintErr improvements
SprintErrnow displays exceptions in a compact boxed layout.- The header includes the exception type and error message.
- Added source location details in the format
file:line in function. - Traceback output is cleaner and easier to read in the terminal.
Documentation
- Updated the README to better reflect the current API and behavior.
- Added a short feature overview.
- Refreshed examples to match the latest usage.
- Updated screenshots, including a new example for
lprint.
Technical changes
- Added explicit package configuration via
[tool.setuptools]. - Removed
setup.pyin favor ofpyproject.toml. - Simplified internal constants and cleaned up parts of the implementation.
Tests
- Expanded test coverage for
spprint. - Updated tests for
lprint/lsprint. - Added more
SprintErrscenarios covering different exception types.
Compatibility
lsprintremains available for existing code.lprintis now the recommended lightweight print helper.
Thanks for using simple-print.