console-messenger
About
This package displays success, warning and info messages and errors on console with different colours using rich module. It also prints any error type without passing it as a parameter.
Requirements
python>=3.0
Dependencies
rich>=9.0.0
Installation
pip install console-messenger
Usage
>>> from ConsoleMessenger import ConsoleMessage
>>> console = ConsoleMessage()
Print an error
try:
a = 5/0
except Exception as e:
console.danger(e)
Output :-
Display a custom error
console.danger("this is a custom error", err_type="My Error")
Output :-
Print a success message
console.success("Success", "success method worked!")
Output :-
Display a warning
console.warning("Warning", "You are using pip version 20.2.4; however, version 20.3 is available.")
Output :-
Display a info message
console.info("INFO", "Hello User!")
Output :-
Display a dark message
console.dark("Dark", "This is a dark message!")
Output :-
Metadata
Release files for console-messenger 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| console-messenger-0.0.2.tar.gz | 46.4 kB | Without provenance | Details for console-messenger-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| console_messenger-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for console_messenger-0.0.2-py3-none-any.whl |
Total release size: 49.9 kB
Release files / console-messenger-0.0.2.tar.gz
| Download URL | console-messenger-0.0.2.tar.gz |
|---|---|
| Size | 46.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
85642d045dc93fb71412e696876f07dada83d5499cd11367ea4cdf4c5489e69b
|
|
BLAKE2b-256 checksum How to use checksums |
0db145e4cd3e82511bd0186b8ff7d7b34ba56813336628208d064c0da8acdc6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.6
|
Release files / console_messenger-0.0.2-py3-none-any.whl
| Download URL | console_messenger-0.0.2-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
09a1d5048d2b93c250a41a75fcfc3cf01a60477709953125321195d20ceb4a46
|
|
BLAKE2b-256 checksum How to use checksums |
9b687704767ec9e50b7db7b7f316ef4c63f8d80e60de87409d9eedf6bb3ca473
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.6
|
Security for console-messenger 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.