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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

File details

Details for the file sigtools-4.0.0.tar.gz.

File metadata

  • Download URL: sigtools-4.0.0.tar.gz
  • Upload date:
  • Size: 71.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for sigtools-4.0.0.tar.gz
Algorithm Hash digest
SHA256 7cc84a0ba56e34b7f15e433744268f10e0c4a76d6bfece89cecc1a1ca91138b6
MD5 64ed75bfadf6ea198422a330aedc25db
BLAKE2b-256 06e9a6854bd2921dcbfb448a11cbee3110ae3d44b2a6808dc00d57fbdc458496

See more details on using hashes here.

File details

Details for the file sigtools-4.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: sigtools-4.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 76.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for sigtools-4.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7d7bfd43b9f49b3df3093b7c2b304797e8472d0966cba68cd0862f460d936da3
MD5 08222e8c126699e882a35587605efc39
BLAKE2b-256 22d43f9f3a896c80210f77928ae6e2865a34de357131639c82a17009f1a31a38

See more details on using hashes here.

Supported by

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