kfactory-2.4.2
توضیحات
KLayout API implementation of gdsfactory
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | kfactory-2.4.2 |
| نام | kfactory |
| نسخه کتابخانه | 2.4.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | gdsfactory community <contact@gdsfactory.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/kfactory/ |
| مجوز | - |
# KFactory 2.4.2
[](https://codecov.io/gh/gdsfactory/kfactory)
Kfactory is the backend for [gdsfactory](https://github.com/gdsfactory/gdsfactory). It is built upon [KLayout](https://klayout.de).
It offers basic operations like gdsfactory, so it can be used on its own as as layout tool as well.
It is recommended to pin the version of KFactory in `requirements.txt` or `pyproject.toml` with `kfactory==2.4.2` 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)
- [x] CrossSection
- [x] Netlist/Schematics and LVS
Notable missing Features:
- [ ] More advanced routing
New/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
## Getting Started
### Installation
kfactory is available as [`kfactory`](https://pypi.org/project/kfactory/) on PyPI
Install kfactory with `uv`, or `pip`:
```bash
# Add kfactory to your project.
uv add kfactory
# With pip.
pip install kfactory
```
At the moment kfactory works only on python 3.11 and above
### Development Installation
A development environment can be installed with
```bash
just dev
```
For committing `pre-commit` should be installed with `pre-commit install` (this is done with `just dev`).
نیازمندی
| مقدار | نام |
|---|---|
| - | aenum<4,>=3.1.16 |
| - | cachetools>=6.2.4 |
| - | klayout<0.31.0,>=0.30.5 |
| - | loguru<0.8,>=0.7.3 |
| - | pydantic<2.13,>=2.12.5 |
| - | pydantic-extra-types>=2.11 |
| - | pydantic-settings<3,>=2.12 |
| - | pygit2<2,>=1.19.1 |
| - | rapidfuzz<4,>=3.14.3 |
| - | rectangle-packer<3,>=2.0.5 |
| - | requests<3,>=2.32.5 |
| - | ruamel.yaml<0.20,>=0.19.1 |
| - | ruamel.yaml.string<0.2,>=0.1.1 |
| - | semver<4,>=3.0.4 |
| - | scipy<2,>=1.17.0 |
| - | toolz<2,>=1.1.0 |
| - | typer<0.22,>=0.21.1 |
| xtr | kfactory[ci]; |
| xtr | mypy>=1.15.0; |
| xtr | pre-commit>=4.2.0; |
| xtr | pylsp-mypy>=0.7.0; |
| xtr | python-lsp-server[all]>=1.13.1; |
| xtr | ruff>=0.9.2; |
| xtr | rust-just>=1.42.4; |
| xtr | tbump>=6.11.0; |
| xtr | ty>=0.0.1a17; |
| xtr | types-cachetools>=5.5.0.20240820; |
| xtr | types-docutils>=0.21.0.20241128; |
| xtr | types-pygments>=2.19.0.20250305; |
| xtr | types-requests>=2.32.0.20250328; |
| xtr | types-setuptools>=76.0.0.20250328; |
| xtr | scipy-stubs; |
| xtr | kfactory[ipy]; |
| xtr | erdantic>=1.1.1; |
| xtr | markdown-exec>=1.10.3; |
| xtr | mkdocs>=1.6.1; |
| xtr | mkdocs-gen-files>=0.5.0; |
| xtr | mkdocs-jupyter>=0.25.1; |
| xtr | mkdocs-literate-nav>=0.6.2; |
| xtr | mkdocs-material>=9.6.9; |
| xtr | mkdocs-section-index>=0.3.9; |
| xtr | mkdocs-video>=1.5.0; |
| xtr | mkdocstrings[python]>=0.29.0; |
| xtr | pymdown-extensions>=10.14.3; |
| xtr | griffe-pydantic>=1.1.4; |
| xtr | griffe-inherited-docstrings>=1.1.1; |
| xtr | griffe-warnings-deprecated>=1.1.0; |
| xtr | ruff>=0.9.2; |
| xtr | pytest>=8.3.5; |
| xtr | pytest-cov>=6.0.0; |
| xtr | pytest-randomly>=3.16.0; |
| xtr | pytest-regressions>=2.7.0; |
| xtr | pytest-xdist>=3.6.1; |
| xtr | pytest-regressions>=2.8.3; |
| xtr | pytest-datadir>=1.8.0; |
| xtr | types-cachetools>=5.5.0.20240820; |
| xtr | types-requests>=2.32.0.20250328; |
| xtr | ipyevents>=2.0.2; |
| xtr | ipython>=9.0.2; |
| xtr | ipytree>=0.2.2; |
| xtr | ipywidgets>=8.1.5; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.11 | Python |
نحوه نصب
نصب پکیج whl kfactory-2.4.2:
pip install kfactory-2.4.2.whl
نصب پکیج tar.gz kfactory-2.4.2:
pip install kfactory-2.4.2.tar.gz