Skip to main content

Type stubs for Blender 4.5 Python API

Project description

blender-python-stubs

Type stubs for Blender 4.5 Python API.

Provides autocomplete, type checking, and inline documentation for bpy, mathutils, bmesh, gpu, freestyle, and all other Blender Python modules.

Installation

pip install "blender-python-stubs>=4.5,<4.6"

Features

  • Full Blender API coverage (bpy, mathutils, bmesh, gpu, gpu_extras, bpy_extras, freestyle, aud, blf, bl_math, imbuf, idprop)
  • Accurate collection types (BlendDataObjects instead of generic bpy_prop_collection)
  • Readonly @property decorators for RNA attributes
  • Typed context members (bpy.context.active_object, selected_objects, etc.)
  • Constructor signatures for mathutils, gpu, and other C extension types
  • Literal enum types instead of plain str
  • Zero typing.Any usage
  • 0 errors in basedpyright strict mode

Usage

import bpy

obj: bpy.types.Object = bpy.context.active_object
obj.location.x = 1.0

bpy.data.objects.new("Cube", bpy.data.meshes.new("Mesh"))

Disclaimer

This project was coded with assistance of AI.

License

MIT


Generated by blender-python-stubs.

Made with ❤️ at Autour de Minuit (ADV) blender

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

blender_python_stubs-4.5.8.0.tar.gz (323.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

blender_python_stubs-4.5.8.0-py3-none-any.whl (344.4 kB view details)

Uploaded Python 3

File details

Details for the file blender_python_stubs-4.5.8.0.tar.gz.

File metadata

File hashes

Hashes for blender_python_stubs-4.5.8.0.tar.gz
Algorithm Hash digest
SHA256 facf56649550f9af8183521c584ee96e24de3852cbe84e9ec4b5bd6dc18fb05d
MD5 b7949cf41e151db53b05bc8c6a3691a7
BLAKE2b-256 40c78c0d29eaa3f1103632c0b15d3540d609a382aee2f970830c1c9466603a03

See more details on using hashes here.

File details

Details for the file blender_python_stubs-4.5.8.0-py3-none-any.whl.

File metadata

File hashes

Hashes for blender_python_stubs-4.5.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a65abfab36a9edb883d5bffe71e87ffcf1c20cb936301cb8f4e40a0b354e877
MD5 62cbd9acde352f127dfffc9a59d59418
BLAKE2b-256 aed224033d3e3f9450ee534719709bb8124847babb29923b6f6901dd46011028

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page