databpy
databpy reads and writes the attributes of mesh, curves and point cloud objects in Blender as NumPy arrays, and creates those objects from arrays. It supports Blender 5.1 and later.
import numpy as np
import databpy as db
# create a mesh object from an (n, 3) array of vertex positions
bob = db.create_bob(np.random.rand(100, 3), name="Points")
# store and read attributes as NumPy arrays; the type is inferred from the dtype
bob.store_named_attribute(np.arange(100), "id")
ids = bob.named_attribute("id")
# attributes as arrays that write changes back to Blender
bob.position[:, 2] += 1.0
bob["id"][:10] = -1
store_named_attribute() and named_attribute() are named after the Store Named Attribute and Named Attribute nodes in Geometry Nodes.
Performance
databpy builds meshes by writing arrays straight to their attributes, rather than through Mesh.from_pydata(), and an attribute array writes back only the values that change:
| Operation | bpy |
databpy | Speedup |
|---|---|---|---|
| Mesh from 100,000 vertices | 37 ms | 0.14 ms | ~260x |
| Mesh from 100,000 vertices and 99,999 edges | 62 ms | 0.24 ms | ~260x |
| Mesh from 90,000 vertices and 89,401 quads | 101 ms | 5.0 ms | ~20x |
| Write 10 values of a 1,000,000 point attribute | 0.28 ms | 0.006 ms | ~45x |
The bpy column uses Mesh.from_pydata() for meshes, and for the attribute write a foreach_get and foreach_set round trip of the whole attribute. Times are medians of the workloads in benchmarks/test_benchmarks.py, measured with bpy 5.2.1 and Python 3.13 on an AMD Ryzen 9 9950X (Linux), and vary by machine. CodSpeed tracks the benchmarks on every pull request.
Installation
pip install databpy
bpy (Blender as a Python module) is an optional dependency, so installing databpy inside Blender doesn't install a second copy of bpy. To use databpy outside Blender, install bpy with it:
pip install "databpy[bpy]"
Supported Blender versions
| Blender | Tests |
|---|---|
| 5.1 | |
| 5.2 | |
| 5.3 (beta) | |
| 5.4 (alpha) |
databpy requires Python 3.13, the version Blender 5.1 and 5.2 use.
Documentation
- Getting started: storing and reading attributes,
BlenderObject, and importing a table with Polars - Attributes guide: attribute types and domains, syncing, performance and errors
- API reference
- Changelog
databpy started inside Molecular Nodes and was split into a separate package for use in other projects, similarly to nodebpy.
Metadata
Release files for databpy 0.12.0
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 | Actions |
|---|---|---|---|---|
| databpy-0.12.0.tar.gz | 39.3 kB | With provenance | Details for databpy-0.12.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| databpy-0.12.0-py3-none-any.whl | Python 3 | none | any | Details for databpy-0.12.0-py3-none-any.whl |
Total release size: 85.9 kB
Release files / databpy-0.12.0.tar.gz
| Download URL | databpy-0.12.0.tar.gz |
|---|---|
| Size | 39.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
00275ba0cc17082ea263fe243176b71763b0f4ee7e05e4152e5404de847334a3
|
|
BLAKE2b-256 checksum How to use checksums |
3056ccbb9734b72fd0cb1617de023367205bf3473e49644755f53a203ccc8280
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.
Transparency logRelease files / databpy-0.12.0-py3-none-any.whl
| Download URL | databpy-0.12.0-py3-none-any.whl |
|---|---|
| Size | 46.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3666d0424a1dba90fa5a5af15dcbff7ad3bcc9b12ecbff42ca48f4d25fec3d61
|
|
BLAKE2b-256 checksum How to use checksums |
9cdd5e6d2e32758f62059f569fe4831c7c4125417c0ffe99e5e614abe4383fbe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.
Transparency logSecurity for databpy 0.12.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for databpy-0.12.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.
Transparency logA 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.