Title: Nyaatimer - A Simple Python Timer Decorator with Rich Output
Description:
Nyaatimer is a lightweight Python package that provides a simple timer decorator for measuring the execution time of functions. The package uses the perf_counter function from the time module to accurately measure the time taken, and the rich library to display the results in a visually appealing format.
Features:
- Easy-to-use decorator for timing function execution.
- Accurate time measurement using
perf_counter. - Attractive output with
richlibrary integration. - Displays function name, arguments, and keyword arguments in the output.
Example Usage:
To use Nyaatimer, simply import the nyaatimer decorator and apply it to any function you want to measure the execution time of:
from nyaatimer import nyaatimer
@nyaatimer
def example_function(a, b):
return a + b
result = example_function(1, 2)
This will output the execution time and function details in a visually appealing format:
Function example_function took 0.00012345 seconds Args=(1, 2), Kwargs={}
Installation:
To install Nyaatimer, simply run the following command:
pip install nyaatimer
Requirements:
- Python 3.6 or later
- rich library (automatically installed as a dependency)
License:
Nyaatimer is released under the MIT License.
Metadata
Release files for nyaa-timer 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nyaa-timer-2.0.0.tar.gz | 1.9 kB | Without provenance | Details for nyaa-timer-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nyaa_timer-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for nyaa_timer-2.0.0-py3-none-any.whl |
Total release size: 4.0 kB
Release files / nyaa-timer-2.0.0.tar.gz
| Download URL | nyaa-timer-2.0.0.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
12ce4350a5dcb722b25a41cdd49b82fbb644c8c335236fff74e949941d366eb0
|
|
BLAKE2b-256 checksum How to use checksums |
ee889ed7a0639feb863458152f8ccbf5d6c6aeb6f0cef8deca1dc55197cf8f7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / nyaa_timer-2.0.0-py3-none-any.whl
| Download URL | nyaa_timer-2.0.0-py3-none-any.whl |
|---|---|
| Size | 2.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
41d1b786889891bb0544acabb195bb284f09dc9c082b82cfa76dfe03cab83586
|
|
BLAKE2b-256 checksum How to use checksums |
67d86572fc15ffea0d18849ec28eb82aed2de370286bf87a6b70ac76b9351289
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for nyaa-timer 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.