Skip to main content

Utilities for working with inspect.Signature objects.

Project description

The sigtools python library provides:

  • sigtools.signature to resolve function signatures, taking into account parameters added or removed by decorators.

  • Decorators to specify keyword-only parameters, annotations and positional-only parameters, even on python2: sigtools.modifiers

  • Decorators to specify how *args, **kwargs are handled, in a way that can be introspected: sigtools.specifiers

  • Function combination routines that preserve signatures: sigtools.wrappers

  • Functions to manipulate signature objects likewise: sigtools.signatures

The documentation can be found at Read The Docs: https://sigtools.readthedocs.org

Installing

Within a virtualenv:

$ pip install sigtools

Or for a user-wide install:

$ pip install --user sigtools

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sigtools-4.0.0.tar.gz (71.7 kB view hashes)

Uploaded Source

Built Distribution

sigtools-4.0.0-py2.py3-none-any.whl (76.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page