Metadata-Version: 2.1
Name: pygdsdesign
Version: 0.17.3
Summary: pygdsdesign provides some function to more efficiently create gds files.
Author: Étienne Dumur, Sacha Wos
Author-email: etienne.dumur@gmail.com
Maintainer: Étienne Dumur
Maintainer-email: etienne.dumur@gmail.com
License: BSL
Classifier: Programming Language :: Python :: 3
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Topic :: Scientific/Engineering
License-File: LICENSE.txt
License-File: AUTHORS
Requires-Dist: numpy
Requires-Dist: pytest
Requires-Dist: scipy
Requires-Dist: tqdm
Requires-Dist: typing_extensions

# PyGDSdesign

PyGDSdesign is a Python library designed to generate GDS files with Python scripts. The library's is built upon code from GDSpy, a popular open-source toolkit for layout design and manipulation. Moreover, PyGDSdesign use the power of Clipper, to execute precise boolean operations.

## ⚙️ Installation

### 🐍 From pypi

The simplest way is to install PyGDSdesign from pypi. Ensure that you have the required dependencies by running
```bash
conda install numpy scipy tqdm typing_extensions
```
Then just run `pip install pygdsdesign`.

### ⚒️ From source

Since PyGDSdesign incorporates C++ code that requires compilation (Clipper), ensure that your development environment supports compilation.
For instance, you can use Microsoft Visual C++ for Windows.

To install pygdsdesign, simply run:
`pip install .`

(You can also add the `-e` flag if you want to install the library in editable mode.)

After installing the library, it is recommended to verify the installation to ensure that all the code functions correctly. To do this, use pytest and run the tests provided in the examples folder.

## 🖼️ Gallery

Example of what you can do with pygdsdesign
### Spiral resonator

![spiral resonator](examples/spiral_resonator.png "spiral resonator")

### CPW resonators

![cpw resonators](examples/cpw_resonators.png "cpw resonators")


## 🛠️ How to start

You can find many scripts in the `Examples/` folder showing different user cases.

## 📜 Licence

The library is shared under the Boost Software License.


## 🙏🏼 Acknowledgment

This library is authored by Étienne Dumur and incorporates significant code from GDSPY, a library written by Lucas H. Gabrielli. For boolean operations, pygdsdesign utilizes Clipper, a library developed by Angus Johnson. Furthermore, the library has been ported from Python 3.8 to 3.11 and beyond by Sacha Wos.
