rgbpy


Namergbpy JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttps://rgbpy.readthedocs.io
SummaryRGBpy it is python text-style ✅ not python textile! 🤔 it actually print your text on terminal in different kind of colors, including logging.
upload_time2023-11-04 14:57:37
maintainer
docs_urlNone
authorUsman Musa
requires_python>=3.7
licenseMIT
keywords rgbpy
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # RGBpy

RGBpy it is python text-style ✅ not python textile! 🤔 it actually print your text on terminal in different kind of colors, including logging.

[![Downloads Month Badge](https://static.pepy.tech/badge/rgbpy/month)](https://pypi.org/project/rgbpy)
[![Downloads Week Badge](https://static.pepy.tech/badge/rgbpy/week)](https://pypi.org/project/rgbpy)
[![License Badge](https://img.shields.io/pypi/l/rgbpy.svg)](https://pypi.org/project/rgbpy)
[![Supported Wheel Badge](https://img.shields.io/pypi/wheel/rgbpy.svg)](https://pypi.org/project/rgbpy)
[![Supported Versions Badge](https://img.shields.io/pypi/pyversions/rgbpy.svg)](https://pypi.org/project/rgbpy)
[![Contributors](https://img.shields.io/github/contributors/usmanmusa1920/rgbpy.svg)](https://github.com/usmanmusa1920/rgbpy/graphs/contributors)

# Simple use of rgbpy

First we recommend creating a virtual environment `python -m venv venv` and then activate it `source venv/bin/activate`

Once that finish now install the library using

```sh
    pip install rgbpy
```

Wait for the installation to finish, basically the library was uploaded using `sdist` (Source Distribution) and `bdist_wheel` (Built Distribution).

To print text with color using python print, instead of using `print` function, use any of the following functions (purple, blue, cyan, green, yellow, red, normal, bold, underline, log_style)

```python
    >>> from rgbpy import (purple, blue, cyan, green, yellow, red, normal, bold, underline)

    >>> purple('I am purple in color')
    >>> blue('I am blue in color')
    >>> cyan('I am cyan in color')
    >>> green('I am green in color')
    >>> yellow('I am yellow in color')
    >>> red('I am red in color')
    >>> normal('I am a normal text')
    >>> bold('I make text bold')
    >>> underline('I underline text')
```

To print logging text with color:

```python
    >>> import logging
    >>> from rgbpy import log_style
    
    >>> FORMATTER = '[+] [%(asctime)s] [%(levelname)s] %(message)s'
    >>> logging.basicConfig(format=FORMATTER)
    >>> LOGGER = logging.getLogger(__name__)
    >>> LOGGER.setLevel(logging.DEBUG)

    >>> log_style('I am info logger')
    >>> log_style('I am yellow logger', col='yellow')
    >>> log_style('I am error logger', log='error')
```

See more documentations <a href="https://rgbpy.readthedocs.io">here!</a>

## Useful links

-   Documentation: https://rgbpy.readthedocs.io
-   Repository: https://github.com/usmanmusa1920/rgbpy
-   PYPI Release: https://pypi.org/project/rgbpy

Pull requests are welcome


Change Log
==========

## 0.0.1 (04/november/2023)

- 0.0.1 Release

This is the first release!

            

Raw data

            {
    "_id": null,
    "home_page": "https://rgbpy.readthedocs.io",
    "name": "rgbpy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "rgbpy",
    "author": "Usman Musa",
    "author_email": "usmanmusa1920@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/91/a3/2096bef2173361884d5bce14d481fb0a9064672a6c028d8f62dd58c48fed/rgbpy-0.0.1.tar.gz",
    "platform": "any",
    "description": "# RGBpy\n\nRGBpy it is python text-style \u2705 not python textile! \ud83e\udd14 it actually print your text on terminal in different kind of colors, including logging.\n\n[![Downloads Month Badge](https://static.pepy.tech/badge/rgbpy/month)](https://pypi.org/project/rgbpy)\n[![Downloads Week Badge](https://static.pepy.tech/badge/rgbpy/week)](https://pypi.org/project/rgbpy)\n[![License Badge](https://img.shields.io/pypi/l/rgbpy.svg)](https://pypi.org/project/rgbpy)\n[![Supported Wheel Badge](https://img.shields.io/pypi/wheel/rgbpy.svg)](https://pypi.org/project/rgbpy)\n[![Supported Versions Badge](https://img.shields.io/pypi/pyversions/rgbpy.svg)](https://pypi.org/project/rgbpy)\n[![Contributors](https://img.shields.io/github/contributors/usmanmusa1920/rgbpy.svg)](https://github.com/usmanmusa1920/rgbpy/graphs/contributors)\n\n# Simple use of rgbpy\n\nFirst we recommend creating a virtual environment `python -m venv venv` and then activate it `source venv/bin/activate`\n\nOnce that finish now install the library using\n\n```sh\n    pip install rgbpy\n```\n\nWait for the installation to finish, basically the library was uploaded using `sdist` (Source Distribution) and `bdist_wheel` (Built Distribution).\n\nTo print text with color using python print, instead of using `print` function, use any of the following functions (purple, blue, cyan, green, yellow, red, normal, bold, underline, log_style)\n\n```python\n    >>> from rgbpy import (purple, blue, cyan, green, yellow, red, normal, bold, underline)\n\n    >>> purple('I am purple in color')\n    >>> blue('I am blue in color')\n    >>> cyan('I am cyan in color')\n    >>> green('I am green in color')\n    >>> yellow('I am yellow in color')\n    >>> red('I am red in color')\n    >>> normal('I am a normal text')\n    >>> bold('I make text bold')\n    >>> underline('I underline text')\n```\n\nTo print logging text with color:\n\n```python\n    >>> import logging\n    >>> from rgbpy import log_style\n    \n    >>> FORMATTER = '[+] [%(asctime)s] [%(levelname)s] %(message)s'\n    >>> logging.basicConfig(format=FORMATTER)\n    >>> LOGGER = logging.getLogger(__name__)\n    >>> LOGGER.setLevel(logging.DEBUG)\n\n    >>> log_style('I am info logger')\n    >>> log_style('I am yellow logger', col='yellow')\n    >>> log_style('I am error logger', log='error')\n```\n\nSee more documentations <a href=\"https://rgbpy.readthedocs.io\">here!</a>\n\n## Useful links\n\n-   Documentation: https://rgbpy.readthedocs.io\n-   Repository: https://github.com/usmanmusa1920/rgbpy\n-   PYPI Release: https://pypi.org/project/rgbpy\n\nPull requests are welcome\n\n\nChange Log\n==========\n\n## 0.0.1 (04/november/2023)\n\n- 0.0.1 Release\n\nThis is the first release!\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "RGBpy it is python text-style \u2705 not python textile! \ud83e\udd14 it actually print your text on terminal in different kind of colors, including logging.",
    "version": "0.0.1",
    "project_urls": {
        "Documentation": "https://rgbpy.readthedocs.io",
        "Download": "https://pypi.org/project/rgbpy",
        "Homepage": "https://rgbpy.readthedocs.io",
        "Source": "https://github.com/usmanmusa1920/rgbpy"
    },
    "split_keywords": [
        "rgbpy"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7fcbe14dc0ea5060e4d1ebc163043201e86b6bb1d5f2d17fbbb6706d790cb4c1",
                "md5": "d5a7d8709d1fc6230a27acdccde9460e",
                "sha256": "92d3fdebc3ebdf6a703546a118d14660adb59f85c2246f3fd5f4d035053bb449"
            },
            "downloads": -1,
            "filename": "rgbpy-0.0.1-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d5a7d8709d1fc6230a27acdccde9460e",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.7",
            "size": 6927,
            "upload_time": "2023-11-04T14:57:26",
            "upload_time_iso_8601": "2023-11-04T14:57:26.102463Z",
            "url": "https://files.pythonhosted.org/packages/7f/cb/e14dc0ea5060e4d1ebc163043201e86b6bb1d5f2d17fbbb6706d790cb4c1/rgbpy-0.0.1-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "91a32096bef2173361884d5bce14d481fb0a9064672a6c028d8f62dd58c48fed",
                "md5": "7bd2fe40147fdd5552731fc8296d6868",
                "sha256": "277a842b2f9441fe987db2bdde98c1527ef4ad5c6e38026d3d5798174b3ea24c"
            },
            "downloads": -1,
            "filename": "rgbpy-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "7bd2fe40147fdd5552731fc8296d6868",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 6554,
            "upload_time": "2023-11-04T14:57:37",
            "upload_time_iso_8601": "2023-11-04T14:57:37.394316Z",
            "url": "https://files.pythonhosted.org/packages/91/a3/2096bef2173361884d5bce14d481fb0a9064672a6c028d8f62dd58c48fed/rgbpy-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-04 14:57:37",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "usmanmusa1920",
    "github_project": "rgbpy",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "rgbpy"
}
        
Elapsed time: 0.21238s