skillfed

sigtools

Utilities for working with inspect.Signature objects.

sigtools v4.0.1 836.2K downloads/30d#4,933 on PyPI
Permissive license MIT Abandoned released

What it is and what it does

Sigtools is a library for working with Python function signatures at runtime. It provides tools to resolve the true signature of a function even when decorators have wrapped or modified it, and utilities to define keyword-only parameters, annotations, and positional-only parameters in a way that can be introspected. The library also includes decorators for specifying how *args and **kwargs are handled, and function combination routines that preserve signature metadata.

The package is most useful for library authors and framework developers who need to preserve or manipulate callable signatures through layers of decoration, or who want to provide introspectable APIs with explicit parameter handling. It depends only on attrs and installs with low friction.

Use it for:

  • Decorators that need to preserve the original function's signature so introspection tools see the correct parameters.
  • Building frameworks where *args/**kwargs handling must be explicitly documented and introspectable by tools.
  • Libraries that wrap functions and need to expose the wrapped function's true signature to callers.
  • Code requiring keyword-only or positional-only parameter syntax with explicit introspection support.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Sigtools provides utilities to inspect and manipulate Python function signatures, including resolving signatures through decorators and creating introspectable wrappers that preserve signature information.

Yes, but with caution. The package is stable and permissively licensed, with low install friction and no known vulnerabilities. However, it is abandoned—no maintenance since October 2022. Install it if you need signature introspection and manipulation for existing code or stable use cases, but do not rely on it for active development or expect security updates. Consider forking or finding an actively maintained alternative if you need ongoing support.

Install

sigtools on PyPI

pip

pip install sigtools

uv

uv add sigtools

poetry

poetry add sigtools

Installing sigtools

Before you install

Low install friction with a single lightweight dependency (attrs). However, the package is abandoned—last release was in October 2022. No active maintenance or security updates should be expected.

License in practice

MIT license is permissive and imposes no significant restrictions on use, modification, or redistribution in most contexts.

Quickstart

pip install sigtools

import sigtools

# Resolve a function's signature, accounting for decorators
sig = sigtools.signature(some_function)

Requires Python 3.6 or later.

Verify before relying

  • Whether the package's decorator and signature-manipulation features work correctly with Python versions beyond 3.9 despite abandonment.
  • Whether existing code depending on sigtools continues to function in current production environments without maintenance patches.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.6)
Install friction low — pure-Python wheel
Runtime dependencies 1 — attrs
Maintenance abandoned — 1,401 days since the last release
First released
Downloads 836,195/month — #4,933 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: sigtools-4.0.1-py2.py3-none-any.whl

Keywords: introspection, signature

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules

Tags

function signature inspectiondecorator signature preservationpython introspection utilitiescallable signature manipulationinspect.Signature utilities
introspectiondecoratorsabandoned

More Python Modules packages