Simple to use, Powerful Programming! Debugging, Printing, Analysis, and helpful tools!
Project description
Print Tricks And More
Simple to use, powerful programming tools for debugging, printing, analysis, and more!
Installation
pip install print-tricks-and-more
Features
- Enhanced print statements with variable name, type, and line number information
- Color-coded output for better readability
- Timer functions for performance measurement
- Easy debugging tools
- Thread management helpers
- And much more!
Basic Usage
from print_tricks import pt
# Basic variable printing
name = "Python"
pt(name) # Will print the variable name, value, type, and line number
# Color printing
pt.c("This text will be colored", colors=pt.C.t1)
# Timer functionality
pt.t("timer_name") # Start timer
# ... some code to measure
elapsed = pt.t("timer_name") # End timer and get elapsed time
# Pause execution until a key is pressed
pt.p() # Pause until any key is pressed
pt.p("y") # Pause until 'y' key is pressed
# Error handling
try:
# Some code that might raise an exception
result = 1 / 0
except:
pt.e() # Print exception information
Advanced Features
pt.counter()- Count function callspt.profile_resources()- Monitor CPU, memory, and GPU usagept.timeall()- Comprehensive timing for functionspt.props()- Inspect object propertiespt.easy_imports()- Simplify import paths
Documentation
For more detailed documentation, please visit the GitHub repository.
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Print_Tricks_And_More_Alpha-2025.7.28.22-py3-none-any.whl.
File metadata
- Download URL: Print_Tricks_And_More_Alpha-2025.7.28.22-py3-none-any.whl
- Upload date:
- Size: 66.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07b6e22b39b988ed38fb96bab79573b53eaacc09b48b5a2f356de3070dfa96b4
|
|
| MD5 |
df3d0ff6eb835b035160a1a3d0a040f0
|
|
| BLAKE2b-256 |
509e3f07aab4db7d7009c5218dd0cc1e14c1be70691c0ca8a4fc3722adf92feb
|