Metadata-Version: 2.2
Name: timespy
Version: 1.0.0
Summary: Timespy is a lightweight Python decorator that measures the execution time of functions, providing an easy way to analyze and optimize performance.
Home-page: https://github.com/croketillo/timespy
Author: Croketillo
Author-email: croketillo@gmail.com
License: GPL-3.0-or-later
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
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
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: requires-python
Dynamic: summary

![Pepy Total Downloads](https://img.shields.io/pepy/dt/timespy) |  ![PyPI - Downloads](https://img.shields.io/pypi/dm/timespy) | ![PyPI - Downloads](https://img.shields.io/pypi/dd/timespy) | ![GitHub License](https://img.shields.io/github/license/croketillo/timespy) | ![PyPI - License](https://img.shields.io/pypi/l/timespy) | ![PyPI - Format](https://img.shields.io/pypi/format/timespy) | ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/timespy) | ![PyPI - Wheel](https://img.shields.io/pypi/wheel/timespy) | ![Libraries.io SourceRank](https://img.shields.io/librariesio/sourcerank/pypi/timespy?color=00a135) | ![GitHub file size in bytes](https://img.shields.io/github/size/croketillo/timespy/src%2Ftimespy%2Ftimespy.py) | ![GitHub Release](https://img.shields.io/github/v/release/croketillo/timespy)


# TimeSpy ⏱
Timespy is a lightweight Python decorator that measures the execution time of functions, providing an easy way to analyze and optimize performance.

## Installation
```sh
pip install timespy
```

## Usage

```sh
from timespy import timer

@timer
def my_function():
    import time
    time.sleep(1)

my_function()
print(f"Execution time: {my_function.exec_time:.6f}s")
```

## License

TimeSpy is licensed under the GNU General Public License v3 (GPLv3).
See LICENSE for more details.
