makefun
Small library to dynamically create python functions.
Decision gist · record as of 2026-08-14
Yes. The package is stable, has low install friction, carries no known vulnerabilities, and solves a specific metaprogramming need cleanly. Its single dependency and permissive license make it safe to include. The aging maintenance status (462 days since release) is not a blocker for a mature, focused library, but verify it meets your Python version and use-case requirements before adopting.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction install with a single lightweight dependency (funcsigs).
- Last release was recent (2025-05-09) and the repository remains active with a commit as recent as 2025-05-14, though the package is aging relative to its first release in 2019.
License · maintenance · safety
BSD 3-Clause (permissive) — BSD 3-Clause is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2025-05-09 (462 days) · last repo commit 2025-05-14 · 135 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 17,855,731 downloads/mo, #1,101 on PyPI
Alternatives
Verify before relying
pip install makefun
from makefun import wraps
@wraps(original_function)
def wrapper(*args, **kwargs):
return original_function(*args, **kwargs)- Whether the package's aging status (462 days since last release) affects stability or feature completeness for current Python versions.
- Specific use cases where dynamic function generation is preferable to alternatives like functools.wraps or inspect-based approaches.
What it is and what it does
makefun is a small library for programmatically creating Python functions with custom signatures at runtime. It solves the problem of generating wrapper functions and decorators without writing repetitive boilerplate code—useful when you need to preserve or modify function signatures dynamically, such as in testing frameworks, metaprogramming, or API wrappers.
The package depends only on funcsigs and is classified as Production/Stable. It supports Python 3.9 through 3.13 and is positioned as a developer tool for building other libraries and frameworks that need to generate functions on the fly.
Use it for
- Creating decorators that preserve the original function's signature for better introspection and documentation.
- Building test fixtures or mocks that need to match the exact signature of functions they replace.
- Generating wrapper functions programmatically in metaprogramming or code generation scenarios.
- Building API client libraries that dynamically create methods matching remote service signatures.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is stable, has low install friction, carries no known vulnerabilities, and solves a specific metaprogramming need cleanly. Its single dependency and permissive license make it safe to include. The aging maintenance status (462 days since release) is not a blocker for a mature, focused library, but verify it meets your Python version and use-case requirements before adopting.
Install
makefun on PyPI
Before you install
Low friction install with a single lightweight dependency (funcsigs). Last release was recent (2025-05-09) and the repository remains active with a commit as recent as 2025-05-14, though the package is aging relative to its first release in 2019.
License in practice
BSD 3-Clause is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install makefun
from makefun import wraps
@wraps(original_function)
def wrapper(*args, **kwargs):
return original_function(*args, **kwargs)
Verify before relying
- Whether the package's aging status (462 days since last release) affects stability or feature completeness for current Python versions.
- Specific use cases where dynamic function generation is preferable to alternatives like functools.wraps or inspect-based approaches.
Package facts
| License | BSD 3-Clause permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagefuncsigs |
| Maintenance | Aging 462 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 17,855,731 / month, #1,101 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules |
Evidence: makefun-1.16.0-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “dynamic function generation”
- makefunDynamically creates Python functions at runtime with custom…
- banksBanks is a template language and prompt management system for…
- Cheetah3Cheetah3 is a template engine and code generator that transforms…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also decopatch · wrapt · decorator · parameter-decorators · sigtools · logfury · fastapi-decorators · gin-config · undecorated · singleton-decorator