pytextcon


Namepytextcon JSON
Version 0.1.6 PyPI version JSON
download
home_page
SummarySimple package to change the text color, text emphasis, and background color of print statements to the console.
upload_time2023-06-16 03:53:06
maintainer
docs_urlNone
author
requires_python>=3.7
license
keywords print color console text formatting emphasis underline bright
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pytextcon

pytextcon is a lightweight, simple package designed to make basic changes to the text color, text emphasis, and background color of print statements to the console simple.
## Getting Started
Download pytextcon:
```pycon
pip install pytextcon
```
## Usage
Use an f-string to include text formatting to print statements. Formatting will continue 
until cleared. Use `RESET` to end all formatting. Use `DEFAULT` to clear text color only. 
### Example:
```Python
import pytextcon

text = pytextcon.ForText()

print(f"{text.BOLD}{text.BLUE}Some text that will be bold and blue.{text.DEFAULT}\
Some other text that will be bold but not blue")

print(f"{text.UNDERLINE}{text.BLUE}Some text that will be bold, underlined, and blue.\
{text.RESET}Some other text that will not be bold, underlined or blue")
```


## Formatting Options
### Basic Colors:
BLACK,
RED,
GREEN,
YELLOW,
BLUE,
MAGENTA,
CYAN,
WHITE

### Bright Colors:
BLACK_BR,
RED_BR,
GREEN_BR,
YELLOW_BR,
BLUE_BR,
MAGENTA_BR,
CYAN_BR,
WHITE_BR

### Basic Color Backgrounds:
BLACK_BG,
RED_BG,
GREEN_BG,
YELLOW_BG,
BLUE_BG,
MAGENTA_BG,
CYAN_BG,
WHITE_BG

### Bright Color Backgrounds:
BLACK_BRBG,
RED_BRBG,
GREEN_BRBG,
YELLOW_BRBG,
BLUE_BRBG,
MAGENTA_BRBG,
CYAN_BRBG,
WHITE_BRBG

### Emphasis:
BOLD,
DIM,
ITALIC,
UNDERLINE,
UNDERLINE2,
BLINK,
STRIKE

### Clear:
DEFAULT,
RESET

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "pytextcon",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "print,color,console,text,formatting,emphasis,underline,bright",
    "author": "",
    "author_email": "Michael <michael.lokrosh@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/a6/0c/42c0df671d7a57e40f9f46d89ae61c688669d91ee87028c21e9315576928/pytextcon-0.1.6.tar.gz",
    "platform": null,
    "description": "# pytextcon\r\n\r\npytextcon is a lightweight, simple package designed to make basic changes to the text color, text emphasis, and background color of print statements to the console simple.\r\n## Getting Started\r\nDownload pytextcon:\r\n```pycon\r\npip install pytextcon\r\n```\r\n## Usage\r\nUse an f-string to include text formatting to print statements. Formatting will continue \r\nuntil cleared. Use `RESET` to end all formatting. Use `DEFAULT` to clear text color only. \r\n### Example:\r\n```Python\r\nimport pytextcon\r\n\r\ntext = pytextcon.ForText()\r\n\r\nprint(f\"{text.BOLD}{text.BLUE}Some text that will be bold and blue.{text.DEFAULT}\\\r\nSome other text that will be bold but not blue\")\r\n\r\nprint(f\"{text.UNDERLINE}{text.BLUE}Some text that will be bold, underlined, and blue.\\\r\n{text.RESET}Some other text that will not be bold, underlined or blue\")\r\n```\r\n\r\n\r\n## Formatting Options\r\n### Basic Colors:\r\nBLACK,\r\nRED,\r\nGREEN,\r\nYELLOW,\r\nBLUE,\r\nMAGENTA,\r\nCYAN,\r\nWHITE\r\n\r\n### Bright Colors:\r\nBLACK_BR,\r\nRED_BR,\r\nGREEN_BR,\r\nYELLOW_BR,\r\nBLUE_BR,\r\nMAGENTA_BR,\r\nCYAN_BR,\r\nWHITE_BR\r\n\r\n### Basic Color Backgrounds:\r\nBLACK_BG,\r\nRED_BG,\r\nGREEN_BG,\r\nYELLOW_BG,\r\nBLUE_BG,\r\nMAGENTA_BG,\r\nCYAN_BG,\r\nWHITE_BG\r\n\r\n### Bright Color Backgrounds:\r\nBLACK_BRBG,\r\nRED_BRBG,\r\nGREEN_BRBG,\r\nYELLOW_BRBG,\r\nBLUE_BRBG,\r\nMAGENTA_BRBG,\r\nCYAN_BRBG,\r\nWHITE_BRBG\r\n\r\n### Emphasis:\r\nBOLD,\r\nDIM,\r\nITALIC,\r\nUNDERLINE,\r\nUNDERLINE2,\r\nBLINK,\r\nSTRIKE\r\n\r\n### Clear:\r\nDEFAULT,\r\nRESET\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Simple package to change the text color, text emphasis, and background color of print statements to the console.",
    "version": "0.1.6",
    "project_urls": {
        "GitHub": "https://github.com/Lokrosh/pytextcon"
    },
    "split_keywords": [
        "print",
        "color",
        "console",
        "text",
        "formatting",
        "emphasis",
        "underline",
        "bright"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5f54f89046f512a528b3d37ac6f2c1470c5b765d5001dd0224583dddf8c939a1",
                "md5": "03badbd5a752ad9b331a67ef910668ad",
                "sha256": "500cc003f96204b5b81f99740150d83bdc533b9451794c3ce60e6b4d6b0ebf02"
            },
            "downloads": -1,
            "filename": "pytextcon-0.1.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "03badbd5a752ad9b331a67ef910668ad",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 3746,
            "upload_time": "2023-06-16T03:53:04",
            "upload_time_iso_8601": "2023-06-16T03:53:04.300122Z",
            "url": "https://files.pythonhosted.org/packages/5f/54/f89046f512a528b3d37ac6f2c1470c5b765d5001dd0224583dddf8c939a1/pytextcon-0.1.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a60c42c0df671d7a57e40f9f46d89ae61c688669d91ee87028c21e9315576928",
                "md5": "5ed6e70780b6a88cec11f58bc4d242de",
                "sha256": "6484b91f440f9b3783f76ee8cee3e970f849a6dc5312d9ed547df8a12513a6ce"
            },
            "downloads": -1,
            "filename": "pytextcon-0.1.6.tar.gz",
            "has_sig": false,
            "md5_digest": "5ed6e70780b6a88cec11f58bc4d242de",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 3522,
            "upload_time": "2023-06-16T03:53:06",
            "upload_time_iso_8601": "2023-06-16T03:53:06.782669Z",
            "url": "https://files.pythonhosted.org/packages/a6/0c/42c0df671d7a57e40f9f46d89ae61c688669d91ee87028c21e9315576928/pytextcon-0.1.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-16 03:53:06",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Lokrosh",
    "github_project": "pytextcon",
    "github_not_found": true,
    "lcname": "pytextcon"
}
        
Elapsed time: 0.30109s