# Random Color library
[![CodeQL](https://github.com/beh185/RandomColorlib/actions/workflows/codeql.yml/badge.svg?branch=main)](https://github.com/beh185/RandomColorlib/actions/workflows/codeql.yml)
https://user-images.githubusercontent.com/79264026/172701097-337571d8-23fd-45a1-8cdc-72b97acc0176.mp4
**This Python library makes your terminal output colorful ✨**\
On this Python library, you can access 255 kinds of color randomly!\
**There are just 15 colors for windows(***cmd***) users 😥**
## YouTube Tutorial 📹
# installation
For installation, enter this command in your terminal:
> `pip install Rcolor==2.0.0`
## features
- [Change front color](#changing-front-color)
- [Change background color](#changing-background-color)
- [Change font (style)](#change-font-style)
- [Change front color with background color at the same time](#multiple-capabilities)
- [Change front color with font at the same time](#multiple-capabilities)
- [Change background with font at the same time](#multiple-capabilities)
- [Change front color with background color and font at the same time](#multiple-capabilities)
---
# Usage
## importing
For importing the library You can use the following:
```python
# First way
import Rcolor
Rcolor.<Module Name>
# Easier way
from Rcolor import <Module Name>
# For importing all modules (Not recommended):
from Rcolor import *
```
------
## **Important tip**
cmd can't support all colors so it's better to use :
``` python
import Rcolor
print(Rcolor.windows_color("Hello, World")) # random color
print(Rcolor.windows_background("Hello, World")) # random background
```
- You can use the **Auto** part too, Which doesn't depend on the operating system and automatically detects the operating system
```python
import Rcolor
print(Rcolor.auto_color("Hello, World")) # Automatic random color
print(Rcolor.auto_background("Hello, World")) # Automatic random background
```
## Changing font color
**Make Sure to check [Important tip](#important-tip)**
```python
import Rcolor
print(Rcolor.color('Hello, World!'))
print(Rcolor.windows_color("Hello, World"))
```
----
## Changing Background color
**Make Sure to check [Important tip](#important-tip)**
```python
import Rcolor
print(Rcolor.background('Hello, World'))
print(Rcolor.windows_background('Hello, World'))
```
## Changing font (style)
**Make Sure to check [Important tip](#important-tip)**
```python
import Rcolor
Rcolor.style('Hello, World!')
```
---
## Multiple capabilities
```python
import Rcolor
# Change front color with background color at the same time
Rcolor.color_background("Hello world")
# Change the front color with the font at the same time
Rcolor.color_style("Hello world")
# Change background with font at the same time
Rcolor.background_style("Hello world")
# Change front color with the background color and font at the same time
Rcolor.color_background_style("Hello world")
```
Raw data
{
"_id": null,
"home_page": "https://github.com/beh185/RandomColorlib",
"name": "Rcolor",
"maintainer": "",
"docs_url": null,
"requires_python": "~=3.6",
"maintainer_email": "",
"keywords": "Randomly change your output color",
"author": "Behnam",
"author_email": "Behii@tutanota.com",
"download_url": "https://files.pythonhosted.org/packages/2f/b1/8cb32bd1e09444288994a1a73b5266361b63182cd931889980a657a03aef/Rcolor-2.0.3.tar.gz",
"platform": null,
"description": "# Random Color library\n[![CodeQL](https://github.com/beh185/RandomColorlib/actions/workflows/codeql.yml/badge.svg?branch=main)](https://github.com/beh185/RandomColorlib/actions/workflows/codeql.yml)\n\nhttps://user-images.githubusercontent.com/79264026/172701097-337571d8-23fd-45a1-8cdc-72b97acc0176.mp4\n\n\n**This Python library makes your terminal output colorful \u2728**\\\nOn this Python library, you can access 255 kinds of color randomly!\\\n**There are just 15 colors for windows(***cmd***) users \ud83d\ude25**\n## YouTube Tutorial \ud83d\udcf9\n# installation \nFor installation, enter this command in your terminal:\n> `pip install Rcolor==2.0.0`\n## features\n\n- [Change front color](#changing-front-color)\n- [Change background color](#changing-background-color)\n- [Change font (style)](#change-font-style)\n- [Change front color with background color at the same time](#multiple-capabilities)\n- [Change front color with font at the same time](#multiple-capabilities)\n- [Change background with font at the same time](#multiple-capabilities)\n- [Change front color with background color and font at the same time](#multiple-capabilities)\n\n---\n# Usage\n## importing\nFor importing the library You can use the following:\n```python \n# First way \nimport Rcolor\nRcolor.<Module Name>\n\n# Easier way\nfrom Rcolor import <Module Name>\n\n# For importing all modules (Not recommended):\nfrom Rcolor import * \n```\n------\n\n## **Important tip**\ncmd can't support all colors so it's better to use :\n``` python \nimport Rcolor\n\nprint(Rcolor.windows_color(\"Hello, World\")) # random color\nprint(Rcolor.windows_background(\"Hello, World\")) # random background\n``` \n- You can use the **Auto** part too, Which doesn't depend on the operating system and automatically detects the operating system\n\n```python\nimport Rcolor\n\nprint(Rcolor.auto_color(\"Hello, World\")) # Automatic random color\nprint(Rcolor.auto_background(\"Hello, World\")) # Automatic random background\n```\n\n## Changing font color \n**Make Sure to check [Important tip](#important-tip)**\n```python\nimport Rcolor\n\nprint(Rcolor.color('Hello, World!'))\nprint(Rcolor.windows_color(\"Hello, World\")) \n```\n----\n## Changing Background color\n**Make Sure to check [Important tip](#important-tip)**\n\n```python\nimport Rcolor\n\nprint(Rcolor.background('Hello, World'))\nprint(Rcolor.windows_background('Hello, World')) \n```\n## Changing font (style)\n**Make Sure to check [Important tip](#important-tip)**\n\n```python\nimport Rcolor\nRcolor.style('Hello, World!')\n```\n---\n\n## Multiple capabilities\n```python\nimport Rcolor\n\n# Change front color with background color at the same time\nRcolor.color_background(\"Hello world\")\n\n# Change the front color with the font at the same time\nRcolor.color_style(\"Hello world\")\n\n# Change background with font at the same time\nRcolor.background_style(\"Hello world\")\n\n# Change front color with the background color and font at the same time\nRcolor.color_background_style(\"Hello world\") \n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A library that make your output colorful in python",
"version": "2.0.3",
"project_urls": {
"Homepage": "https://github.com/beh185/RandomColorlib"
},
"split_keywords": [
"randomly",
"change",
"your",
"output",
"color"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0cd70beab0e828b88d495cb8fb70a10d668b6aa5b03f7f23128d37f607424d62",
"md5": "0f355529d5fca4be5acfd38a71090ab3",
"sha256": "1b505e044d13058de8df4e61422fa0831ce0eb83ed7b9fcba0a563d8d3071e4e"
},
"downloads": -1,
"filename": "Rcolor-2.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0f355529d5fca4be5acfd38a71090ab3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.6",
"size": 7293,
"upload_time": "2023-09-14T09:06:48",
"upload_time_iso_8601": "2023-09-14T09:06:48.973383Z",
"url": "https://files.pythonhosted.org/packages/0c/d7/0beab0e828b88d495cb8fb70a10d668b6aa5b03f7f23128d37f607424d62/Rcolor-2.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2fb18cb32bd1e09444288994a1a73b5266361b63182cd931889980a657a03aef",
"md5": "ae0799c3dcf08fac1c9bf41b502d0505",
"sha256": "f4f2a0142ea1378bdc84db7f6eac9fbd7684286126a6f613e0805e0bce253924"
},
"downloads": -1,
"filename": "Rcolor-2.0.3.tar.gz",
"has_sig": false,
"md5_digest": "ae0799c3dcf08fac1c9bf41b502d0505",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.6",
"size": 7626,
"upload_time": "2023-09-14T09:06:50",
"upload_time_iso_8601": "2023-09-14T09:06:50.180273Z",
"url": "https://files.pythonhosted.org/packages/2f/b1/8cb32bd1e09444288994a1a73b5266361b63182cd931889980a657a03aef/Rcolor-2.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-14 09:06:50",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "beh185",
"github_project": "RandomColorlib",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "rcolor"
}