Name | logrich JSON |
Version |
1.0.7
JSON |
| download |
home_page | None |
Summary | loguru + rich = logrich |
upload_time | 2024-09-02 08:52:50 |
maintainer | None |
docs_url | None |
author | Dmitry Mavlin |
requires_python | <4.0,>=3.8 |
license | GPL |
keywords |
logger
loguru
rich
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
### Логгер
#### Совместная работа [loguru](https://loguru.readthedocs.io) & [rich](https://rich.readthedocs.io).
[Screenshot logger](https://disk.yandex.ru/i/JexFefETxnJavA)
[Screenshot logger2](https://disk.yandex.ru/i/ubvT0kZbfS-Guw)
![Screenshot logger](wiki/logrich_screenshot.png?raw=True "Screenshot")
----
![Screenshot logger too](wiki/logrich_screenshot2.png?raw=True "Screenshot")
Уровень вывода исключений определяется в переменных окружения.
Цвета, ширины и шаблоны вывода также могут быть определены в окружении.
Обработчики записей логов можно определять дополнительно, например запись в файл или отправка в канал.
#### Использование
смотри [тест](tests/test_1.py)
#### Как развернуть:
```shell
git clone
cd logrich
poetry shell
poetry install
# создаём окружение
cp template.env .env
```
#### Запустить тест(ы):
```shell
pytest
# монитор тестов
ptw
```
Raw data
{
"_id": null,
"home_page": null,
"name": "logrich",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.8",
"maintainer_email": null,
"keywords": "logger, loguru, rich",
"author": "Dmitry Mavlin",
"author_email": "mavlind@list.ru",
"download_url": "https://files.pythonhosted.org/packages/c9/e6/45be1316b43945ba6a4d96de6c7a380b1c1298e9e1e3829f7b1b604ae1b7/logrich-1.0.7.tar.gz",
"platform": null,
"description": "### \u041b\u043e\u0433\u0433\u0435\u0440\n\n#### \u0421\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430 [loguru](https://loguru.readthedocs.io) & [rich](https://rich.readthedocs.io).\n\n[Screenshot logger](https://disk.yandex.ru/i/JexFefETxnJavA) \n[Screenshot logger2](https://disk.yandex.ru/i/ubvT0kZbfS-Guw)\n\n![Screenshot logger](wiki/logrich_screenshot.png?raw=True \"Screenshot\")\n----\n![Screenshot logger too](wiki/logrich_screenshot2.png?raw=True \"Screenshot\")\n\n\u0423\u0440\u043e\u0432\u0435\u043d\u044c \u0432\u044b\u0432\u043e\u0434\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f.\n\u0426\u0432\u0435\u0442\u0430, \u0448\u0438\u0440\u0438\u043d\u044b \u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0432\u044b\u0432\u043e\u0434\u0430 \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u044b \u0432 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0438.\n\n\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u043b\u043e\u0433\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u0444\u0430\u0439\u043b \u0438\u043b\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0432 \u043a\u0430\u043d\u0430\u043b.\n\n#### \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\n\n\u0441\u043c\u043e\u0442\u0440\u0438 [\u0442\u0435\u0441\u0442](tests/test_1.py) \n\n#### \u041a\u0430\u043a \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c:\n\n```shell\ngit clone \ncd logrich\npoetry shell\npoetry install\n# \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435\ncp template.env .env\n```\n\n#### \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0442\u0435\u0441\u0442(\u044b):\n\n```shell\npytest\n# \u043c\u043e\u043d\u0438\u0442\u043e\u0440 \u0442\u0435\u0441\u0442\u043e\u0432\nptw\n```\n",
"bugtrack_url": null,
"license": "GPL",
"summary": "loguru + rich = logrich",
"version": "1.0.7",
"project_urls": null,
"split_keywords": [
"logger",
" loguru",
" rich"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d5209d79a11678de02efcc08467ce40665d77abf760b18e81af1a82c84df45bc",
"md5": "04df713547c93351385be42f8d79d170",
"sha256": "65c472c231148ef6debae37a8e0f2c7eabf4228c68d757913d435ae306cb5b36"
},
"downloads": -1,
"filename": "logrich-1.0.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "04df713547c93351385be42f8d79d170",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8",
"size": 5650,
"upload_time": "2024-09-02T08:52:48",
"upload_time_iso_8601": "2024-09-02T08:52:48.919605Z",
"url": "https://files.pythonhosted.org/packages/d5/20/9d79a11678de02efcc08467ce40665d77abf760b18e81af1a82c84df45bc/logrich-1.0.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c9e645be1316b43945ba6a4d96de6c7a380b1c1298e9e1e3829f7b1b604ae1b7",
"md5": "a5814f1a2b0331d9138614b70d485e58",
"sha256": "cd16c69739e89856907165486ef6c555f9b444a93e2f998c9f70f0fdbf7d9383"
},
"downloads": -1,
"filename": "logrich-1.0.7.tar.gz",
"has_sig": false,
"md5_digest": "a5814f1a2b0331d9138614b70d485e58",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8",
"size": 5261,
"upload_time": "2024-09-02T08:52:50",
"upload_time_iso_8601": "2024-09-02T08:52:50.077965Z",
"url": "https://files.pythonhosted.org/packages/c9/e6/45be1316b43945ba6a4d96de6c7a380b1c1298e9e1e3829f7b1b604ae1b7/logrich-1.0.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-02 08:52:50",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "logrich"
}