blender-python-stubs
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 (
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)
Metadata
Release files for blender-python-stubs 5.2.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| blender_python_stubs-5.2.1.1.tar.gz | 701.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| blender_python_stubs-5.2.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.4 MB
Release files / blender_python_stubs-5.2.1.1.tar.gz
| Download URL | blender_python_stubs-5.2.1.1.tar.gz |
|---|---|
| Size | 701.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55d022e5711930c52651e85cd6388d9ca15f17a0f2921a2f9006ec01e3fdaed1
|
|
BLAKE2b-256 checksum How to use checksums |
11caff3c45442fd299218139cae4c78d9cec2140c386732c4963296d4ca59142
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.2
|
Release files / blender_python_stubs-5.2.1.1-py3-none-any.whl
| Download URL | blender_python_stubs-5.2.1.1-py3-none-any.whl |
|---|---|
| Size | 736.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
faa7beccd9678187016c1bef37e3f3400557f3d08f057ad155c925ea3e3b30e2
|
|
BLAKE2b-256 checksum How to use checksums |
c5eebd47151696a8ef0729a3bf4e750ba4d0b5e71532ecfed695cc51f4acd331
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.2
|
Security for blender-python-stubs 5.2.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.