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.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d216b4cf920bbab0fce636ddc429ed8463a5b533d9e1492acb45a2a1bc36ac6c |
|
MD5 | e87e8ab4a5a04f13e00cbf95049f2e09 |
|
BLAKE2b-256 | 1f91853dbf6ec096197dba9cd5fd0c836c5fc19142038b7db60ebe6332b1bab1 |