Penguin: a customizable stopwatch decorator
Project description
Penguin_py
Penguin: a customizable stopwatch decorator
https://github.com/espitiaandres/penguin
More details to follow soon! :)
To install:
pip install penguin_py
To run with default kwargs:
from penguin_py import penguin
@penguin()
def test_func(test1, test2=None):
# NOTE: this function can be anything!
for i in range(10000):
pass
return "test", True
test = test_func("", test2=":")
To run with user specified kwargs:
@penguin(
verbose=True,
show_args=True,
show_return=True,
)
def test_func(test1, test2=None):
# NOTE: this function can be anything!
for i in range(10000):
pass
return "test", True
test = test_func("", test2=":")
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 Distribution
penguin_py-0.1.0.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for penguin_py-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b924a1b0b97d7b89b3a65d5b2e14df1ceef7a9784545bb886b0f4858d84dd22 |
|
MD5 | c5ad70a5d659509e2e062c3600a12620 |
|
BLAKE2b-256 | 9a038a5aca925dba6962af817903dd6017a8346de8868da960d80e0af960cae7 |