项目作者: alexZajac

项目描述 :
Collection of simple decorators in Python.
高级语言: Python
项目地址: git://github.com/alexZajac/decorpy.git
创建时间: 2019-08-23T22:40:22Z
项目社区:https://github.com/alexZajac/decorpy

开源协议:GNU General Public License v3.0

下载


Decorpy

Travis
Coverage Status
Updates
Python 3

A collection of python decorators including time measurement, type checking and debugging.

Installation

Install the package directly using Pip with Pypi

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

Debugging a function with its signature and return value

Link to gist

Runtime type-checking on function parameters and return

Link to gist

[ ~ Dependencies scanned by PyUp.io ~ ]