BSD Ports

devel/py-decorator 4.4.2_1 MidnightBSD

Better living through Python with decorators

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
mit
Categories
devel, python

Description

As of now, writing custom decorators correctly requires some experience and it is not as easy as it could be. For instance, typical implementations of decorators involve nested functions, and we all know that flat is better than nested. Moreover, typical implementations of decorators do not preserve the signature of decorated functions, thus confusing both documentation tools and developers.

The aim of the decorator module it to simplify the usage of decorators for the average programmer, and to popularize decorators usage giving examples of useful decorators, such as memoize, tracing, redirecting_stdout, locked, etc.

In the other systems

SystemPortVersion
MidnightBSDdevel/py-decorator4.4.2_1
FreeBSDdevel/py-decorator5.3.1
OpenBSDdevel/py-decorator5.2.1p1
NetBSDdevel/py-decorator5.3.1
DragonFlydevel/py-decorator5.2.1
HardenedBSDdevel/py-decorator5.3.1
GhostBSDdevel/py-decorator5.3.1
OPNsensedevel/py-decorator5.3.1

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}decorator

From mports:

cd /usr/mports/devel/py-decorator && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}decorator>0:devel/py-decorator

Dependencies

Configuration

No options to configure.

USES
python cpe
Service scripts
none

Files

distinfo 1
FileSizeSHA256
decorator-4.4.2.tar.gz33629e3a62f0520172440ca0dcc823749319382e377f37f140a0b99ef45fecb84bfe7
Master sites 1
  • PYPI