sigtools
Utilities for working with inspect.Signature objects.
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 sigtoolsuv
uv add sigtoolspoetry
poetry add sigtoolsInstalling 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
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
decopatchDecopatch simplifies writing decorators in…
permissive · top 5,000 on PyPI
funcsigsProvides Python function signature…
permissive · top 5,000 on PyPI
wraptwrapt provides a Python module for building…
permissive · top 100 on PyPI
decoratorProvides utilities for writing function…
permissive · top 1,000 on PyPI
undecoratedStrips decorators from Python functions,…
permissive · top 15,000 on PyPI
makefunDynamically creates Python functions at runtime…
permissive · top 5,000 on PyPI
griffeGriffe extracts the complete structure and…
permissive · top 1,000 on PyPI
typing-inspectProvides runtime inspection utilities for…
permissive · top 1,000 on PyPI
inspect2Provides the Python 3.6 inspect module API on…
permissive · top 15,000 on PyPI