console-messenger-0.0.2
توضیحات
This module helps to print messages in different colours on terminal & various python IDEs using rich module.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | console-messenger-0.0.2 |
| نام | console-messenger |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ajay Lingayat |
| ایمیل نویسنده | lingayatajay2810@gmail.com |
| آدرس صفحه اصلی | https://github.com/Ajay2810-hub/console-messenger |
| آدرس اینترنتی | https://pypi.org/project/console-messenger/ |
| مجوز | - |
# console-messenger
[](https://pepy.tech/project/console-messenger)
[](https://pepy.tech/project/console-messenger)
[](https://pepy.tech/project/console-messenger)
[](https://opensource.org/licenses/MIT)
[](https://pypi.org/project/console-messenger)
[](https://pypi.org/project/console-messenger)
## About
This package displays success, warning and info messages and errors on console with different colours using [rich](https://pypi.org/project/rich/) module. It also prints any error type without passing it as a parameter.
## Requirements
```shell
python>=3.0
```
## Dependencies
```shell
rich>=9.0.0
```
## Installation
```shell
pip install console-messenger
```
## Usage
```python
>>> from ConsoleMessenger import ConsoleMessage
>>> console = ConsoleMessage()
```
**Print an error**
```python
try:
a = 5/0
except Exception as e:
console.danger(e)
```
Output :-

**Display a custom error**
```python
console.danger("this is a custom error", err_type="My Error")
```
Output :-

**Print a success message**
```python
console.success("Success", "success method worked!")
```
Output :-

**Display a warning**
```python
console.warning("Warning", "You are using pip version 20.2.4; however, version 20.3 is available.")
```
Output :-

**Display a info message**
```python
console.info("INFO", "Hello User!")
```
Output :-

**Display a dark message**
```python
console.dark("Dark", "This is a dark message!")
```
Output :-

نیازمندی
| مقدار | نام |
|---|---|
| - | rich |
| >=3.6 | pytest |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.0 | Python |
نحوه نصب
نصب پکیج whl console-messenger-0.0.2:
pip install console-messenger-0.0.2.whl
نصب پکیج tar.gz console-messenger-0.0.2:
pip install console-messenger-0.0.2.tar.gz