Skip to main content

Logging for important Python applications will become more beautiful and functional!

Project description

Logging for important Python applications will become more beautiful and functional!



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).

Contact and support

If you have questions about using Paintlog, then create an issue in the repository or write to me at bro.alexeev@inbox.ru.

You can also write to me on Telegram: @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.

Documentation

You can read the usage documentation at this link.

Example

#!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')


@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:

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)

Functional

Here you can see what paintlog can already do and what else is planned to be added in the future:

  • Advanced print for debug (pydbg_obj)
  • Colors
  • Logging
  • Benchmark and decorators for funcs
  • Update advanced print for debug (pydbg_obj)
  • Update docs and commentaries in code
  • Upload logs to Google Drive
  • Improve logging

Copyright

Copyright © 2024, Alexeev Bronislav

All rights reversed

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

paintlogio-py-0.2.2.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

paintlogio_py-0.2.2-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file paintlogio-py-0.2.2.tar.gz.

File metadata

  • Download URL: paintlogio-py-0.2.2.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for paintlogio-py-0.2.2.tar.gz
Algorithm Hash digest
SHA256 5072bb28dbed6579e447b3a9db97bc3ac7c692664de959c9e89d52c9e718ef1e
MD5 44abb9478548833657fdd48e1e04a5b6
BLAKE2b-256 6effc40b8587481b3c4de50b3176a1943cc546cf258246486c84553c3aada96d

See more details on using hashes here.

File details

Details for the file paintlogio_py-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for paintlogio_py-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9955a231aa86cef1af0073f82c8963c6fb2a54b7f00f9b07b57cdcdda11301c6
MD5 3fa8749ded389d77823ff208f6d0bba3
BLAKE2b-256 37ffe8c0da34a42f0bc6ade3750b2e9b8abc6f3283c65d96510b0797ad8c26e7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page