Skip to main content

Debug Module

Project description

Debug Module

A lightweight Python debugging utility. This module allows you to manage print statements, inputs, and system commands based on different debug levels.

Features

  • Multi-mode Debugging: Support for different levels (p+, p, i).
  • Smart Print: Only prints when the right debug mode is active.
  • Tools: Includes clear screen and wait functions integrated with the debug state.

Installation

pip install toolfor_debug

Usage

  1. Activate Debug Mode

You can choose between different modes:

p+: Full debug (Prints + Inputs)

p: Print only

i: Input only

Example: from toolfor_debug import State, Tools State.active_debug("p+")

  1. Using Tools

The tools will only execute if a debug mode is active.

Example: Tools.dprint("This is a debug message") user_val = Tools.dinput("Enter debug value: ") Tools.dwait(2) Tools.dclear()

  1. Check State

Example: status = State.view("settings") print(f"Current System State: {status}")

Authors

ZedKa450

License

GNU General Public License 3.0 (GPL 3.0)

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

toolfor_debug-0.2.0.0.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

toolfor_debug-0.2.0.0-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file toolfor_debug-0.2.0.0.tar.gz.

File metadata

  • Download URL: toolfor_debug-0.2.0.0.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for toolfor_debug-0.2.0.0.tar.gz
Algorithm Hash digest
SHA256 a6300f22a23e746125d15656ef98bf66dcc5c396e6b7c6ec16b4f62d21b76cf2
MD5 ef574e06648685d8511ce314d07fa17d
BLAKE2b-256 09b353af26d1b9e388867923edc2a4a72a8935221135c2df9f54e1b10df36d3a

See more details on using hashes here.

File details

Details for the file toolfor_debug-0.2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for toolfor_debug-0.2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5a3c337f01737be5fc68d7ed4f3a124f56094c1a0b61789c17abafef914f38ce
MD5 c489cd8658a8265eaea445cbefdcbd12
BLAKE2b-256 fe6d39c85f42befc767ca6b7911516b0a85bab915bf685123d5769e63411cd64

See more details on using hashes here.

Supported by

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