Skip to content

dotKokott/bpy-stubs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bpy-stubs

Automated generation of Blender Python API type stubs using bpystubgen via GitHub Actions.

What is this?

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

Adding New Versions

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 push

GitHub Actions will automatically:

  1. Generate stubs for the new version
  2. Create a GitHub release
  3. Tag it as v<version> for pip installation

See available releases: Releases page

Installing Generated Stubs

pip install git+https://github.com/dotKokott/[email protected]

Or in pyproject.toml:

[project]
dependencies = [
    "bpy-stubs @ git+https://github.com/dotKokott/[email protected]",
]

License

GPL-3.0 (matches Blender's licensing)

About

GH Action automation of using bpystubgen to generate stubs for any bpy version

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages