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
| System | Port | Version |
|---|---|---|
| MidnightBSD | devel/py-decorator | 4.4.2_1 |
| FreeBSD | devel/py-decorator | 5.3.1 |
| OpenBSD | devel/py-decorator | 5.2.1p1 |
| NetBSD | devel/py-decorator | 5.3.1 |
| DragonFly | devel/py-decorator | 5.2.1 |
| HardenedBSD | devel/py-decorator | 5.3.1 |
| GhostBSD | devel/py-decorator | 5.3.1 |
| OPNsense | devel/py-decorator | 5.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
| File | Size | SHA256 |
|---|---|---|
| decorator-4.4.2.tar.gz | 33629 | e3a62f0520172440ca0dcc823749319382e377f37f140a0b99ef45fecb84bfe7 |
Master sites 1
- PYPI