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.5.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| playdough-0.5.11-cp312-cp312-win_amd64.whl | CPython 3.12 | CPython 3.12 | Windows x86-64 | Details |
| playdough-0.5.11-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 | Details |
| playdough-0.5.11-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.17+ ARM64, Linux glibc 2.28+ ARM64 | Details |
| playdough-0.5.11-cp312-cp312-macosx_11_0_arm64.whl | CPython 3.12 | CPython 3.12 | macOS 11.0+ ARM64 | Details |
Total release size: 27.7 MB
Release files / playdough-0.5.11-cp312-cp312-win_amd64.whl
| Download URL | playdough-0.5.11-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a0bd97e7572e57eeb68d0890979e1e504b68f3758e97a4037e79d43b527d7c34
|
|
BLAKE2b-256 checksum How to use checksums |
1ba9a72b375ff270f8fa1363f54c333568ad64c454781337b2b0b0e4144f1115
|
| 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 Sep 29, 2026.
Transparency logRelease files / playdough-0.5.11-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | playdough-0.5.11-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 12.4 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
58710a6c7d6e349f3780657c528b9a741bc8fe5d35dcbca8e6faad6409d82ac4
|
|
BLAKE2b-256 checksum How to use checksums |
131af0cf48033b0ea27ca5c20948872cc1b814cd16c43ddf2f94a35aa10728c8
|
| 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 Sep 29, 2026.
Transparency logRelease files / playdough-0.5.11-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
| Download URL | playdough-0.5.11-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 11.9 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
704055a878c70a03e4c31094a3bc6f0155c56df8405e1d1b7b10fc3b5e641e8e
|
|
BLAKE2b-256 checksum How to use checksums |
dd93452f8e1af585ff73a43b32f0a111d28570f7c63c37b67efbefd32d867704
|
| 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 Sep 29, 2026.
Transparency logRelease files / playdough-0.5.11-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | playdough-0.5.11-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
cd56f5c932bd3a1afd40533f019ef93406dc07e1f9e5b19ea0b2ac89a5f3a8bb
|
|
BLAKE2b-256 checksum How to use checksums |
b579eb4ead1202cce14173407ade556fcf26f6cdcc311a0d6d9e8871590aa657
|
| 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 Sep 29, 2026.
Transparency log