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 module

Usage

  1. Activate Debug Mode

You can choose between different modes:

p+: Full debug (Prints + Inputs)

p: Print only

i: Input only

Example: from 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.parameters() 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.1.0.1.tar.gz (14.7 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.1.0.1-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: toolfor_debug-0.1.0.1.tar.gz
  • Upload date:
  • Size: 14.7 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.1.0.1.tar.gz
Algorithm Hash digest
SHA256 115f71bc118d12e063e0e7ef67bb0813c98d0efc9b231b25079d435df15fb304
MD5 e972d3caa711d3b89681ed8af3545e6d
BLAKE2b-256 4ea6bc4237f617ec4c41d9e384ea54dae9a82f29f9044592be3e12cc1e1846c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for toolfor_debug-0.1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f3c42bb57a77c7765ee2473ce2f06d8b824660272752ec79a59ffbad29932c7d
MD5 b1b487ff87d508b0e9ceacd3fd016e5a
BLAKE2b-256 deed8747325d47439685c221718078114105d09db9bc13b12dc63ce136849d6d

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