pybind11-stubgen 2.5.5


pip install pybind11-stubgen

  Latest version

Released: Aug 09, 2025

Project Links

Meta
Maintainer: Sergei Izmailov
Requires Python: ~=3.7

Classifiers

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]
                 [--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
2.5.5 Aug 09, 2025
2.5.4 May 14, 2025
2.5.3 Feb 24, 2025
2.5.1 Mar 29, 2024
2.5 Mar 05, 2024
2.4.2 Nov 27, 2023
2.4.1 Nov 25, 2023
2.4 Nov 21, 2023
2.3.7 Nov 18, 2023
2.3.6 Oct 24, 2023
2.3.5 Oct 24, 2023
2.3.4 Oct 23, 2023
2.3.3 Oct 22, 2023
2.3.2 Oct 21, 2023
2.3.1 Oct 21, 2023
2.3 Sep 27, 2023
2.2.2 Sep 26, 2023
2.2.1 Sep 23, 2023
2.2 Sep 20, 2023
2.1 Sep 06, 2023
2.0.2 Sep 04, 2023
2.0.1 Sep 02, 2023
2.0 Sep 01, 2023
2.0.dev1 Sep 01, 2023
1.2 Aug 31, 2023
1.1 Aug 30, 2023
1.0 Aug 30, 2023
1.0.dev1 Aug 29, 2023
0.16.2 Jul 15, 2023
0.16.1 Jun 30, 2023
0.16.0 Jun 27, 2023
0.15.1 Jun 12, 2023
0.15.0 May 27, 2023
0.14.0 May 25, 2023
0.13.0 Mar 10, 2023
0.12.0 Dec 28, 2022
0.11.0 Sep 30, 2022
0.10.5 Jan 15, 2022
0.10.4 Jan 08, 2022
0.10.3 Jan 07, 2022
0.10.2 Dec 23, 2021
0.10.1 Dec 16, 2021
0.10.0 Dec 10, 2021
0.9.1 Dec 07, 2021
0.9 Dec 04, 2021
0.8.8 Sep 17, 2021
0.8.7 Mar 04, 2021
0.8.6 Oct 15, 2020
0.8.5 Oct 14, 2020
0.8.4 Oct 14, 2020
0.8.3 Oct 13, 2020
0.8.2 Sep 19, 2020
0.8.1 Sep 04, 2020
0.8.0 Sep 04, 2020
0.7.1 Sep 01, 2020
0.7.0 Aug 27, 2020
0.6.2 Aug 26, 2020
0.6.1.post1 Aug 26, 2020
0.6.1 Aug 26, 2020
0.6.0 Aug 24, 2020
0.5.0 Aug 20, 2020
0.4.0 Aug 06, 2020
0.3.5 Aug 03, 2020
0.3.4 Jul 28, 2020
0.3.3 Jul 28, 2020
0.3.2 Jun 06, 2020
0.3.1.post1 May 13, 2020
0.3.1 May 13, 2020
0.3.0 Feb 28, 2020
0.2.2.post1 Feb 17, 2020
0.2.2 Feb 16, 2020
0.2.1 Nov 01, 2019
0.2.0 Sep 02, 2019
0.1.0.post1 Jul 01, 2019
0.1.0 Jul 01, 2019
0.0.3 Jun 30, 2019
0.0.2 Apr 12, 2019
0.0.1 Apr 12, 2019

Wheel compatibility matrix

Platform Python 3
any

Files in release

No dependencies