$npx skillfedfor your agent

legacy-api-wrap

Legacy API wrapper.

With conditionsPyPI Python ModulesReleased Nov 20251.2M downloads / moMPL-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — legacy_api_wrap-1.5-py3-none-any.whl
v1.5 · released 2025-11-03 · Python >=3.9

Yes, if you maintain a library with legacy function signatures and need to evolve them safely. The package is actively maintained, has no dependencies, and solves a specific refactoring problem well. The MPL-2.0 copyleft license is straightforward for library use. Install it only if you have functions to migrate; it is not a general-purpose utility.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.9 or later.
  • Low friction: pure Python wheel with no runtime dependencies.
  • Active maintenance with recent commits; last release 284 days ago.

License · maintenance · safety

MPL-2.0 (copyleft) — Licensed under MPL-2.0 (copyleft). You must disclose source and modifications if you distribute the package, but can use it in closed-source projects provided you comply with copyleft obligations for the package itself.

last release 2025-11-03 (284 days) · last repo commit 2026-08-11 · 1 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,197,820 downloads/mo, #4,231 on PyPI

Verify before relying

pip install legacy-api-wrap

from legacy_api_wrap import legacy_api

@legacy_api('d', 'c')
def fn(a, b=None, *, c=2, d=1, e=3):
    return c, d, e

result = fn(12, 13, 14)  # Old API call, emits DeprecationWarning
  • Whether the decorator handles *args or **kwargs in the wrapped function signature
  • Whether parameter reordering works with type hints or dataclass-like signatures
  • Performance overhead of the decorator on function calls
Same gist for agents: .md · .json

What it is and what it does

Legacy API Wrap is a single-purpose decorator library for managing the migration of function signatures from older Python code to modern conventions. It solves the problem of breaking backward compatibility when you want to convert positional parameters to keyword-only parameters—a common refactoring when updating legacy codebases. The decorator lets you specify which parameters were positional in the old API, then wraps the new function to accept calls using the old signature while emitting a DeprecationWarning to guide users toward the new calling convention.

The package has no runtime dependencies and is designed for library maintainers who need to evolve their APIs gradually. It works by intercepting calls to the decorated function, mapping old positional arguments to their new keyword-only positions, and forwarding them to the updated function signature. This is particularly useful for APIs defined before keyword-only parameters existed in Python, allowing you to reorder parameters and add new ones without immediately breaking existing code.

Use it for

  • Migrate a library function from positional to keyword-only parameters while warning existing users to update their code.
  • Reorder function parameters for better API design without breaking code that calls the function with positional arguments.
  • Add new parameters to a function signature while maintaining backward compatibility with old calling patterns.
  • Gradually deprecate an old function API by wrapping it with warnings before removing it entirely.
  • Support both old and new calling conventions during a library version transition period.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you maintain a library with legacy function signatures and need to evolve them safely.

The package is actively maintained, has no dependencies, and solves a specific refactoring problem well. The MPL-2.0 copyleft license is straightforward for library use. Install it only if you have functions to migrate; it is not a general-purpose utility.

Install

legacy-api-wrap on PyPI

Before you install

Low friction: pure Python wheel with no runtime dependencies. Active maintenance with recent commits; last release 284 days ago.

Requires Python 3.9 or later.

License in practice

Licensed under MPL-2.0 (copyleft). You must disclose source and modifications if you distribute the package, but can use it in closed-source projects provided you comply with copyleft obligations for the package itself.

Quickstart

pip install legacy-api-wrap

from legacy_api_wrap import legacy_api

@legacy_api('d', 'c')
def fn(a, b=None, *, c=2, d=1, e=3):
    return c, d, e

result = fn(12, 13, 14)  # Old API call, emits DeprecationWarning

Verify before relying

  • Whether the decorator handles *args or **kwargs in the wrapped function signature
  • Whether parameter reordering works with type hints or dataclass-like signatures
  • Performance overhead of the decorator on function calls

Package facts

LicenseMPL-2.0 copyleft
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 284 days since the last release
Last repo commit
First released
Downloads1,197,820 / month, #4,231 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTyping :: Typed

Evidence: legacy_api_wrap-1.5-py3-none-any.whl

Tags

Capabilities
legacy api wrapper decoratorconvert positional to keyword-only parametersbackward compatible function signaturedeprecation warning for old api callsreorder function parameters safelypython function api migrationkeyword-only parameter decorator
Topics
api-migrationdeprecation-handling

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 › “legacy api wrapper decorator”

  • legacy-api-wrapProvides a decorator to wrap legacy function APIs, allowing you to…
  • asgirefProvides ASGI base libraries including sync-to-async and…
  • botoinatorBotoinator lets you attach decorators to boto3 client and resource…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

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.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

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.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

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.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

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…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also pyDeprecate · Deprecated · deprecat · snowflake._legacy · deprecation · django-deprecate-fields · zope.deprecation · packaging-legacy · purify · wrapt