Skip to content

v2.2.8

Latest

Choose a tag to compare

@Sobolev5 Sobolev5 released this 09 Apr 08:58

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 lprint as the primary lightweight print helper.
  • Kept backward compatibility: lsprint still works as an alias.
  • Exported lprint directly from simple_print.

Output improvements

  • sprint now 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

  • spprint now renders dictionaries inside a framed box.
  • Added call-site information in the format file:line in function.
  • Added color support via the c parameter.
  • Output is now much easier to scan for nested and larger structures.

SprintErr improvements

  • SprintErr now 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.py in favor of pyproject.toml.
  • Simplified internal constants and cleaned up parts of the implementation.

Tests

  • Expanded test coverage for spprint.
  • Updated tests for lprint / lsprint.
  • Added more SprintErr scenarios covering different exception types.

Compatibility

  • lsprint remains available for existing code.
  • lprint is now the recommended lightweight print helper.

Thanks for using simple-print.