Skip to main content

docstub

docstub is a command-line tool to generate Python stub files. It extracts necessary type information from NumPyDoc style docstrings.

Many packages in the scientific Python ecosystem already describe expected parameter and return types in their docstrings. Docstub aims to take advantage of these and help with the adoption of type annotations. It does so by supporting widely used readable conventions such as array of dtype or iterable of int(s) which are translated into valid type annotations.

Specific guides:

Our release notes (latest) are in docs/release_notes/.

Our project follows Scientific Python's Code of Conduct.

Acknowledgements

Thanks to docs2stubs by which this project was heavily inspired and influenced.

And thanks to CZI for supporting this work with an EOSS grant.

Metadata

Release files for docstub 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for docstub 0.7.0
File Size Uploaded Provenance Actions
docstub-0.7.0.tar.gz 115.3 kB With provenance Details for docstub-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for docstub 0.7.0
File Interpreter ABI Platform Actions
docstub-0.7.0-py3-none-any.whl Python 3 none any Details for docstub-0.7.0-py3-none-any.whl

Total release size: 194.5 kB

Release files / docstub-0.7.0.tar.gz

Download URL docstub-0.7.0.tar.gz
Size 115.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5d7746c6b4881c6dddaf4fc83c3d53d2b2a86fd94382f652cdfd4c4b71081606
BLAKE2b-256 checksum
How to use checksums
d12759b1b904375455f00027c69a8abad24b7c22e2ab6a84de4e40e9570272f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

Release files / docstub-0.7.0-py3-none-any.whl

Download URL docstub-0.7.0-py3-none-any.whl
Size 79.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d9f276eea0beaaa141243306b8906110d554c315e89604b1998bb673562cefc7
BLAKE2b-256 checksum
How to use checksums
7e26a611b6edc25e5afe67f0ca525174cd685f190ec1a6ab872762e35da51bf1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

Security for docstub 0.7.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for docstub-0.7.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page