small library to dynamically create Python functions
Project homepage: https://github.com/smarie/python-makefun
Description
makefun helps you create functions dynamically, with the signature of
your choice. It was largely inspired by decorator and functools, and
created mainly to cover some of their limitations.
The typical use cases are:
- creating signature-preserving function wrappers
- creating function wrappers that have more or less arguments than
the function they wrap
- more generally, creating functions with a signature derived from
a reference signature, or even creating functions with a signature
completely defined at runtime
Package information
- Ports path
- devel/py-makefun
- Package architecture
- amd64
- Maintainer
- The OpenBSD ports mailing-list <ports@openbsd.org>
- Categories
- devel, lang/python
- Available flavors
- None listed
- Only for architectures
- aarch64, amd64, arm, i386, mips64, mips64el, powerpc, powerpc64, riscv64, sparc64, alpha, hppa
Ports list build and test dependencies as well as runtime dependencies. pkg_add selects those needed for installation.
Direct dependencies
Runtime
Build
- lang/python/3
- devel/py-build
- devel/py-installer
- devel/py-setuptools py3-setuptools->=79v0
- devel/py-wheel
- devel/py-setuptools_scm
Test
Used by (1 dependency relationships)
Includes library, runtime, build and test dependencies.