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.1.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.1.0-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: toolfor_debug-0.2.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 e9b212f248e31bb7b0181e963d6dfe298000b1febe912f95673da1717c8de401
MD5 b5c10dee5dc81ca3f9e2982e25530a5f
BLAKE2b-256 4ae426dc4004c7e919283554af8deee3458c0400a74354c141e725930e5bb9cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for toolfor_debug-0.2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b311c7754d7ece6ef905b758e9e7b35cf79127e927fb4b400607b33771fb697b
MD5 1b2e06e4fb7ee509c41acc35caf42d6b
BLAKE2b-256 73cc2bf1c42a09bd1f7dc638b173537cb35f7b30b90250dc41d8a28a3654040f

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