Skip to main content

imagespec-designer

CI PyPI

A portable visual editor and Python facade for imagespec. It provides a browser editor, YAML import and export, templates, and rendering helpers. The package requires Python 3.13+ and imagespec>=1.0.1; version 0.1.0 was tested with imagespec 1.0.1. Check the installed package version with imagespec_designer.__version__.

Install and run

python -m pip install imagespec-designer
imagespec-designer-demo

Open http://127.0.0.1:8765. Install imagespec-designer[datamatrix] to render Data Matrix elements.

Python API

from imagespec_designer import CanvasProfile, render_image

profile = CanvasProfile(width=296, height=128, palette="bwr")
payload = [
    {"type": "rectangle", "x_start": 8, "y_start": 8, "x_end": 287, "y_end": 120, "fill": "black"}
]
render_image(payload, profile).save("preview.png")

CanvasProfile describes dimensions, rotation, and palette. RenderContext accepts host callbacks for fonts, images, and history. The public API also provides document validation, frame compilation, YAML conversion, and pixel-difference helpers.

Embed the editor

Serve the package's web assets and mount an editor instance:

import { mount } from "/assets/embed.js";

await mount(document.querySelector("#designer"), {
  title: "Shelf label",
  apiBase: "/api",
  profile: { width: 296, height: 128, palette: "bwr" },
});

The host supplies rendering, profile, transport, and any dynamic values. Unresolved templates can be imported and exported, but the host must evaluate them before rendering. This package covers portable imagespec frame documents; Home Assistant sensor/weather components and integration-specific service workflows remain host responsibilities. See the embedding API and development guide.

Code and adapted BLE ESL geometry are MIT licensed. The modified Material Design Icons glyph map is Apache-2.0 licensed. See NOTICE and licenses/Apache-2.0.txt. See release instructions for PyPI Trusted Publishing setup.

Metadata

Release files for imagespec-designer 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 imagespec-designer 0.1.0
File Size Uploaded
imagespec_designer-0.1.0.tar.gz 86.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for imagespec-designer 0.1.0
File Interpreter ABI Platform
imagespec_designer-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 170.6 kB

Release files / imagespec_designer-0.1.0.tar.gz

Download URL imagespec_designer-0.1.0.tar.gz
Size 86.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3c4cfe333122a855b70a361b506e52c93010e681ac558746491db3c4237cd716
BLAKE2b-256 checksum
How to use checksums
b0af86f8b320bdd660a0470f204894057f2a1d24976b01c3e3a35799ba900e69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 9, 2026.

Transparency log

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

Download URL imagespec_designer-0.1.0-py3-none-any.whl
Size 84.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6fdf871abc0ddda5b2399d5e9112149158a76b736fc25210e4c22b89debd16ad
BLAKE2b-256 checksum
How to use checksums
789032b2b6b869347551dfad620d18644f5052732294b591dae8951fe276484d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 9, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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