Skip to main content

PEP 561 type stubs generator for pybind11 modules

Project description

pypi

About

Static analysis tools and IDE usually struggle to understand python binary extensions. pybind11-stubgen generates stubs for python extensions to make them less opaque.

While the CLI tool includes tweaks to target modules compiled specifically with pybind11 but it should work well with modules built with other libraries.

# Install
pip install pybind11-stubgen

# Generate stubs for numpy
pybind11-stubgen numpy

Usage

pybind11-stubgen [-h]
                 [-o OUTPUT_DIR]
                 [--root-suffix ROOT_SUFFIX]
                 [--ignore-invalid-expressions REGEX]
                 [--ignore-invalid-identifiers REGEX]
                 [--ignore-unresolved-names REGEX]
                 [--ignore-all-errors]
                 [--numpy-array-wrap-with-annotated-fixed-size| --numpy-array-remove-parameters]
                 [--print-invalid-expressions-as-is]
                 [--exit-code]
                 MODULE_NAME

Project details


Release history Release notifications | RSS feed

This version

1.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pybind11-stubgen-1.1.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

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

pybind11_stubgen-1.1-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

Details for the file pybind11-stubgen-1.1.tar.gz.

File metadata

  • Download URL: pybind11-stubgen-1.1.tar.gz
  • Upload date:
  • Size: 19.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for pybind11-stubgen-1.1.tar.gz
Algorithm Hash digest
SHA256 9cd0223228d5fc684aa1fc29209a7501dea142e994c39c248381711dedf92a81
MD5 14801582dde0a0002c15f1bd29d2d493
BLAKE2b-256 dd1f1cf6d665569a4aca4419c0d541cef1c81672ce78cd83f8957c37ef3d0512

See more details on using hashes here.

File details

Details for the file pybind11_stubgen-1.1-py3-none-any.whl.

File metadata

  • Download URL: pybind11_stubgen-1.1-py3-none-any.whl
  • Upload date:
  • Size: 24.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for pybind11_stubgen-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 892e4eec580d31e8f60a1214dc14135caf6669d5073ab5a6326525ede0d3f3cb
MD5 6b74552e61a145a079198197048b5963
BLAKE2b-256 eecd69559ce16d3a3a00d235eb2ed4d5a3447dd7aa903f7180b78ab9b4752256

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