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.1.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for penguin_py-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75f0aaa25f2d9ff18bc4c2d56de83a7536707042ebcc0093a4d245069e085f60 |
|
MD5 | 5e64c9da054d8b4daf6229b45593ced6 |
|
BLAKE2b-256 | 317bbf0d20a49f53ab0ce8abfdd4858873e1aefc516cf906c1299a3452229368 |