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.16.tar.gz
(5.3 kB
view details)
Built Distribution
File details
Details for the file python-deco-0.3.16.tar.gz
.
File metadata
- Download URL: python-deco-0.3.16.tar.gz
- Upload date:
- Size: 5.3 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 | cf3ef8d9f7d1599587091af987d36c2b520f02d1ad8399d26662f4c9712663c1 |
|
MD5 | 59e1e9eab52114e71c1ba9204f4bb7c3 |
|
BLAKE2b-256 | aa29c99cf414e793586908a213267d44b164a5152250974c35d7a13bf470a195 |
File details
Details for the file python_deco-0.3.16-py3-none-any.whl
.
File metadata
- Download URL: python_deco-0.3.16-py3-none-any.whl
- Upload date:
- Size: 6.9 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 | 129160cb8d777dbc8c8364493c0c00aecc5cb43b7eb3e8eb56cab7ac8035b442 |
|
MD5 | a5b48bccf093bc0b5c6bf66c8517c2cb |
|
BLAKE2b-256 | 6730fddd00ef9289ff611c630fa29425d22400690468368940cb3ab651b6df2a |