Skip to main content

Type stubs for Blender 5.0 Python API

Project description

blender-python-stubs

Type stubs for Blender 5.0 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>=5.0,<5.1"

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-5.0.1.0.tar.gz (325.5 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.0.1.0-py3-none-any.whl (347.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for blender_python_stubs-5.0.1.0.tar.gz
Algorithm Hash digest
SHA256 97298c3903d218eba36c6d80c3f5f75a29b55206170cb5f73f22abce57f3c3c6
MD5 b876bfc42b3536dde07ac22970c242be
BLAKE2b-256 1a16839002089d1f74aba6597599838f21b865c0f932a1e990635a4190aae7cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for blender_python_stubs-5.0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 86e7143769137966e693f47ee43f387c6ca125ebe568644f95a2c5387185d90e
MD5 d1da906c2c3167338305e5bda292d746
BLAKE2b-256 0e86e00006c6dd2fb2bbbc9c3a4a655959403e23c9c99742468e8f640b899d7c

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