Metadata-Version: 2.4
Name: pylib-timer
Version: 0.1.0
Summary: Code timers, profiling decorators. Performance measurement tools.
Author: pylib-timer
License: MIT
Project-URL: Homepage, https://github.com/upendra-manike/PyLib
Project-URL: Repository, https://github.com/upendra-manike/PyLib
Project-URL: Documentation, https://github.com/upendra-manike/PyLib
Project-URL: Issues, https://github.com/upendra-manike/PyLib/issues
Keywords: ai,data-processing,data-science,machine-learning,ml,nlp,performance,profiling,timing,utilities
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# pytimer

Code timers

## Installation

```bash
pip install pytimer
```

## 💡 Usage Examples

### Basic Operations

```python
from pylib_timer import Timer, timeit

# Timer context manager
with Timer() as timer:
    # Your code here
    pass
print(f"Elapsed: {timer.elapsed} seconds")

# Time function execution
@timeit
def my_function():
    # Your code here
    pass
```

### AI/ML Use Cases

```python
from pylib_timer import Timer, timeit

# Time ML model training
with Timer() as timer:
    model.train(training_data)
print(f"Training took {timer.elapsed:.2f} seconds")

# Profile prediction function
@timeit
def predict_batch(data):
    return model.predict(data)
```

## 📚 API Reference

See package documentation for complete API reference.


## 🤖 AI Agent Friendly

This package is optimized for AI agents and code generation tools:
- **Clear function names** and signatures
- **Comprehensive docstrings** with examples
- **Type hints** for better IDE support
- **Common use cases** documented
- **Zero dependencies** for reliability

## License

MIT
