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]
[--enum-class-locations REGEX:LOC]
[--numpy-array-wrap-with-annotated|
--numpy-array-remove-parameters]
[--print-invalid-expressions-as-is]
[--print-safe-value-reprs REGEX]
[--exit-code]
[--stub-extension EXT]
MODULE_NAME
Release files for pybind11-stubgen 2.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pybind11-stubgen-2.3.4.tar.gz | 22.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pybind11_stubgen-2.3.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:50.7 kB
Release files / pybind11-stubgen-2.3.4.tar.gz
| Download URL | pybind11-stubgen-2.3.4.tar.gz |
|---|---|
| Size | 22.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b620c9640fb15ad91b3885890fdd4f0318203dc5def4022ecc9f3e714e24625a
|
|
BLAKE2b-256 checksum How to use checksums |
bda780cdc15a7970aa92f53cb5924ce41d5093c9760dac14c196136296d2bc2c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / pybind11_stubgen-2.3.4-py3-none-any.whl
| Download URL | pybind11_stubgen-2.3.4-py3-none-any.whl |
|---|---|
| Size | 28.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d5d2710b6c0ca79cd65dc367b2951226e1ad54c69a5a1a5a01b99588a0d222b
|
|
BLAKE2b-256 checksum How to use checksums |
82ec066587008abd94b276e51e5d6f9a44bd7a7cc63d36cbcbb81864f99e476f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|