https://github.com/alexzajac/decorpy
Collection of simple decorators in Python.
https://github.com/alexzajac/decorpy
debug decorators python time typing
Last synced: about 2 months ago
JSON representation
Collection of simple decorators in Python.
- Host: GitHub
- URL: https://github.com/alexzajac/decorpy
- Owner: alexZajac
- License: gpl-3.0
- Created: 2019-08-23T22:40:22.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-12-01T14:32:47.000Z (6 months ago)
- Last Synced: 2025-04-10T23:17:18.743Z (about 2 months ago)
- Topics: debug, decorators, python, time, typing
- Language: Python
- Homepage: https://pypi.org/project/decorpy/
- Size: 61.5 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Decorpy

[](https://coveralls.io/github/alexZajac/decorpy)
[](https://pyup.io/repos/github/alexZajac/decorpy/)
[](https://pyup.io/repos/github/alexZajac/decorpy/)A collection of python decorators including time measurement, type checking and debugging.
## Installation
Install the package directly using `Pip` with [Pypi](https://pypi.org/project/decorpy/)
`pip install decorpy`
Or using `git`
`git clone https://github.com/alexZajac/decorpy.git`
`cd decorpy`
`python setup.py install`
## Examples
### Measure execution time of a function
[Link to gist](https://gist.github.com/alexZajac/f5b594307848f0b23b9ca4fea202633d)### Debugging a function with its signature and return value
[Link to gist](https://gist.github.com/alexZajac/e4d222757a1095abf6f8cbdcef1e1870)
### Runtime type-checking on function parameters and return
[Link to gist](https://gist.github.com/alexZajac/fe96e566e4f4aab4f80312abb49d25e8)
[ ~ Dependencies scanned by PyUp.io ~ ]