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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for sigtools-4.0.0a2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea8150000af1c84dc0562a49bf44cece7ffdc6bdb44fad1b2f6ecf4c0420ea8d |
|
MD5 | 79f381a2eb7391801b98d6508a127234 |
|
BLAKE2b-256 | 85040278c941fc42c1d8f4d5e2f5c785e03b747af20da3096b299d721286a0ce |