https://github.com/smartlegionlab/smartprinter
Cross-platform smart printer for console applications.
https://github.com/smartlegionlab/smartprinter
cli-app cli-application pypi-package pypi-packages python python-libraries python-library python-package python-packages python3 smartlegionlab termux
Last synced: about 1 month ago
JSON representation
Cross-platform smart printer for console applications.
- Host: GitHub
- URL: https://github.com/smartlegionlab/smartprinter
- Owner: smartlegionlab
- License: bsd-3-clause
- Created: 2024-05-08T05:51:58.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2025-06-13T11:44:16.000Z (11 months ago)
- Last Synced: 2025-07-14T02:57:46.394Z (10 months ago)
- Topics: cli-app, cli-application, pypi-package, pypi-packages, python, python-libraries, python-library, python-package, python-packages, python3, smartlegionlab, termux
- Language: Python
- Homepage:
- Size: 55.7 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# smartprinter v0.4.1
Cross-platform python library, smart printer for console applications.
---

[](https://github.com/smartlegionlab/smartprinter/)

[](https://github.com/smartlegionlab/smartprinter/blob/master/LICENSE)
[](https://github.com/smartlegionlab/smartprinter/stargazers)
[](https://github.com/smartlegionlab/smartprinter/network/members)
[](https://pypi.org/project/smartprinter)
[](https://pypi.org/project/smartprinter/)
[](https://pepy.tech/projects/smartprinter)
[](https://pypi.org/project/smartprinter)
---
**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](https://github.com/smartlegionlab/smartprinter/blob/master/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`
```python
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
```python
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
**[BSD 3-Clause License](https://github.com/smartlegionlab/smartprinter/blob/master/LICENSE)**
Copyright (©) 2026, [Alexander Suvorov](https://github.com/smartlegionlab)