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-use-type-var|
--numpy-array-remove-parameters]
[--print-invalid-expressions-as-is]
[--print-safe-value-reprs REGEX]
[--exit-code]
[--stub-extension EXT]
MODULE_NAME
Metadata
Release files for pybind11-stubgen 2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pybind11-stubgen-2.5.tar.gz | 24.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pybind11_stubgen-2.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 54.4 kB
Release files / pybind11-stubgen-2.5.tar.gz
| Download URL | pybind11-stubgen-2.5.tar.gz |
|---|---|
| Size | 24.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96a7febcab248bf98abd4bb72cc5f729ba87b2344247454c1759e63cde9fef34
|
|
BLAKE2b-256 checksum How to use checksums |
e87d8076d8fe78189cae0c173b32e3bdad058be4a88c903a61834ba31399aa0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Release files / pybind11_stubgen-2.5-py3-none-any.whl
| Download URL | pybind11_stubgen-2.5-py3-none-any.whl |
|---|---|
| Size | 29.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a2c40ab347d9918e6ab807fd7739fa5cbc19bdb1c69b7cc07fedb1a7e93446a9
|
|
BLAKE2b-256 checksum How to use checksums |
2e5e80978e65ceac90b5606925eea03b50760e398a9cb0bbaaeb81abbd2c4c7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Security for pybind11-stubgen 2.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.