| Name | gpColor JSON |
| Version |
1.0.1
JSON |
| download |
| home_page | https://github.com/gpbot-org/gpColor |
| Summary | A Python module to apply ANSI, RGB and HEX colors in terminal output. |
| upload_time | 2024-10-26 06:26:44 |
| maintainer | None |
| docs_url | None |
| author | Grandpa EJ |
| requires_python | >=3.6 |
| license | MIT |
| keywords |
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|

# gpColor
gpColor is a Python module for applying ANSI, RGB and HEX colors in terminal output.
## Installation
<b>install via pip</b>
```bash
pip install gpColor
```
```bash
git clone https://github.com/gpbot-org/gpColor
cd gpColor
python setup.py install
```
## Usage
```python
from gpColor import colorize as color
'''how to use text color'''
print(color("This is bright red text", font='bright_red'))
print(color("This is RGB text", font=(255, 0, 0)))
print(color("This is HEX text", font='#FF5733'))
'''
>_ How to use background color with text color
text : font
background : back
'''
print(color("This is blue text with yellow background", font='blue', back='yellow'))
print(color("This is RGB text", font=(255, 0, 0), back=(255,255,255))
print(color("This is HEX text", font='#FF5733', back='#FFFFFF'))
```
Raw data
{
"_id": null,
"home_page": "https://github.com/gpbot-org/gpColor",
"name": "gpColor",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": null,
"author": "Grandpa EJ",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/e3/e7/ea66648c3cbb4e5db8889c24f93e5d045db3aff4f692b89d1c1b643c46c1/gpcolor-1.0.1.tar.gz",
"platform": null,
"description": "\n# gpColor\n\ngpColor is a Python module for applying ANSI, RGB and HEX colors in terminal output.\n\n## Installation\n<b>install via pip</b>\n```bash\npip install gpColor\n```\n```bash\ngit clone https://github.com/gpbot-org/gpColor\ncd gpColor\n\npython setup.py install\n```\n## Usage\n\n```python\nfrom gpColor import colorize as color\n\n'''how to use text color'''\nprint(color(\"This is bright red text\", font='bright_red'))\nprint(color(\"This is RGB text\", font=(255, 0, 0)))\nprint(color(\"This is HEX text\", font='#FF5733'))\n\n'''\n>_ How to use background color with text color\n\ntext : font\nbackground : back\n'''\nprint(color(\"This is blue text with yellow background\", font='blue', back='yellow'))\nprint(color(\"This is RGB text\", font=(255, 0, 0), back=(255,255,255))\nprint(color(\"This is HEX text\", font='#FF5733', back='#FFFFFF'))\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Python module to apply ANSI, RGB and HEX colors in terminal output.",
"version": "1.0.1",
"project_urls": {
"Homepage": "https://github.com/gpbot-org/gpColor"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e203d23090b71cece9caa8e6bacffed0eca1da75d1a506e4a287ab80bef1662b",
"md5": "61a1d28f2afc941e2973c630a5d6e2b3",
"sha256": "85335292393096a2408f126e0679c5a562cce5635958a50d3fbe96f3851af518"
},
"downloads": -1,
"filename": "gpColor-1.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "61a1d28f2afc941e2973c630a5d6e2b3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 3260,
"upload_time": "2024-10-26T06:26:43",
"upload_time_iso_8601": "2024-10-26T06:26:43.068546Z",
"url": "https://files.pythonhosted.org/packages/e2/03/d23090b71cece9caa8e6bacffed0eca1da75d1a506e4a287ab80bef1662b/gpColor-1.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e3e7ea66648c3cbb4e5db8889c24f93e5d045db3aff4f692b89d1c1b643c46c1",
"md5": "293469bf24a74486e019ccf8dc81d951",
"sha256": "40240b0c1cb9f2b7e05288abdd9c8f343b11ca5bc5b3ae02207aa66b128da087"
},
"downloads": -1,
"filename": "gpcolor-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "293469bf24a74486e019ccf8dc81d951",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 3131,
"upload_time": "2024-10-26T06:26:44",
"upload_time_iso_8601": "2024-10-26T06:26:44.299725Z",
"url": "https://files.pythonhosted.org/packages/e3/e7/ea66648c3cbb4e5db8889c24f93e5d045db3aff4f692b89d1c1b643c46c1/gpcolor-1.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-26 06:26:44",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "gpbot-org",
"github_project": "gpColor",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "gpcolor"
}