Penguin: a customizable stopwatch decorator
Project description
🐧 Penguin_py 🐧
Penguin: a customizable stopwatch decorator ⏱
Meet Peter, penguin_py's
beloved mascot!
https://github.com/espitiaandres/penguin
Installation
With Command Line
To install penguin_py
with the command line, run this command:
pip install penguin_py
.
With a requirements.txt
file
To install penguin_py
using a requirements.txt
file, add this line to your requirements.txt
file.
penguin-py==0.1.1
Usage
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=":")
Documentation
Bugs/Requests
License
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.2.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for penguin_py-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2acb66b174c59754975b1c3d23cf54d4972841fc368bedaf26ade29ed0cfde13 |
|
MD5 | fc55bd4dac7172089dc64c03c6134e98 |
|
BLAKE2b-256 | 01888e29e3ff17dcc38037b9d736813eb26282b84dc30427f11bb6b7555980d0 |