smartprinter v0.4.1
Cross-platform python library, smart printer for console applications.
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
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| smartprinter-0.4.1.tar.gz | 5.1 kB | Without provenance | Details for smartprinter-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| smartprinter-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for smartprinter-0.4.1-py3-none-any.whl |
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
|
Security for smartprinter 0.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.