Elegant Console Logger For Python Command Line Apps
Project description
Signale.py
Elegant Console Logger For Python Command-Line Apps
Installation
Signale.py can be installed using pip.
[sudo] pip install signalepy
Usage
Package consists of a class Signale
, it is the main constructor class. The object created has all the logger functions in it.
Using Loggers
Each logger function takes in three arguments:-
text
prefix
( Optional )suffix
( Optional )
They all are available in the logger object. To create one do this:-
from signalepy import Signale
logger = Signale()
Now you can use the default loggers using this object like:-
...
logger.success("Started Successfully", prefix="Debugger")
logger.warning("`a` function is deprecated", suffix="main.py")
logger.complete("Run Complete")
...
This will produce the following result:-
View All Available Loggers
simple
success
error
warning
start
stop
watch
important
pending
complete
debug
pause
info
center
API
signalepy.<logger>(message="", prefix="", suffix="")
logger
- Type:
function
Can be any default logger
message
- Type:
str
Message to be displayed
prefix
- Type:
str
- Required: False
Prefix text
suffix
- Type:
str
- Required: False
Suffix text
Licensed Under MIT License A Project By Shardul Nalegave
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for signalepy-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2ed5b08e8103bf060260e7dcf0849dc5bf806f0c675e711a3dc3d658df51329 |
|
MD5 | 3d31a3ae8b0762a021f41845a1b5a92c |
|
BLAKE2b-256 | 66187adbe801091387de935666b3a0b154c98e45574c9e71ae0923c12e7f7ebd |