Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gdsfactory/kfactory
gdsfactory with a klayout backend
https://github.com/gdsfactory/kfactory
Last synced: about 2 months ago
JSON representation
gdsfactory with a klayout backend
- Host: GitHub
- URL: https://github.com/gdsfactory/kfactory
- Owner: gdsfactory
- License: mit
- Created: 2022-12-06T23:09:13.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-17T01:05:10.000Z (3 months ago)
- Last Synced: 2024-10-17T06:24:47.348Z (3 months ago)
- Language: Python
- Homepage: https://gdsfactory.github.io/kfactory/
- Size: 3.31 MB
- Stars: 32
- Watchers: 4
- Forks: 12
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome_photonics - kfactory
README
# KFactory 0.21.7
Kfactory is a [gdsfactory](https://github.com/gdsfactory/gdsfactory)-like tool. It is built with [KLayout](https://klayout.de) as a backend instead of gdstk, but aims to offer the similar features.
> [!CAUTION]
> KFactory is still experimental
> Expect API changes without notice (even though we try to keep it to a minimum!). The core should be fairly stable with the exception of the all-angle router.
> It is likely to change in future releasesIt is suggest to pin the version of KFactory in `requirements.txt` or `pyproject.toml` with `kfactory==0.21.7` for example.
Features similar to gdsfactory:
- [x] Cells & decorator for caching & storing cells
- [x] Simple routing (point to point and simpl bundle routes for electrical routes)
- [x] Basic cells like euler/circular bends, taper, waveguide
- [x] Path extrusion (no interface with CrossSections)
- [x] Jupyter integration
- [x] PDK/package configuration
- [x] Plugin system (simulations etc.) - Check [kplugins](https://github.com/gdsfactory/kplugins)
- [x] Generic PDK example - Check [kgeneric](https://github.com/gdsfactory/kgeneric)Notable missing Features:
- [ ] CrossSection
- [ ] Netlist/Schematics and LVS
- [ ] More advanced routingNew/Improved Features:
- Fully hierarchical bi-directional conversion to YAML
- Automatic snapping to grid thanks to KLayout
- More features for vector geometries due to concept of Point/Edge/Vector/Polygon from Klayout
- Easy booleans thanks to KLayout Regions
- Enclosures: use the concept of enclosures, similar to cross sections, to allow automatic
calculation of boolean layers for structures based on [minkowski sum](https://en.wikipedia.org/wiki/Minkowski_addition),
which are built into KLayout## Installation
kfactory is available on [pypi](https://pypi.org/project/kfactory/)
```bash
pip install kfactory
```At the moment kfactory works only on python 3.10 and above
### Development Installation
A development environment can be installed with
```bash
python -m pip install -e .[dev]
```It is defined in `pyproject.toml`. For committing `pre-commit` should be installed with `pre-commit install`.