Skip to main content

KLayout API implementation of gdsfactory

Project description

KFactory 0.21.11

Kfactory is a gdsfactory-like tool. It is built with KLayout 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 releases

It is suggest to pin the version of KFactory in requirements.txt or pyproject.toml with kfactory==0.21.11 for example.

Features similar to gdsfactory:

  • Cells & decorator for caching & storing cells
  • Simple routing (point to point and simpl bundle routes for electrical routes)
  • Basic cells like euler/circular bends, taper, waveguide
  • Path extrusion (no interface with CrossSections)
  • Jupyter integration
  • PDK/package configuration
  • Plugin system (simulations etc.) - Check kplugins
  • Generic PDK example - Check kgeneric

Notable missing Features:

  • CrossSection
  • Netlist/Schematics and LVS
  • 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, which are built into KLayout

Installation

kfactory is available on pypi

pip install kfactory

At the moment kfactory works only on python 3.10 and above

Development Installation

A development environment can be installed with

python -m pip install -e .[dev]

It is defined in pyproject.toml. For committing pre-commit should be installed with pre-commit install.

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

kfactory-0.21.11.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

kfactory-0.21.11-py3-none-any.whl (167.6 kB view details)

Uploaded Python 3

File details

Details for the file kfactory-0.21.11.tar.gz.

File metadata

  • Download URL: kfactory-0.21.11.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for kfactory-0.21.11.tar.gz
Algorithm Hash digest
SHA256 012a8387cbf1ffdd0c58eeabab34710ba98d83382b2a8448a3a56140513c55e9
MD5 22d1c06a4d08e0a3d4db56cc0fc752c0
BLAKE2b-256 95200ad17c739e054a22e2566f9edc69ce66cf6d8a93c931d5638f1e7aaeaa19

See more details on using hashes here.

File details

Details for the file kfactory-0.21.11-py3-none-any.whl.

File metadata

  • Download URL: kfactory-0.21.11-py3-none-any.whl
  • Upload date:
  • Size: 167.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for kfactory-0.21.11-py3-none-any.whl
Algorithm Hash digest
SHA256 ea2dc21d924a0ff802d000f9fbc9eb66853fdd9f4ca48ae99d4093d37ffac230
MD5 f0b2e83ab779c3fe5d14e38f98666e7f
BLAKE2b-256 cf55a726ca3608cc1c02a488135f7a19c1a07c0789ff853018498eee09abf8c6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page