No project description provided
Project description
An OSS that has something to do with decorators in python
Features
- Time related decorators
- Debugging decorators
- Custom cli input decorators
Example
@timeit
from pyDeco.dev import inactive
from pyDeco.time import timeit
@timeit
def func():
# do something
return 1
pyDeco | INFO | Function func() took 2.0261 seconds.
@stacktrace
from pyDeco.dev import stacktrace
def nested_func():
print("nested")
def func_b():
print("func_b")
nested_func()
@stacktrace
def func_a():
print("func_a")
func_b()
return 1
func_a()
pyDeco | INFO | @stacktrace set up for func_a()...
func_a
pyDeco | INFO | Executing func_b, line 9, from /mnt/Personal/test.py
func_b
pyDeco | INFO | Executing nested_func, line 5, from /mnt/Personal/test.py
nested
TODO
credits
https://bytepawn.com/python-decorators-for-data-scientists.html
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
python-deco-0.3.13.tar.gz
(5.0 kB
view details)
Built Distribution
File details
Details for the file python-deco-0.3.13.tar.gz
.
File metadata
- Download URL: python-deco-0.3.13.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.10.4 Linux/5.15.0-60-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81feb9319d4a45e62306d971e188023184bd452f8e1dcb3f324b9bb988249ac7 |
|
MD5 | 8b70a2f9edfd9910da636be996839f57 |
|
BLAKE2b-256 | 3736b7967b1826f9e574cd3e89066030910b82e5c054c9b5e805a33fb032436b |
File details
Details for the file python_deco-0.3.13-py3-none-any.whl
.
File metadata
- Download URL: python_deco-0.3.13-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.10.4 Linux/5.15.0-60-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa9e1d469fc03df1fe2e9502a7ecbfc238d2027ea9591973ee3b3c39d0dc4d13 |
|
MD5 | 6a1401462353a0f0fb023491e1492175 |
|
BLAKE2b-256 | ca01ba98715df04e08d44a6a24238d8a39f2af6b2e2b337d130761fc61630280 |