Skip to main content

playdough

GDSFactory's next-gen routing engine — robust, collision-aware Manhattan routing with optional gradient-based finetuning for photonic IC design.

Features

  • Search-based Manhattan routing — performant, collision-aware, instant results
  • Gradient-based finetuning — flexible constraint satisfaction (path length matching, collision avoidance) via automatic differentiation
  • Multi-bundle routing — grouped port bundles with independent tangent directions
  • Polyline output — get corner-point coordinates as numpy arrays, with optional smooth euler-bend curves

Installation

pip install playdough

Use playdough from a coding agent

playdough ships an Agent Skill that teaches Claude Code, Codex, Cursor, Gemini CLI or Kiro how to route with it, without the agent reading playdough's source:

playdough skills install     # this project; `playdough skills --help` for options

It writes .claude/skills/, .agents/skills/ and .kiro/skills/, so you need not know which convention your agent reads. playdough skills remove takes it back out.

Importing playdough inside a project a coding agent manages prints a one-line reminder to stderr that this command exists, with the installed version — at most three times per project, never in an ordinary directory, and never once the skill is installed. PLAYDOUGH_NO_HINT=1 silences it, as do CI and a GDSFactory+ worker.

Quick Start

import gdsfactory as gf
import playdough as pld

c = gf.Component()
waveguides = gf.components.array(gf.c.straight, columns=1, rows=3, row_pitch=3)
left = c << waveguides
right = c << waveguides
right.move((100, 50))

obs = c << gf.components.rectangle(size=(80, 10))
obs.ymin = 20

router = pld.add_route_bundle(
    c,
    start_ports=list(left.ports.filter(orientation=0)),
    end_ports=list(right.ports.filter(orientation=180)),
    obstacles=[obs],
)

# Optionally finetune for length matching
router.finetune(length_matching=5.0, lr=0.5)

Documentation

See the documentation site for tutorials and API reference.

License

Requires a valid GDSFactory account. Authenticate with gfp configure.

Metadata

Release files for playdough 0.6.6

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

Built distributions (wheels)

Table of built distributions (wheels) for playdough 0.6.6
File Actions
playdough-0.6.6-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for playdough-0.6.6-cp312-cp312-win_amd64.whl
playdough-0.6.6-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details for playdough-0.6.6-cp312-cp312-manylinux_2_28_x86_64.whl
playdough-0.6.6-cp312-cp312-manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ ARM64 Details for playdough-0.6.6-cp312-cp312-manylinux_2_28_aarch64.whl
playdough-0.6.6-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for playdough-0.6.6-cp312-cp312-macosx_11_0_arm64.whl

Total release size: 51.2 MB

Release files / playdough-0.6.6-cp312-cp312-win_amd64.whl

Download URL playdough-0.6.6-cp312-cp312-win_amd64.whl
Size 3.3 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
60f94a22213a4aab561622c2ad636185f3b86b38e1e8fdb423dcf30fef3af1cc
BLAKE2b-256 checksum
How to use checksums
a34ce30a3e37d5a8ee7cf8989fc80c7aaae49cb8a4f14595288aaa61f6e9ba7f
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 26, 2026.

Transparency log

Release files / playdough-0.6.6-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL playdough-0.6.6-cp312-cp312-manylinux_2_28_x86_64.whl
Size 22.5 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
ba639e99f48353f9ceee51285ca3fc49bd0393efbe1c82153633a1e3522625cf
BLAKE2b-256 checksum
How to use checksums
786b8c15c39da6faaf3915da92f751fb45df29e686e5292af56e27fe8a5051e2
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 26, 2026.

Transparency log

Release files / playdough-0.6.6-cp312-cp312-manylinux_2_28_aarch64.whl

Download URL playdough-0.6.6-cp312-cp312-manylinux_2_28_aarch64.whl
Size 21.4 MB
Tags CPython 3.12 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
7a0df60121a4a12891662aa4a8ed763de718c5c60b7eac8d6258b04a59af7053
BLAKE2b-256 checksum
How to use checksums
5753c43fe183ba96658012b8117d98e6c399f86097c87bb0f488d5981fb52137
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 26, 2026.

Transparency log

Release files / playdough-0.6.6-cp312-cp312-macosx_11_0_arm64.whl

Download URL playdough-0.6.6-cp312-cp312-macosx_11_0_arm64.whl
Size 4.0 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d26c94b8fcd2b99cccaf15849dfe9e25a5ce1792b136754901a89ad72dd76d1e
BLAKE2b-256 checksum
How to use checksums
b76a840de3f5be612fab8449d212c9c7b35ece97d2945b6dc3a2a44421b76592
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 26, 2026.

Transparency log

Security for playdough 0.6.6

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

All 4 files in this release have been uploaded with provenance metadata.

Select from 4 files

Attestation for playdough-0.6.6-cp312-cp312-win_amd64.whl

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 26, 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