semvec/pypi-packages huggingface dataset:
print-tricks-and-more-alpha 2025.7.28.111
Simple to use, Powerful Programming! Debugging, Printing, Analysis, and helpful tools!
License: MIT
Requires Python: >=3.6

# Print Tricks And More

Simple to use, powerful programming tools for debugging, printing, analysis, and more!

## Installation

```bash
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

```python
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 calls
- `pt.profile_resources()` - Monitor CPU, memory, and GPU usage
- `pt.timeall()` - Comprehensive timing for functions
- `pt.props()` - Inspect object properties
- `pt.easy_imports()` - Simplify import paths

## Documentation

For more detailed documentation, please visit the [GitHub repository](https://github.com/developer-1v/print_tricks).

## License

This project is licensed under the MIT License.