consoler-0.1.4
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | consoler-0.1.4 |
| نام | consoler |
| نسخه کتابخانه | 0.1.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Hactar |
| ایمیل نویسنده | systems@hactar.is |
| آدرس صفحه اصلی | https://github.com/hactar-is/consoler |
| آدرس اینترنتی | https://pypi.org/project/consoler/ |
| مجوز | MIT |
## Consoler
A terminal printer that's totally tailored to how I like terminal printouts. If this happens to also be how you like terminal printouts, this package may well be for you too.
### Installing
`poetry add consoler` or `pip install consoler`
### Usage
from consoler import console
console.log("This is a log level print out")
console.info("This is an info level print out")
console.warn("This is a warning level print out")
try:
1 / 0
except Exception as e:
console.error("Oh no!", e)
### Settings
Using with Django you set a few things in the Django settings to affect behaviour of conoler.
DEBUG = True
If `DEBUG` is `True` consoler will print to stdout, otherwise it will send the output to loguru.
CONSOLE_LOG_LEVEL = 'LOG'
You can set a log level for which message you want to reach the screen. Available levels are...
LOG
INFO
SUCCESS
TEMPLATE
WARN
ERROR
CONSOLE_PATH_PREFIX = ''
When developing in a docker container or VM, the start of consoler's file paths might not quite match your local filesystem. Set a prefix here to prepend to the output's path string. This is super useful if you use https://github.com/dandavison/iterm2-dwim to make file paths clickable in iTerm.
نیازمندی
| مقدار | نام |
|---|---|
| >=1.2.3,<2.0.0 | arrow |
| >=0.5.3,<0.6.0 | loguru |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6,<4.0 | Python |
نحوه نصب
نصب پکیج whl consoler-0.1.4:
pip install consoler-0.1.4.whl
نصب پکیج tar.gz consoler-0.1.4:
pip install consoler-0.1.4.tar.gz