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.19.tar.gz
(6.5 kB
view details)
Built Distribution
File details
Details for the file python-deco-0.3.19.tar.gz
.
File metadata
- Download URL: python-deco-0.3.19.tar.gz
- Upload date:
- Size: 6.5 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 | b30829563263d4d415f732eaef610948892ffd94bf0a9cd087b53113435e2bbc |
|
MD5 | 079039ef59e261a96d006375d7d8e970 |
|
BLAKE2b-256 | 81d45b096d5b5b7f2a772653dd8e9687f6e58bcbc6067d23b7ff67687bcbe365 |
File details
Details for the file python_deco-0.3.19-py3-none-any.whl
.
File metadata
- Download URL: python_deco-0.3.19-py3-none-any.whl
- Upload date:
- Size: 8.7 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 | 6cbc54e687a1a2457209d0534faac6af973a22ebb0e5559a25c91d4ab90f36d5 |
|
MD5 | 194ad2f268bf6bb385052938b05f0daa |
|
BLAKE2b-256 | f5e3f37727dbc6d0af3c412d4cb6daa168f86c9890293a9b2485e3290bce53f5 |