smartprinter


Namesmartprinter JSON
Version 0.2.1 PyPI version JSON
download
home_pagehttps://github.com/smartlegionlab
Summary'Cross-platform smart printer for console applications.'
upload_time2024-06-16 09:07:14
maintainerNone
docs_urlNone
authorA.A. Suvorov
requires_python>=3.6
licenseBSD 3-Clause License
keywords smart print printer smartlegionlab
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # smartprinter


***

[![GitHub release (latest by date)](https://img.shields.io/github/v/release/smartlegionlab/smartprinter)](https://github.com/smartlegionlab/smartprinter/)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/smartprinter?label=pypi%20downloads)](https://pypi.org/project/smartprinter/)
![GitHub top language](https://img.shields.io/github/languages/top/smartlegionlab/smartprinter)
[![PyPI](https://img.shields.io/pypi/v/smartprinter)](https://pypi.org/project/smartprinter)
[![GitHub](https://img.shields.io/github/license/smartlegionlab/smartprinter)](https://github.com/smartlegionlab/smartprinter/blob/master/LICENSE)
[![PyPI - Format](https://img.shields.io/pypi/format/smartprinter)](https://pypi.org/project/smartprinter)

***

## Short Description:
___smartprinter___ - Cross-platform smart printer for console applications.

***

Author and developer: ___A.A. Suvorov___

[![smartlegiondev@gmail.com](https://img.shields.io/static/v1?label=email:&message=smartlegiondev@gmail.com&color=blue)](mailto:smartlegiondev@gmail.com)

***

## Supported:

- Linux: All.
- Windows: 7/8/10.
- Termux (Android).
  
***

## Images:

![logo](https://github.com/smartlegionlab/smartprinter/raw/master/data/images/smartprinter.png)

***

## What's new?

### ___smartprinter v0.2.1___

***

## Description:

___smartprinter___ - Cross-platform 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.

***

## 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)

```

***

- Use [click](https://github.com/pallets/click) by [license](https://github.com/pallets/click/blob/main/LICENSE.rst)

***

## Disclaimer of liability:

    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
    FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
    CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

***

## Information:

    --------------------------------------------------------
    Licensed under the terms of the BSD 3-Clause License
    (see LICENSE for details).
    Copyright © 2018-2024, A.A. Suvorov
    All rights reserved.
    --------------------------------------------------------

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/smartlegionlab",
    "name": "smartprinter",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "smart print, printer, smartlegionlab",
    "author": "A.A. Suvorov",
    "author_email": "smartlegiondev@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/86/d1/723704ffe08361a34ce7c77f67f4fbdf0143c650b7f9d7bfee2b64fc33ae/smartprinter-0.2.1.tar.gz",
    "platform": null,
    "description": "# smartprinter\n\n\n***\n\n[![GitHub release (latest by date)](https://img.shields.io/github/v/release/smartlegionlab/smartprinter)](https://github.com/smartlegionlab/smartprinter/)\n[![PyPI - Downloads](https://img.shields.io/pypi/dm/smartprinter?label=pypi%20downloads)](https://pypi.org/project/smartprinter/)\n![GitHub top language](https://img.shields.io/github/languages/top/smartlegionlab/smartprinter)\n[![PyPI](https://img.shields.io/pypi/v/smartprinter)](https://pypi.org/project/smartprinter)\n[![GitHub](https://img.shields.io/github/license/smartlegionlab/smartprinter)](https://github.com/smartlegionlab/smartprinter/blob/master/LICENSE)\n[![PyPI - Format](https://img.shields.io/pypi/format/smartprinter)](https://pypi.org/project/smartprinter)\n\n***\n\n## Short Description:\n___smartprinter___ - Cross-platform smart printer for console applications.\n\n***\n\nAuthor and developer: ___A.A. Suvorov___\n\n[![smartlegiondev@gmail.com](https://img.shields.io/static/v1?label=email:&message=smartlegiondev@gmail.com&color=blue)](mailto:smartlegiondev@gmail.com)\n\n***\n\n## Supported:\n\n- Linux: All.\n- Windows: 7/8/10.\n- Termux (Android).\n  \n***\n\n## Images:\n\n![logo](https://github.com/smartlegionlab/smartprinter/raw/master/data/images/smartprinter.png)\n\n***\n\n## What's new?\n\n### ___smartprinter v0.2.1___\n\n***\n\n## Description:\n\n___smartprinter___ - Cross-platform smart printer for console applications.\n\nHas several different objects for displaying to the console or generating a string: \n\n- Normal output.\n- Output with the ability to change the line color .\n- Displaying a message inside the pager, with the ability to scroll up and down, exit the pager, and print the message\nafter being shown in a pager. \n- output with the ability to print a message in the center of the console, regardless of changes in its width,\nindented before and after the message, indented with the specified characters.\n\n***\n\n## Help:\n\n### Install and use:\n\n- `pip install -r requirements.txt`\n- for tests: `pip install requirements/requirements-dev.txt`\n- for test coverage: `pytest --cov --cov-report=html`\n\n### Use:\n\n- `pip3 install smartprinter`\n\n```python\nfrom smartprinter.printers import Printer, PrintersFactory\n\nprinter = Printer()\nprinter.base.echo('Text')\nprinter.click.echo('Text', show=True, color='green')\nprinter.smart.echo('Text', show=True, char='*')\nprinter.pager.echo('Text', show=True)\n\ndef_printer = PrintersFactory.get_base()\nclick_printer = PrintersFactory.get_click()\nsmart_printer = PrintersFactory.get_smart()\npager = PrintersFactory.get_pager()\n\n```\n\nor \n\n```python\nfrom smartprinter.printers import Printer\n\nprinter = Printer()\nPrinter.base.echo('Text')\nPrinter.click.echo('Text', show=True, color='green')\nPrinter.smart.echo('Text', show=True, char='*')\nPrinter.pager.echo('Text', show=True)\n\n```\n\n***\n\n- Use [click](https://github.com/pallets/click) by [license](https://github.com/pallets/click/blob/main/LICENSE.rst)\n\n***\n\n## Disclaimer of liability:\n\n    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n    DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n    FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n    DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n    CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n    OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n***\n\n## Information:\n\n    --------------------------------------------------------\n    Licensed under the terms of the BSD 3-Clause License\n    (see LICENSE for details).\n    Copyright \u00a9 2018-2024, A.A. Suvorov\n    All rights reserved.\n    --------------------------------------------------------\n",
    "bugtrack_url": null,
    "license": "BSD 3-Clause License",
    "summary": "'Cross-platform smart printer for console applications.'",
    "version": "0.2.1",
    "project_urls": {
        "Documentation": "https://github.com/smartlegionlab/smartprinter/blob/master/README.md",
        "Homepage": "https://github.com/smartlegionlab",
        "Release notes": "https://github.com/smartlegionlab/smartprinter/releases"
    },
    "split_keywords": [
        "smart print",
        " printer",
        " smartlegionlab"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ca275beea5d012a68c4c2f3ea94975e8412ada7ec4d388ac821f384a72a74534",
                "md5": "32fcd4e50871ac689a5debe8019c7a8a",
                "sha256": "7b227a43cb157f7f0234b8ad3d86b23d73f0490807a539575d44ee3e58f67e76"
            },
            "downloads": -1,
            "filename": "smartprinter-0.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "32fcd4e50871ac689a5debe8019c7a8a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 5987,
            "upload_time": "2024-06-16T09:07:12",
            "upload_time_iso_8601": "2024-06-16T09:07:12.592652Z",
            "url": "https://files.pythonhosted.org/packages/ca/27/5beea5d012a68c4c2f3ea94975e8412ada7ec4d388ac821f384a72a74534/smartprinter-0.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "86d1723704ffe08361a34ce7c77f67f4fbdf0143c650b7f9d7bfee2b64fc33ae",
                "md5": "077eeb6dea78b4d149fd5d48a6986d52",
                "sha256": "6fd8df0dca79eb9ac0c4af1c7648696a98c9f35ffb18dc1d8f4b9a27211908f7"
            },
            "downloads": -1,
            "filename": "smartprinter-0.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "077eeb6dea78b4d149fd5d48a6986d52",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 5257,
            "upload_time": "2024-06-16T09:07:14",
            "upload_time_iso_8601": "2024-06-16T09:07:14.536235Z",
            "url": "https://files.pythonhosted.org/packages/86/d1/723704ffe08361a34ce7c77f67f4fbdf0143c650b7f9d7bfee2b64fc33ae/smartprinter-0.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-16 09:07:14",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "smartlegionlab",
    "github_project": "smartprinter",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "tox": true,
    "lcname": "smartprinter"
}
        
Elapsed time: 0.28444s