{"id":13736269,"url":"https://github.com/gdsfactory/kfactory","last_synced_at":"2026-03-09T03:08:21.095Z","repository":{"id":64423123,"uuid":"575172245","full_name":"gdsfactory/kfactory","owner":"gdsfactory","description":"gdsfactory with a klayout backend","archived":false,"fork":false,"pushed_at":"2026-02-24T01:52:31.000Z","size":54824,"stargazers_count":59,"open_issues_count":7,"forks_count":31,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-02-24T13:27:30.206Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://gdsfactory.github.io/kfactory/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gdsfactory.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-12-06T23:09:13.000Z","updated_at":"2026-02-23T17:39:10.000Z","dependencies_parsed_at":"2023-02-16T12:15:47.102Z","dependency_job_id":"1eed8f01-f051-480a-a805-439f6bd667a7","html_url":"https://github.com/gdsfactory/kfactory","commit_stats":null,"previous_names":[],"tags_count":185,"template":false,"template_full_name":null,"purl":"pkg:github/gdsfactory/kfactory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdsfactory%2Fkfactory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdsfactory%2Fkfactory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdsfactory%2Fkfactory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdsfactory%2Fkfactory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gdsfactory","download_url":"https://codeload.github.com/gdsfactory/kfactory/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdsfactory%2Fkfactory/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30281166,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T03:01:18.518Z","updated_at":"2026-03-09T03:08:21.083Z","avatar_url":"https://github.com/gdsfactory.png","language":"Python","funding_links":[],"categories":["layout"],"sub_categories":[],"readme":"# KFactory 2.4.5\n\n[![codecov](https://codecov.io/gh/gdsfactory/kfactory/graph/badge.svg?token=dArcfnQE4w)](https://codecov.io/gh/gdsfactory/kfactory)\n\nKfactory is the backend for [gdsfactory](https://github.com/gdsfactory/gdsfactory). It is built upon [KLayout](https://klayout.de).\nIt offers basic operations like gdsfactory, so it can be used on its own as a layout tool as well.\n\nIt is recommended to pin the version of KFactory in `requirements.txt` or `pyproject.toml` with `kfactory==2.4.5` for example.\n\nFeatures similar to gdsfactory:\n\n- [x] Cells \u0026 decorator for caching \u0026 storing cells\n- [x] Simple routing (point to point and simpl bundle routes for electrical routes)\n- [x] Basic cells like euler/circular bends, taper, waveguide\n- [x] Path extrusion (no interface with CrossSections)\n- [x] Jupyter integration\n- [x] PDK/package configuration\n- [x] Plugin system (simulations etc.) - Check [kplugins](https://github.com/gdsfactory/kplugins)\n- [x] Generic PDK example - Check [kgeneric](https://github.com/gdsfactory/kgeneric)\n- [x] CrossSection\n- [x] Netlist/Schematics and LVS\n\nNotable missing Features:\n\n- [ ] More advanced routing\n\n\nNew/Improved Features:\n\n- Fully hierarchical bi-directional conversion to YAML\n- Automatic snapping to grid thanks to KLayout\n- More features for vector geometries due to concept of Point/Edge/Vector/Polygon from Klayout\n- Easy booleans thanks to KLayout Regions\n- Enclosures: use the concept of enclosures, similar to cross sections, to allow automatic\n  calculation of boolean layers for structures based on [minkowski sum](https://en.wikipedia.org/wiki/Minkowski_addition),\n  which are built into KLayout\n\n\n## Getting Started\n\n### Installation\n\nkfactory is available as [`kfactory`](https://pypi.org/project/kfactory/) on PyPI\n\nInstall kfactory with `uv`, or `pip`:\n\n```bash\n# Add kfactory to your project.\nuv add kfactory\n\n# With pip.\npip install kfactory\n```\n\nAt the moment kfactory works only on python 3.11 and above\n\n### Development Installation\n\nA development environment can be installed with\n\n```bash\njust dev\n```\n\nFor committing `pre-commit` should be installed with `pre-commit install` (this is done with `just dev`).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgdsfactory%2Fkfactory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgdsfactory%2Fkfactory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgdsfactory%2Fkfactory/lists"}