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 (
BlendDataObjectsinstead of genericbpy_prop_collection) - Readonly
@propertydecorators 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.Anyusage - 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
Generated by blender-python-stubs.
Made with ❤️ at Autour de Minuit (ADV)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file blender_python_stubs-4.5.8.1.tar.gz.
File metadata
- Download URL: blender_python_stubs-4.5.8.1.tar.gz
- Upload date:
- Size: 323.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d80294baf8b242cc6d55adc42246aef1af1736d705c9c634b7940c445441cabe
|
|
| MD5 |
a99777cce5a43ccdab7fe5658a3feace
|
|
| BLAKE2b-256 |
ef795930e938da1d99f0977633c9647cb7b35521ffbf4cc08444ba4c6a7bc2ba
|
File details
Details for the file blender_python_stubs-4.5.8.1-py3-none-any.whl.
File metadata
- Download URL: blender_python_stubs-4.5.8.1-py3-none-any.whl
- Upload date:
- Size: 345.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72cb3348a6617f244b0dfadb04ea60efe144d3846a18d617fdfb7a21a2afefa1
|
|
| MD5 |
ea5ab9f1c75cf0b0e394ca9872be83e0
|
|
| BLAKE2b-256 |
d526762e52a2a49f5e9b5663680df752ddadd296e7597eb000719fb3b29f0720
|