Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.0rc1

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.0rc1
File Size Uploaded Provenance Actions
deq_shapes-1.0.0rc1.tar.gz 95.8 kB With provenance Details for deq_shapes-1.0.0rc1.tar.gz

Built distribution (wheel)

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

Total release size: 193.2 kB

Release files / deq_shapes-1.0.0rc1.tar.gz

Download URL deq_shapes-1.0.0rc1.tar.gz
Size 95.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9c4cc8fe039fa232fbd866173e477649846c07551ef3cb60eb686fe83a46c127
BLAKE2b-256 checksum
How to use checksums
4ef022520a324aa8bd4b8f14f1cc8cfbf7ab19b29c7a3fea48b0506e4dae770c
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 23, 2026.

Transparency log

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

Download URL deq_shapes-1.0.0rc1-py3-none-any.whl
Size 97.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ad419e873c7e5acf6b55a3877824bcd8b0f5edd90d2ba06466024a9c5355313
BLAKE2b-256 checksum
How to use checksums
6d750e6852bcdb9f95a5d5365be79c6cb65f1130e8b9419b301ee57a0bd89f13
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 23, 2026.

Transparency log

Security for deq-shapes 1.0.0rc1

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.0rc1.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 23, 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