Installation¶
Requirements¶
Python 3.10 or newer (uses PEP 604
X | Yunion syntax at runtime)No third-party runtime dependencies — the package uses the standard library only
From PyPI¶
pip install stubpy
From source¶
git clone https://github.com/wzjoriv/stubpy.git
cd stubpy
pip install -e .
Development extras¶
To run the test suite and build the documentation locally, install the optional dependency groups:
# Tests (pytest + coverage)
pip install -e ".[dev]"
# Documentation (Sphinx + Furo theme + MyST)
pip install -e ".[docs]"
# Both at once
pip install -e ".[dev,docs]"
Verifying the installation¶
stubpy --help
You should see the stubpy CLI help text. You can also verify the Python API is importable:
from stubpy import generate_stub
print("stubpy is ready")