Skip to main content

pydelog

pydelog is a lightweight, colorful, and simple debug/logging utility for Python.
It provides:

  • Colored logs
  • Multiple log levels
  • A built-in timer decorator
  • Easy and clean integration

Installation

pip install pydelog

Basic Usage

from pydelog import DebugUtils

DebugUtils.log_i("Information message")
DebugUtils.log_e("Error occurred!")
DebugUtils.log_w("This is a warning")
DebugUtils.log_d("Debug message")

Timer Example

from pydelog import DebugUtils

@DebugUtils.timer
def sample_task():
    for _ in range(1000000):
        pass

sample_task()

Output:

[DEBUG] sample_task executed in 0.123456s

Disable Colors or Logs

Disable colored output:

from pydelog import DebugUtils
DebugUtils.ENABLE_COLOR = False

Disable all logs:

DebugUtils.ENABLE_LOGS = False

Available Log Levels

from pydelog import DebugUtils, LogLevel

DebugUtils.log_i("Info")
DebugUtils.log_e("Error")
DebugUtils.log_d("Debug")
DebugUtils.log_f("Fatal")
DebugUtils.log_c("Critical")
DebugUtils.log_w("Warning")
DebugUtils.log_t("Trace")
DebugUtils.log_v("Verbose")
DebugUtils.log_s("System")
DebugUtils.log_a("Alert")

Metadata

Release files for pydelog 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pydelog 1.0.0
File Size Uploaded Provenance
pydelog-1.0.0.tar.gz 2.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pydelog 1.0.0
File Interpreter ABI Platform
pydelog-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.2 kB

Release files / pydelog-1.0.0.tar.gz

Download URL pydelog-1.0.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ea401925d82ac30413a18391995225cc742999c7232bab0a7f54dd62adf77561
BLAKE2b-256 checksum
How to use checksums
d8c71a4e9bd640b918962ece4f40a0ed3e266a32f2ceb4f661c52276d9ab2ea2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / pydelog-1.0.0-py3-none-any.whl

Download URL pydelog-1.0.0-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
384bdb1274614267c1e1d73892d122ead171b48d7c493b6f17ee505395e7cb2a
BLAKE2b-256 checksum
How to use checksums
ca1958090cf8a2ea3e65e4a0b21bd5b4f2435cb6cc67c6e1281558b660504144
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for pydelog 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page