devel/py-makefun - The NetBSD Packages Collection

Small library to dynamically create python functions

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 - just like
functools.wraps but with accurate TypeError exception raising when
user-provided arguments are wrong, and with a very convenient way
to access argument values.

* creating function wrappers that have more or less arguments that
the function they wrap. A bit like functools.partial but a lot more
flexible and friendly for your users. For example, I use it in my
pytest plugins to add a requests parameter to users' tests or
fixtures when they do not already have it.

* more generally, creating functions with a signature derived from
a reference signature,

* or even creating functions with a signature completely defined
at runtime.

Build dependencies

devel/py-setuptools devel/py-setuptools_scm devel/py-wheel devel/py-build misc/py-installer pkgtools/mktools pkgtools/cwrappers

Runtime dependencies

lang/python311 lang/python311

Binary packages

OSArchitectureVersion
NetBSD 10.0aarch64py310-makefun-1.15.2.tgz
NetBSD 10.0aarch64py311-makefun-1.15.2.tgz
NetBSD 10.0aarch64py312-makefun-1.15.2.tgz
NetBSD 10.0aarch64py38-makefun-1.15.2.tgz
NetBSD 10.0aarch64py39-makefun-1.15.2.tgz
NetBSD 10.0aarch64py310-makefun-1.15.1.tgz
NetBSD 10.0aarch64py311-makefun-1.15.1.tgz
NetBSD 10.0aarch64py38-makefun-1.15.1.tgz
NetBSD 10.0aarch64py39-makefun-1.15.1.tgz
NetBSD 10.0aarch64py310-makefun-1.15.1.tgz
NetBSD 10.0aarch64py311-makefun-1.15.1.tgz
NetBSD 10.0aarch64py38-makefun-1.15.1.tgz
NetBSD 10.0aarch64py39-makefun-1.15.1.tgz
NetBSD 10.0aarch64ebpy310-makefun-1.15.1.tgz
NetBSD 10.0aarch64ebpy311-makefun-1.15.1.tgz
NetBSD 10.0aarch64ebpy38-makefun-1.15.1.tgz
NetBSD 10.0aarch64ebpy39-makefun-1.15.1.tgz
NetBSD 10.0aarch64ebpy310-makefun-1.15.2.tgz
NetBSD 10.0aarch64ebpy311-makefun-1.15.2.tgz
NetBSD 10.0aarch64ebpy312-makefun-1.15.2.tgz
NetBSD 10.0aarch64ebpy38-makefun-1.15.2.tgz
NetBSD 10.0aarch64ebpy39-makefun-1.15.2.tgz
NetBSD 10.0alphapy310-makefun-1.15.2.tgz
NetBSD 10.0alphapy311-makefun-1.15.2.tgz
NetBSD 10.0alphapy312-makefun-1.15.2.tgz
NetBSD 10.0alphapy38-makefun-1.15.2.tgz
NetBSD 10.0alphapy39-makefun-1.15.2.tgz
NetBSD 10.0earmv6hfpy310-makefun-1.15.2.tgz
NetBSD 10.0earmv6hfpy311-makefun-1.15.2.tgz
NetBSD 10.0earmv6hfpy312-makefun-1.15.2.tgz
NetBSD 10.0earmv6hfpy38-makefun-1.15.2.tgz
NetBSD 10.0earmv6hfpy39-makefun-1.15.2.tgz
NetBSD 10.0earmv6hfpy310-makefun-1.15.1.tgz
NetBSD 10.0earmv6hfpy311-makefun-1.15.1.tgz
NetBSD 10.0earmv6hfpy38-makefun-1.15.1.tgz
NetBSD 10.0earmv6hfpy39-makefun-1.15.1.tgz
NetBSD 10.0earmv6hfpy310-makefun-1.15.1.tgz
NetBSD 10.0earmv6hfpy311-makefun-1.15.1.tgz
NetBSD 10.0earmv6hfpy38-makefun-1.15.1.tgz
NetBSD 10.0earmv6hfpy39-makefun-1.15.1.tgz
NetBSD 10.0earmv7hfpy310-makefun-1.15.2.tgz
NetBSD 10.0earmv7hfpy311-makefun-1.15.2.tgz
NetBSD 10.0earmv7hfpy312-makefun-1.15.2.tgz
NetBSD 10.0earmv7hfpy38-makefun-1.15.2.tgz
NetBSD 10.0earmv7hfpy39-makefun-1.15.2.tgz
NetBSD 10.0earmv7hfpy310-makefun-1.15.1.tgz
NetBSD 10.0earmv7hfpy311-makefun-1.15.1.tgz
NetBSD 10.0earmv7hfpy38-makefun-1.15.1.tgz
NetBSD 10.0earmv7hfpy39-makefun-1.15.1.tgz
NetBSD 10.0earmv7hfpy310-makefun-1.15.1.tgz
NetBSD 10.0earmv7hfpy311-makefun-1.15.1.tgz
NetBSD 10.0earmv7hfpy38-makefun-1.15.1.tgz
NetBSD 10.0earmv7hfpy39-makefun-1.15.1.tgz
NetBSD 10.0i386py310-makefun-1.15.2.tgz
NetBSD 10.0i386py311-makefun-1.15.2.tgz
NetBSD 10.0i386py312-makefun-1.15.2.tgz
NetBSD 10.0i386py38-makefun-1.15.2.tgz
NetBSD 10.0i386py39-makefun-1.15.2.tgz
NetBSD 10.0i386py310-makefun-1.15.1.tgz
NetBSD 10.0i386py311-makefun-1.15.1.tgz
NetBSD 10.0i386py38-makefun-1.15.1.tgz
NetBSD 10.0i386py39-makefun-1.15.1.tgz
NetBSD 10.0powerpcpy310-makefun-1.15.1.tgz
NetBSD 10.0powerpcpy311-makefun-1.15.1.tgz
NetBSD 10.0powerpcpy38-makefun-1.15.1.tgz
NetBSD 10.0powerpcpy39-makefun-1.15.1.tgz
NetBSD 10.0x86_64py310-makefun-1.15.2.tgz
NetBSD 10.0x86_64py311-makefun-1.15.2.tgz
NetBSD 10.0x86_64py312-makefun-1.15.2.tgz
NetBSD 10.0x86_64py38-makefun-1.15.2.tgz
NetBSD 10.0x86_64py39-makefun-1.15.2.tgz
NetBSD 10.0_BETAx86_64py310-makefun-1.15.1.tgz
NetBSD 10.0_BETAx86_64py311-makefun-1.15.1.tgz
NetBSD 10.0_BETAx86_64py38-makefun-1.15.1.tgz
NetBSD 10.0_BETAx86_64py39-makefun-1.15.1.tgz
NetBSD 8.0i386py310-makefun-1.15.1.tgz
NetBSD 8.0i386py311-makefun-1.15.1.tgz
NetBSD 8.0i386py38-makefun-1.15.1.tgz
NetBSD 8.0i386py39-makefun-1.15.1.tgz
NetBSD 8.0i386py310-makefun-1.15.1.tgz
NetBSD 8.0i386py311-makefun-1.15.1.tgz
NetBSD 8.0i386py38-makefun-1.15.1.tgz
NetBSD 8.0i386py39-makefun-1.15.1.tgz
NetBSD 8.0powerpcpy310-makefun-1.15.1.tgz
NetBSD 8.0powerpcpy311-makefun-1.15.1.tgz
NetBSD 8.0powerpcpy38-makefun-1.15.1.tgz
NetBSD 8.0powerpcpy39-makefun-1.15.1.tgz
NetBSD 8.0powerpcpy310-makefun-1.15.2.tgz
NetBSD 8.0powerpcpy311-makefun-1.15.2.tgz
NetBSD 8.0powerpcpy312-makefun-1.15.2.tgz
NetBSD 8.0powerpcpy38-makefun-1.15.2.tgz
NetBSD 8.0powerpcpy39-makefun-1.15.2.tgz
NetBSD 8.0powerpcpy310-makefun-1.15.1.tgz
NetBSD 8.0powerpcpy311-makefun-1.15.1.tgz
NetBSD 8.0powerpcpy38-makefun-1.15.1.tgz
NetBSD 8.0powerpcpy39-makefun-1.15.1.tgz
NetBSD 8.0x86_64py310-makefun-1.15.1.tgz
NetBSD 8.0x86_64py311-makefun-1.15.1.tgz
NetBSD 8.0x86_64py38-makefun-1.15.1.tgz
NetBSD 8.0x86_64py39-makefun-1.15.1.tgz
NetBSD 8.0x86_64py310-makefun-1.15.1.tgz
NetBSD 8.0x86_64py311-makefun-1.15.1.tgz
NetBSD 8.0x86_64py38-makefun-1.15.1.tgz
NetBSD 8.0x86_64py39-makefun-1.15.1.tgz
NetBSD 8.0x86_64py310-makefun-1.15.2.tgz
NetBSD 8.0x86_64py311-makefun-1.15.2.tgz
NetBSD 8.0x86_64py312-makefun-1.15.2.tgz
NetBSD 8.0x86_64py38-makefun-1.15.2.tgz
NetBSD 8.0x86_64py39-makefun-1.15.2.tgz
NetBSD 9.0aarch64py310-makefun-1.15.2.tgz
NetBSD 9.0aarch64py311-makefun-1.15.2.tgz
NetBSD 9.0aarch64py312-makefun-1.15.2.tgz
NetBSD 9.0aarch64py38-makefun-1.15.2.tgz
NetBSD 9.0aarch64py39-makefun-1.15.2.tgz
NetBSD 9.0aarch64py310-makefun-1.15.1.tgz
NetBSD 9.0aarch64py311-makefun-1.15.1.tgz
NetBSD 9.0aarch64py38-makefun-1.15.1.tgz
NetBSD 9.0aarch64py39-makefun-1.15.1.tgz
NetBSD 9.0aarch64py310-makefun-1.15.1.tgz
NetBSD 9.0aarch64py311-makefun-1.15.1.tgz
NetBSD 9.0aarch64py38-makefun-1.15.1.tgz
NetBSD 9.0aarch64py39-makefun-1.15.1.tgz
NetBSD 9.0alphapy310-makefun-1.15.1.tgz
NetBSD 9.0alphapy311-makefun-1.15.1.tgz
NetBSD 9.0alphapy38-makefun-1.15.1.tgz
NetBSD 9.0alphapy39-makefun-1.15.1.tgz
NetBSD 9.0alphapy310-makefun-1.15.2.tgz
NetBSD 9.0alphapy311-makefun-1.15.2.tgz
NetBSD 9.0alphapy38-makefun-1.15.2.tgz
NetBSD 9.0alphapy39-makefun-1.15.2.tgz
NetBSD 9.0earmv6hfpy310-makefun-1.15.2.tgz
NetBSD 9.0earmv6hfpy311-makefun-1.15.2.tgz
NetBSD 9.0earmv6hfpy38-makefun-1.15.2.tgz
NetBSD 9.0earmv6hfpy39-makefun-1.15.2.tgz
NetBSD 9.0earmv6hfpy310-makefun-1.15.1.tgz
NetBSD 9.0earmv6hfpy311-makefun-1.15.1.tgz
NetBSD 9.0earmv6hfpy38-makefun-1.15.1.tgz
NetBSD 9.0earmv6hfpy39-makefun-1.15.1.tgz
NetBSD 9.0earmv6hfpy310-makefun-1.15.1.tgz
NetBSD 9.0earmv6hfpy311-makefun-1.15.1.tgz
NetBSD 9.0earmv6hfpy38-makefun-1.15.1.tgz
NetBSD 9.0earmv6hfpy39-makefun-1.15.1.tgz
NetBSD 9.0earmv7hfpy310-makefun-1.15.2.tgz
NetBSD 9.0earmv7hfpy311-makefun-1.15.2.tgz
NetBSD 9.0earmv7hfpy38-makefun-1.15.2.tgz
NetBSD 9.0earmv7hfpy39-makefun-1.15.2.tgz
NetBSD 9.0earmv7hfpy310-makefun-1.15.1.tgz
NetBSD 9.0earmv7hfpy311-makefun-1.15.1.tgz
NetBSD 9.0earmv7hfpy38-makefun-1.15.1.tgz
NetBSD 9.0earmv7hfpy39-makefun-1.15.1.tgz
NetBSD 9.0earmv7hfpy310-makefun-1.15.1.tgz
NetBSD 9.0earmv7hfpy311-makefun-1.15.1.tgz
NetBSD 9.0earmv7hfpy38-makefun-1.15.1.tgz
NetBSD 9.0earmv7hfpy39-makefun-1.15.1.tgz
NetBSD 9.0i386py310-makefun-1.15.1.tgz
NetBSD 9.0i386py311-makefun-1.15.1.tgz
NetBSD 9.0i386py38-makefun-1.15.1.tgz
NetBSD 9.0i386py39-makefun-1.15.1.tgz
NetBSD 9.0i386py310-makefun-1.15.2.tgz
NetBSD 9.0i386py311-makefun-1.15.2.tgz
NetBSD 9.0i386py38-makefun-1.15.2.tgz
NetBSD 9.0i386py39-makefun-1.15.2.tgz
NetBSD 9.0mips64ebpy310-makefun-1.15.1.tgz
NetBSD 9.0mips64ebpy311-makefun-1.15.1.tgz
NetBSD 9.0mips64ebpy38-makefun-1.15.1.tgz
NetBSD 9.0mips64ebpy39-makefun-1.15.1.tgz
NetBSD 9.0powerpcpy310-makefun-1.15.2.tgz
NetBSD 9.0powerpcpy311-makefun-1.15.2.tgz
NetBSD 9.0powerpcpy312-makefun-1.15.2.tgz
NetBSD 9.0powerpcpy38-makefun-1.15.2.tgz
NetBSD 9.0powerpcpy39-makefun-1.15.2.tgz
NetBSD 9.0powerpcpy310-makefun-1.15.1.tgz
NetBSD 9.0powerpcpy311-makefun-1.15.1.tgz
NetBSD 9.0powerpcpy38-makefun-1.15.1.tgz
NetBSD 9.0powerpcpy39-makefun-1.15.1.tgz
NetBSD 9.0powerpcpy310-makefun-1.15.1.tgz
NetBSD 9.0powerpcpy311-makefun-1.15.1.tgz
NetBSD 9.0powerpcpy38-makefun-1.15.1.tgz
NetBSD 9.0powerpcpy39-makefun-1.15.1.tgz
NetBSD 9.0sparc64py310-makefun-1.15.1.tgz
NetBSD 9.0sparc64py311-makefun-1.15.1.tgz
NetBSD 9.0sparc64py38-makefun-1.15.1.tgz
NetBSD 9.0sparc64py39-makefun-1.15.1.tgz
NetBSD 9.0x86_64py310-makefun-1.15.2.tgz
NetBSD 9.0x86_64py311-makefun-1.15.2.tgz
NetBSD 9.0x86_64py312-makefun-1.15.2.tgz
NetBSD 9.0x86_64py38-makefun-1.15.2.tgz
NetBSD 9.0x86_64py39-makefun-1.15.2.tgz
NetBSD 9.0x86_64py310-makefun-1.15.1.tgz
NetBSD 9.0x86_64py311-makefun-1.15.1.tgz
NetBSD 9.0x86_64py38-makefun-1.15.1.tgz
NetBSD 9.0x86_64py39-makefun-1.15.1.tgz
NetBSD 9.3x86_64py310-makefun-1.15.1.tgz
NetBSD 9.3x86_64py311-makefun-1.15.1.tgz
NetBSD 9.3x86_64py38-makefun-1.15.1.tgz
NetBSD 9.3x86_64py39-makefun-1.15.1.tgz
NetBSD 9.3x86_64py310-makefun-1.15.2.tgz
NetBSD 9.3x86_64py311-makefun-1.15.2.tgz
NetBSD 9.3x86_64py312-makefun-1.15.2.tgz
NetBSD 9.3x86_64py38-makefun-1.15.2.tgz
NetBSD 9.3x86_64py39-makefun-1.15.2.tgz

Binary packages can be installed with the high-level tool pkgin (which can be installed with pkg_add) or pkg_add(1) (installed by default). The NetBSD packages collection is also designed to permit easy installation from source.

Available build options

(none)

Known vulnerabilities

The pkg_admin audit command locates any installed package which has been mentioned in security advisories as having vulnerabilities.

Please note the vulnerabilities database might not be fully accurate, and not every bug is exploitable with every configuration.


Problem reports, updates or suggestions for this package should be reported with send-pr.