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
File details
Details for the file sigtools-4.0.1.tar.gz
.
File metadata
- Download URL: sigtools-4.0.1.tar.gz
- Upload date:
- Size: 71.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b8e135a9cd4d2ea00da670c093372d74e672ba3abb87f4c98d8e73dea54445c |
|
MD5 | 09e35fa5064f3b5d355e4f7d33a087b1 |
|
BLAKE2b-256 | 5fdb669ca14166814da187b3087b908ca924cf83f5b504fe23b3859a3ef67d4f |
File details
Details for the file sigtools-4.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: sigtools-4.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 76.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d216b4cf920bbab0fce636ddc429ed8463a5b533d9e1492acb45a2a1bc36ac6c |
|
MD5 | e87e8ab4a5a04f13e00cbf95049f2e09 |
|
BLAKE2b-256 | 1f91853dbf6ec096197dba9cd5fd0c836c5fc19142038b7db60ebe6332b1bab1 |