Name | paintlogio-py JSON |
Version |
0.3.6
JSON |
| download |
home_page | None |
Summary | Logging for important Python applications will become more beautiful and functional! |
upload_time | 2024-03-27 14:35:00 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.10 |
license | BSD 3-Clause License Copyright (c) 2024, Alexeev Bronislav Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
keywords |
logging
colors
paint
paintlog
log
messageprinter
msgprinter
message_printer
message
icecream
print
printer
debug
|
VCS |
|
bugtrack_url |
|
requirements |
asttokens
build
certifi
cffi
charset-normalizer
colorama
cryptography
docutils
executing
idna
importlib_metadata
jaraco.classes
jaraco.context
jaraco.functools
jeepney
keyring
markdown-it-py
mdurl
more-itertools
nh3
packaging
pkginfo
pycparser
Pygments
pyproject_hooks
readme_renderer
requests
requests-toolbelt
rfc3986
rich
ruff
SecretStorage
six
twine
urllib3
zipp
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
<p align="center">
<img src="https://github.com/alexeev-engineer/paintlog/blob/main/docs/paintlog.png">
</p>
<p align="center">Logging for important Python applications will become more beautiful and functional!</p>
<br>
<p align="center">
<img src="https://img.shields.io/github/languages/top/alexeev-engineer/paintlog?style=for-the-badge">
<img src="https://img.shields.io/github/languages/count/alexeev-engineer/paintlog?style=for-the-badge">
<img src="https://img.shields.io/github/stars/alexeev-engineer/paintlog?style=for-the-badge">
<img src="https://img.shields.io/github/issues/alexeev-engineer/paintlog?style=for-the-badge">
<img src="https://img.shields.io/github/last-commit/alexeev-engineer/paintlog?style=for-the-badge">
</br>
</p>
> A new step, a new future
Paintlog will help you track and work with your Python applications easier and more functionally!
> [!CAUTION]
> At the moment, Paintlog is under active development, many things may not work, and this version is not recommended for use (all at your own risk).
<p align="center">
<img src="https://github.com/alexeev-engineer/paintlog/blob/main/docs/screenshot.png">
</p>
## Contact and support
If you have questions about using Paintlog, then create an [issue](https://github.com/alexeev-engineer/paintlog/issues/new) in the repository or write to me at bro.alexeev@inbox.ru.
You can also write to me on Telegram: [@alexeev_dev](https://t.me/alexeev_dev)
paintlog is an Open Source project, and it only survives due to your feedback and support!
Project releases are available at [this link](https://github.com/alexeev-engineer/paintlog/releases).
## Documentation
You can read the usage documentation at [this link](https://github.com/alexeev-engineer/paintlog/blob/main/docs/index.md).
### Example
```python
#!venv/bin/python3
"""Paintlog Example File.
Copyright Alexeev Bronislav (C) 2024
BSD 3 Clause License
"""
from paintlog.logger import pydbg_obj, benchmark, Logger
from paintlog.paint import info_message, warn_message, error_message, other_message, FG, Style, debug_message, run_exception
logger = Logger('main.log', filename=__name__)
@benchmark
@logger.debug_func
def debug_print() -> list:
num = 12
float_int = 12.12
string = 'Hello'
boolean = True
list_array = [1, 2, 3, 'Hi', True, 12.2]
dictionary = {1: "HELLO", 2: "WORLD"}
pydbg_obj(num, float_int, string, boolean, list_array, dictionary)
debug_print()
# Simple messages
info_message('INFORMATION')
warn_message('WARNING')
error_message('EXCEPTION')
debug_message('DEBUG')
other_message('SOME TEXT', 'OTHER')
# Highlight bg
info_message('Highlight INFORMATION', True)
warn_message('Highlight WARNING', True)
error_message('Highlight EXCEPTION', True)
debug_message('Highlight DEBUG', True)
other_message('Highlight SOME TEXT', 'OTHER', True)
# Message with logger
logger.log('INFORMATION logger', 'info')
logger.log('WARNING logger', 'warn')
logger.log('EXCEPTION logger', 'error')
logger.log('DEBUG logger', 'debug')
logger.log('SOME TEXT logger', 'other')
# Message with logger and highlight bg
logger.log('INFORMATION logger', 'info', True)
logger.log('WARNING logger', 'warn', True)
logger.log('EXCEPTION logger', 'error', True)
logger.log('DEBUG logger', 'debug', True)
logger.log('SOME TEXT logger', 'other', True)
print(f'{FG.red}{Style.bold}BOLD RED{Style.reset}{Style.dim} example{Style.reset}')
run_exception('EXCEPTION')
```
## Installion
Just one command:
```bash
pip install paintlogio-py
```
## Requirements
To run the software you will have to install the necessary programs and dependencies, such as:
+ Python interpreter (>=3.10)
+ PIP package manager (>=22.0)
+ Python libraries (listed in [requirements.txt](https://github.com/alexeev-engineer/paintlog/blob/main/requirements.txt))
## Functional
Here you can see what paintlog can already do and what else is planned to be added in the future:
- [x] Advanced print for debug (pydbg_obj)
- [x] Colors
- [x] Logging
- [x] Benchmark and decorators for funcs
- [x] Update advanced print for debug (pydbg_obj)
- [x] Improve logging
- [ ] Upload logs to Google Drive
## Copyright
Copyright © 2024, Alexeev Bronislav
All rights reversed
Raw data
{
"_id": null,
"home_page": null,
"name": "paintlogio-py",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": "Alexeev Bronislav <bro.alexeev@inbox.ru>",
"keywords": "logging, colors, paint, paintlog, log, messageprinter, msgprinter, message_printer, message, icecream, print, printer, debug",
"author": null,
"author_email": "Alexeev Bronislav <bro.alexeev@inbox.ru>",
"download_url": "https://files.pythonhosted.org/packages/3a/03/82b88c89a4564c3aac1c12ef9b836103855175a014a7815884cbbce5763b/paintlogio-py-0.3.6.tar.gz",
"platform": null,
"description": "\n<p align=\"center\">\n\t<img src=\"https://github.com/alexeev-engineer/paintlog/blob/main/docs/paintlog.png\">\n</p>\n\n<p align=\"center\">Logging for important Python applications will become more beautiful and functional!</p>\n<br>\n<p align=\"center\">\n <img src=\"https://img.shields.io/github/languages/top/alexeev-engineer/paintlog?style=for-the-badge\">\n <img src=\"https://img.shields.io/github/languages/count/alexeev-engineer/paintlog?style=for-the-badge\">\n <img src=\"https://img.shields.io/github/stars/alexeev-engineer/paintlog?style=for-the-badge\">\n <img src=\"https://img.shields.io/github/issues/alexeev-engineer/paintlog?style=for-the-badge\">\n <img src=\"https://img.shields.io/github/last-commit/alexeev-engineer/paintlog?style=for-the-badge\">\n </br>\n</p>\n\n> A new step, a new future\n\nPaintlog will help you track and work with your Python applications easier and more functionally!\n\n> [!CAUTION]\n> At the moment, Paintlog is under active development, many things may not work, and this version is not recommended for use (all at your own risk).\n\n<p align=\"center\">\n <img src=\"https://github.com/alexeev-engineer/paintlog/blob/main/docs/screenshot.png\">\n</p>\n\n## Contact and support\nIf you have questions about using Paintlog, then create an [issue](https://github.com/alexeev-engineer/paintlog/issues/new) in the repository or write to me at bro.alexeev@inbox.ru.\n\nYou can also write to me on Telegram: [@alexeev_dev](https://t.me/alexeev_dev)\n\npaintlog is an Open Source project, and it only survives due to your feedback and support!\n\nProject releases are available at [this link](https://github.com/alexeev-engineer/paintlog/releases).\n\n## Documentation\nYou can read the usage documentation at [this link](https://github.com/alexeev-engineer/paintlog/blob/main/docs/index.md).\n\n### Example\n\n```python\n#!venv/bin/python3\n\"\"\"Paintlog Example File.\n\nCopyright Alexeev Bronislav (C) 2024\nBSD 3 Clause License\n\"\"\"\nfrom paintlog.logger import pydbg_obj, benchmark, Logger\nfrom paintlog.paint import info_message, warn_message, error_message, other_message, FG, Style, debug_message, run_exception\n\nlogger = Logger('main.log', filename=__name__)\n\n\n@benchmark\n@logger.debug_func\ndef debug_print() -> list:\n num = 12\n float_int = 12.12\n string = 'Hello'\n boolean = True\n list_array = [1, 2, 3, 'Hi', True, 12.2]\n dictionary = {1: \"HELLO\", 2: \"WORLD\"}\n\n pydbg_obj(num, float_int, string, boolean, list_array, dictionary)\n\n\ndebug_print()\n\n# Simple messages\ninfo_message('INFORMATION')\nwarn_message('WARNING')\nerror_message('EXCEPTION')\ndebug_message('DEBUG')\nother_message('SOME TEXT', 'OTHER')\n# Highlight bg\ninfo_message('Highlight INFORMATION', True)\nwarn_message('Highlight WARNING', True)\nerror_message('Highlight EXCEPTION', True)\ndebug_message('Highlight DEBUG', True)\nother_message('Highlight SOME TEXT', 'OTHER', True)\n\n# Message with logger\nlogger.log('INFORMATION logger', 'info')\nlogger.log('WARNING logger', 'warn')\nlogger.log('EXCEPTION logger', 'error')\nlogger.log('DEBUG logger', 'debug')\nlogger.log('SOME TEXT logger', 'other')\n# Message with logger and highlight bg\nlogger.log('INFORMATION logger', 'info', True)\nlogger.log('WARNING logger', 'warn', True)\nlogger.log('EXCEPTION logger', 'error', True)\nlogger.log('DEBUG logger', 'debug', True)\nlogger.log('SOME TEXT logger', 'other', True)\n\nprint(f'{FG.red}{Style.bold}BOLD RED{Style.reset}{Style.dim} example{Style.reset}')\n\nrun_exception('EXCEPTION')\n```\n\n## Installion\nJust one command:\n\n```bash\npip install paintlogio-py\n```\n\n## Requirements\nTo run the software you will have to install the necessary programs and dependencies, such as:\n\n + Python interpreter (>=3.10)\n + PIP package manager (>=22.0)\n + Python libraries (listed in [requirements.txt](https://github.com/alexeev-engineer/paintlog/blob/main/requirements.txt))\n\n## Functional\nHere you can see what paintlog can already do and what else is planned to be added in the future:\n\n - [x] Advanced print for debug (pydbg_obj)\n - [x] Colors\n - [x] Logging\n - [x] Benchmark and decorators for funcs\n - [x] Update advanced print for debug (pydbg_obj)\n - [x] Improve logging\n - [ ] Upload logs to Google Drive\n\n## Copyright\nCopyright \u00a9 2024, Alexeev Bronislav\n\nAll rights reversed\n",
"bugtrack_url": null,
"license": "BSD 3-Clause License Copyright (c) 2024, Alexeev Bronislav Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ",
"summary": "Logging for important Python applications will become more beautiful and functional!",
"version": "0.3.6",
"project_urls": {
"Changelog": "https://github.com/alexeev-engineer/paintlog/main/CHANGELOG.md",
"Homepage": "https://github.com/alexeev-engineer/paintlog",
"Issues": "https://github.com/alexeev-engineer/paintlog/issues",
"Repository": "https://github.com/alexeev-engineer/paintlog"
},
"split_keywords": [
"logging",
" colors",
" paint",
" paintlog",
" log",
" messageprinter",
" msgprinter",
" message_printer",
" message",
" icecream",
" print",
" printer",
" debug"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9fbd1d12bde5289bf0c6a5402cd5773f6da3baa9febed85120e11625dd7292ad",
"md5": "13721f0c90027ca094a50a2e401e8b02",
"sha256": "83e2374882faf38664e6b5203edf2ffbaaf4e612faa168d1a14ced5dabc7e773"
},
"downloads": -1,
"filename": "paintlogio_py-0.3.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "13721f0c90027ca094a50a2e401e8b02",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 12381,
"upload_time": "2024-03-27T14:34:58",
"upload_time_iso_8601": "2024-03-27T14:34:58.963538Z",
"url": "https://files.pythonhosted.org/packages/9f/bd/1d12bde5289bf0c6a5402cd5773f6da3baa9febed85120e11625dd7292ad/paintlogio_py-0.3.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3a0382b88c89a4564c3aac1c12ef9b836103855175a014a7815884cbbce5763b",
"md5": "33c109ab51e500048e29b90426eeaf22",
"sha256": "056a4dd97dc0aad01f94af8b0bc9028438f5ffdaa9fcda93c3b0672bee4070e1"
},
"downloads": -1,
"filename": "paintlogio-py-0.3.6.tar.gz",
"has_sig": false,
"md5_digest": "33c109ab51e500048e29b90426eeaf22",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 13394,
"upload_time": "2024-03-27T14:35:00",
"upload_time_iso_8601": "2024-03-27T14:35:00.548070Z",
"url": "https://files.pythonhosted.org/packages/3a/03/82b88c89a4564c3aac1c12ef9b836103855175a014a7815884cbbce5763b/paintlogio-py-0.3.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-27 14:35:00",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "alexeev-engineer",
"github_project": "paintlog",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "asttokens",
"specs": [
[
"==",
"2.4.1"
]
]
},
{
"name": "build",
"specs": [
[
"==",
"1.1.1"
]
]
},
{
"name": "certifi",
"specs": [
[
"==",
"2024.2.2"
]
]
},
{
"name": "cffi",
"specs": [
[
"==",
"1.16.0"
]
]
},
{
"name": "charset-normalizer",
"specs": [
[
"==",
"3.3.2"
]
]
},
{
"name": "colorama",
"specs": [
[
"==",
"0.4.6"
]
]
},
{
"name": "cryptography",
"specs": [
[
"==",
"42.0.5"
]
]
},
{
"name": "docutils",
"specs": [
[
"==",
"0.20.1"
]
]
},
{
"name": "executing",
"specs": [
[
"==",
"2.0.1"
]
]
},
{
"name": "idna",
"specs": [
[
"==",
"3.6"
]
]
},
{
"name": "importlib_metadata",
"specs": [
[
"==",
"7.1.0"
]
]
},
{
"name": "jaraco.classes",
"specs": [
[
"==",
"3.3.1"
]
]
},
{
"name": "jaraco.context",
"specs": [
[
"==",
"4.3.0"
]
]
},
{
"name": "jaraco.functools",
"specs": [
[
"==",
"4.0.0"
]
]
},
{
"name": "jeepney",
"specs": [
[
"==",
"0.8.0"
]
]
},
{
"name": "keyring",
"specs": [
[
"==",
"25.0.0"
]
]
},
{
"name": "markdown-it-py",
"specs": [
[
"==",
"3.0.0"
]
]
},
{
"name": "mdurl",
"specs": [
[
"==",
"0.1.2"
]
]
},
{
"name": "more-itertools",
"specs": [
[
"==",
"10.2.0"
]
]
},
{
"name": "nh3",
"specs": [
[
"==",
"0.2.15"
]
]
},
{
"name": "packaging",
"specs": [
[
"==",
"24.0"
]
]
},
{
"name": "pkginfo",
"specs": [
[
"==",
"1.10.0"
]
]
},
{
"name": "pycparser",
"specs": [
[
"==",
"2.21"
]
]
},
{
"name": "Pygments",
"specs": [
[
"==",
"2.17.2"
]
]
},
{
"name": "pyproject_hooks",
"specs": [
[
"==",
"1.0.0"
]
]
},
{
"name": "readme_renderer",
"specs": [
[
"==",
"43.0"
]
]
},
{
"name": "requests",
"specs": [
[
"==",
"2.31.0"
]
]
},
{
"name": "requests-toolbelt",
"specs": [
[
"==",
"1.0.0"
]
]
},
{
"name": "rfc3986",
"specs": [
[
"==",
"2.0.0"
]
]
},
{
"name": "rich",
"specs": [
[
"==",
"13.7.1"
]
]
},
{
"name": "ruff",
"specs": [
[
"==",
"0.3.4"
]
]
},
{
"name": "SecretStorage",
"specs": [
[
"==",
"3.3.3"
]
]
},
{
"name": "six",
"specs": [
[
"==",
"1.16.0"
]
]
},
{
"name": "twine",
"specs": [
[
"==",
"5.0.0"
]
]
},
{
"name": "urllib3",
"specs": [
[
"==",
"2.2.1"
]
]
},
{
"name": "zipp",
"specs": [
[
"==",
"3.18.1"
]
]
}
],
"lcname": "paintlogio-py"
}