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.tar.gz (14.1 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-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: toolfor_debug-0.1.0.tar.gz
  • Upload date:
  • Size: 14.1 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.tar.gz
Algorithm Hash digest
SHA256 00968e60219645d4c98d2de464e28ee51acd733d2a5002641f47aa03764dc607
MD5 d51da0a2042d12a7de31386fd4aa9411
BLAKE2b-256 8387c42b9734d33fb01b975683673470c97ab0b4dfb839d08dda7924e459787b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: toolfor_debug-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for toolfor_debug-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 15c2ed36ef1872ac2ecb356fb04425c6f1fa8d39ee669fe7f10fb8c04bb5b95e
MD5 6339566faf1f1a9312e725afb5889a05
BLAKE2b-256 1238d54509c98c4a20ef06275d84a26da1dc760f94d12eea1c19717b6c88a25f

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