A Python library for photonic layout design
Project description
laylight
laylight is a Python toolkit for photonic layout design. It helps engineers and researchers describe photonic structures in code, generate layout data with KLayout, and build repeatable design flows around reusable devices.
laylight is a sub-product of PhotonStack, focused on making photonic design more programmable, composable, and easier to explore.
Why laylight
Photonic layout work often mixes device geometry, parameter sweeps, custom scripts, and visualization. laylight provides a Python-first way to:
- define photonic structures with reusable building blocks
- generate layout data with a programmable workflow
- preview and iterate on designs more quickly than manual editing alone
Documentation and tools
- Documentation: laylight.photonstack.io
- Playground: laylight.photonstack.io/playground
- VS Code extension: PhotonStack/laylight-vscode-extension
Installation
pip install laylight
Simple example
import laylight
from laylight.technology import Technology
from laylight.structure.wg import WGStraight
layout = laylight.Layout()
layout.dbu = 0.001
tech = Technology()
top = layout.create_cell("DEMO")
device = WGStraight(
length=200,
width=0.5,
layout=layout,
tech=tech,
)
laylight.Placer(device).into(top)
layout.write("demo.gds")
This creates a simple straight waveguide and writes the result to demo.gds.
Learn more
For guided examples, API usage, and browser-based experiments, start with the documentation site and the online playground.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file laylight-0.0.2.tar.gz.
File metadata
- Download URL: laylight-0.0.2.tar.gz
- Upload date:
- Size: 373.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f9cbf03ea649e5b5154e430d459da5e4e57c56df2241f34ab22705a898ef55f
|
|
| MD5 |
198578663045483fbeaf7a6ee656461a
|
|
| BLAKE2b-256 |
a2587485fd9c029c8a4eed697c5ed24015d08d2db1f25838bb2fbd7417a22d04
|
File details
Details for the file laylight-0.0.2-py3-none-any.whl.
File metadata
- Download URL: laylight-0.0.2-py3-none-any.whl
- Upload date:
- Size: 46.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94f77475e4d666f1c6ca3831840a1c6a3ca497790bf64d8080aa3a0bd384f0f8
|
|
| MD5 |
a5c039817a2315808bdf952071bb1afc
|
|
| BLAKE2b-256 |
a54a216dfacc553c06cfee9dbd713fc46e2d51d8c84753d7c92354a503efb148
|