Skip to main content

BrickLayer

BrickLayer is an SDK for programmatically creating and validating LEGO® builds. Using only Python code, you can assemble models from real catalog parts, query them for structural problems (collisions, floating parts, disconnected pieces), and export them directly to LDraw.

Installation

pip install bricklayer-sdk

Quickstart

import bricklayer as bl

model = bl.LegoBuild()
base = model.add(bl.plate(4, 4, color=bl.Color.GREEN), (0, 0, 0), name="base")
model.stack(bl.brick(2, 2, color=bl.Color.RED), on=base)

assert model.is_valid()  # no collisions, nothing floating
bl.write_ldraw(model, "tower.ldr")  # open in any LDraw viewer

API reference

For the full API reference, see bricklayer.api_reference() or run the following command:

python -m bricklayer

Bundled part data derive from the LDraw.org Parts Library (CC BY 2.0/4.0), BrickNet (MIT), and Rebrickable; see NOTICE.

LEGO® is a trademark of the LEGO Group, which does not sponsor, authorize, or endorse this project.

Metadata

Release files for bricklayer-sdk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bricklayer-sdk 0.1.0
File Size Uploaded Provenance Actions
bricklayer_sdk-0.1.0.tar.gz 83.4 MB Without provenance Details for bricklayer_sdk-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bricklayer-sdk 0.1.0
File Interpreter ABI Platform Actions
bricklayer_sdk-0.1.0-py3-none-any.whl Python 3 none any Details for bricklayer_sdk-0.1.0-py3-none-any.whl

Total release size: 166.8 MB

Release files / bricklayer_sdk-0.1.0.tar.gz

Download URL bricklayer_sdk-0.1.0.tar.gz
Size 83.4 MB
Tags Source
SHA-256 checksum
How to use checksums
b8a9f63e632942e1b68e4bb09215590196848179d3111bcb9ca7da8a14b88e94
BLAKE2b-256 checksum
How to use checksums
4d79056ce57c259d8ebc04856dc4500fdf28a487624f258f91d2e968910ebcea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / bricklayer_sdk-0.1.0-py3-none-any.whl

Download URL bricklayer_sdk-0.1.0-py3-none-any.whl
Size 83.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
d7d32776189719e84e38264ce06e3a8a9d744b0ef314eea2845de4676adc5f60
BLAKE2b-256 checksum
How to use checksums
455d7ae82b0d4ab70aa32c791bfab97077e908608e21703949a8f6e173258d6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for bricklayer-sdk 0.1.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.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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