Skip to main content

deq-shapes

Deq · دەق: the Dot rosette logo, traditional Kurdish tattoo shapes as an open, parametric design system.

Python library and deq CLI for Deq shapes: traditional Kurdish tattoo (deq) motifs drawn on a 24 × 24 grid. Its SVG and PDF output is byte for byte the output of @0xdolan/deq-core, checked against the shared golden fixtures, and the CLI shares its interface, messages and exit codes with the Node and Rust CLIs (ADR 0011).

pip install deq-shapes   # or: uv add deq-shapes
from deq_shapes import list_shapes, render, render_flag
from deq_shapes.export import export_shapes

svg = render("roj-half-sun", {"size": 48, "color": "#d4a017"})
flag = render_flag({"variant": "full-color", "width": 900})
files = export_shapes("png", ["kurdish-sun"], {"render": {"size": 512}})
print(len(list_shapes()), files[0].name)
  • render, compose, render_flag, get_shape, list_shapes, list_categories and has_shape mirror core; options use core's names (strokeWidth, dotScale, params, …).
  • deq_shapes.export.export_shapes writes svg, svg-layered, svg-sprite, pdf, png, jpg, webp and ico.
  • Errors are DeqError with core's codes (UNKNOWN_SHAPE, INVALID_OPTIONS, …) and messages.

The CLI writes the same formats; the others (AI, EPS, PSD, AVIF, favicons, components, Figma and more) are in the Node CLI: npx @0xdolan/deq-cli.

Commands

Command What it does
deq list List the shapes (--category, --json).
deq info <shape> Names, layers and parameters of a shape (--json).
deq render <shape...> Render shapes to files, or to stdout with --out -.
deq export <shape...> Export in several formats and sizes (--all for every shape).
deq flag Draw the flag of Kurdistan.
deq leet [text] Write text as Deq Leet, or read it back with --decode.
deq generate Draw a seeded band, grid, rosette or border pattern.
deq validate <file> Check a shape spec file and render every parameter variant.
deq completion <shell> Print a bash, zsh, fish or PowerShell completion script.
deq render roj-half-sun --size 48 --color "#d4a017" --out sun.svg
deq render kurdish-sun --param rays=12 --format png --size 512
deq export --all --format svg,pdf --sizes 24,48 --out icons/
deq flag --format png --width 1200
deq leet "Hello Kurdistan" --level advanced --seed 7 --out hello.svg
deq leet --decode hello.svg
deq generate --kind rosette --petals 12 --format png --size 48

Run deq <command> --help for every option. Exit codes: 0 success, 1 invalid shape, option or spec, 2 bad command line, 3 file error (existing files need --force), 4 format only in the Node CLI.

License: GPL-3.0-or-later.

Metadata

Release files for deq-shapes 1.0.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 deq-shapes 1.0.0
File Size Uploaded Provenance Actions
deq_shapes-1.0.0.tar.gz 95.8 kB With provenance Details for deq_shapes-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for deq-shapes 1.0.0
File Interpreter ABI Platform Actions
deq_shapes-1.0.0-py3-none-any.whl Python 3 none any Details for deq_shapes-1.0.0-py3-none-any.whl

Total release size: 193.2 kB

Release files / deq_shapes-1.0.0.tar.gz

Download URL deq_shapes-1.0.0.tar.gz
Size 95.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e6039f3949b66e54fcf4b5933b55dc92e856d8be3a5651e12a9d6653b6335254
BLAKE2b-256 checksum
How to use checksums
62547f40a4aed02ea0303b89978980ae5c52d45a1c95ee73e2717c8450ae2863
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 Nov 29, 2026.

Transparency log

Release files / deq_shapes-1.0.0-py3-none-any.whl

Download URL deq_shapes-1.0.0-py3-none-any.whl
Size 97.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
37f3c7d15a99cf37b461c88858a6571e165cedb438f2b1424a84f38ba7d93685
BLAKE2b-256 checksum
How to use checksums
1df0ee0cea3f7f7d94be081974532211d846d66f9311ae85b5274f90187ad498
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 Nov 29, 2026.

Transparency log

Security for deq-shapes 1.0.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.

Select from 2 files

Attestation for deq_shapes-1.0.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 Nov 29, 2026.

Transparency log

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.

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