Skip to main content

smartprinter v0.4.1

Cross-platform python library, smart printer for console applications.


Platform GitHub release (latest by date) GitHub top language GitHub GitHub stars GitHub forks PyPI PyPI - Downloads PyPI Downloads PyPI - Format


smartprinter - Cross-platform python library, smart printer for console applications.

Has several different objects for displaying to the console or generating a string:

  • Normal output.
  • Output with the ability to change the line color .
  • Displaying a message inside the pager, with the ability to scroll up and down, exit the pager, and print the message after being shown in a pager.
  • output with the ability to print a message in the center of the console, regardless of changes in its width, indented before and after the message, indented with the specified characters.

⚠️ Disclaimer

By using this software, you agree to the full disclaimer terms.

Summary: Software provided "AS IS" without warranty. You assume all risks.

Full legal disclaimer: See DISCLAIMER.md


Help

Install and use:

  • pip install -r requirements.txt
  • for tests: pip install requirements/requirements-dev.txt
  • for test coverage: pytest --cov --cov-report=html

Use:

  • pip3 install smartprinter
from smartprinter.printers import Printer, PrintersFactory

printer = Printer()
printer.base.echo('Text')
printer.click.echo('Text', show=True, color='green')
printer.smart.echo('Text', show=True, char='*')
printer.pager.echo('Text', show=True)

def_printer = PrintersFactory.get_base()
click_printer = PrintersFactory.get_click()
smart_printer = PrintersFactory.get_smart()
pager = PrintersFactory.get_pager()

or

from smartprinter.printers import Printer

printer = Printer()
Printer.base.echo('Text')
Printer.click.echo('Text', show=True, color='green')
Printer.smart.echo('Text', show=True, char='*')
Printer.pager.echo('Text', show=True)

Coverage

logo


License

BSD 3-Clause License

Copyright (©) 2026, Alexander Suvorov

Metadata

Release files for smartprinter 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for smartprinter 0.4.1
File Size Uploaded
smartprinter-0.4.1.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for smartprinter 0.4.1
File Interpreter ABI Platform
smartprinter-0.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.7 kB

Release files / smartprinter-0.4.1.tar.gz

Download URL smartprinter-0.4.1.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8b4488a526ff3c4cae10862a09aab3634cc2c7ef4d0e332330f9d42ee46c55af
BLAKE2b-256 checksum
How to use checksums
4b6066949fbcb56a42eae58e2728a0d9514f057875da3d1255f15481b985fd4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / smartprinter-0.4.1-py3-none-any.whl

Download URL smartprinter-0.4.1-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5860ec9cbd63e216f87d29b38b7037cbb4106db09c12ac79721f6cd16f74c1ef
BLAKE2b-256 checksum
How to use checksums
57b686ef85964e6a98792ff7cc999f280c7ce63388c8915720720e8e06f9daf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page