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.15.tar.gz
(5.3 kB
view details)
Built Distribution
File details
Details for the file python-deco-0.3.15.tar.gz
.
File metadata
- Download URL: python-deco-0.3.15.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 | cb471928bc6567067bb595069628471caaf097ea9e1ec3f91b5a1ec56e8d41be |
|
MD5 | 82d2952c37df763f0a52f3a0895922fa |
|
BLAKE2b-256 | 13260fd6a9adaed5d0fa832b4af0a316fa1c71d054fd2e3443c2c4888dff7495 |
File details
Details for the file python_deco-0.3.15-py3-none-any.whl
.
File metadata
- Download URL: python_deco-0.3.15-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 | e3a8dc08faf4eff5931cd6c4b0c94b3e3feec79c71e69d3df46e17c0b6522b59 |
|
MD5 | 8e7354c7a3a75a2535f59f1f5122164c |
|
BLAKE2b-256 | 6202f2b2e3d5027901c6e3c97a163f74ef9157e376e9587b3f002dbab61840e1 |