Skip to main content

blender-python-stubs

PyPI

Strict type stubs for Blender 5.2 Python API.

Provides autocomplete, type checking, and inline documentation for bpy, mathutils, bmesh, gpu, freestyle, and all other Blender Python modules. Generated stubs pass basedpyright all mode with 0 errors and use zero typing.Any.

Installation

pip install "blender-python-stubs>=5.2,<5.3"

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.context.active_object
assert obj is not None
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

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-5.2.1.1.tar.gz (701.2 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-5.2.1.1-py3-none-any.whl (736.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for blender_python_stubs-5.2.1.1.tar.gz
Algorithm Hash digest
SHA256 55d022e5711930c52651e85cd6388d9ca15f17a0f2921a2f9006ec01e3fdaed1
MD5 b9b59a3c7fd582e92b250946b2026283
BLAKE2b-256 11caff3c45442fd299218139cae4c78d9cec2140c386732c4963296d4ca59142

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for blender_python_stubs-5.2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 faa7beccd9678187016c1bef37e3f3400557f3d08f057ad155c925ea3e3b30e2
MD5 3f6904f6106dc262f86d9f6543a20788
BLAKE2b-256 c5eebd47151696a8ef0729a3bf4e750ba4d0b5e71532ecfed695cc51f4acd331

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

5.2.1.1 This release

2 files

5.2.1.0

2 files

5.1.0.3

2 files

5.1.0.2

2 files

5.1.0.1

2 files

5.1.0.0

2 files

5.0.1.4

2 files

5.0.1.3

2 files

5.0.1.2

2 files

5.0.1.1

2 files

5.0.1.0

2 files

4.5.8.2

2 files

4.5.8.1

2 files

4.5.8.0

2 files

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