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.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d7bfd43b9f49b3df3093b7c2b304797e8472d0966cba68cd0862f460d936da3 |
|
MD5 | 08222e8c126699e882a35587605efc39 |
|
BLAKE2b-256 | 22d43f9f3a896c80210f77928ae6e2865a34de357131639c82a17009f1a31a38 |