Automated generation of Blender Python API type stubs using bpystubgen via GitHub Actions.
This repository automatically generates type stubs when you add version numbers to the VERSIONS file. The GitHub Action handles everything:
- Installs bpy package
- Clones Blender source
- Generates RST documentation
- Runs bpystubgen
- Creates GitHub releases with installable packages
Edit the VERSIONS file and add the version number:
echo "4.4.0" >> VERSIONS
git add VERSIONS
git commit -m "Add Blender 4.4.0"
git pushGitHub Actions will automatically:
- Generate stubs for the new version
- Create a GitHub release
- Tag it as
v<version>for pip installation
See available releases: Releases page
pip install git+https://github.com/dotKokott/[email protected]Or in pyproject.toml:
[project]
dependencies = [
"bpy-stubs @ git+https://github.com/dotKokott/[email protected]",
]GPL-3.0 (matches Blender's licensing)