Metadata-Version: 2.1
Name: layout2svg
Version: 0.1.3
Summary: A package to convert IC layouts (GDS2 and OASIS) to SVG.
Home-page: https://github.com/das-dias/layout2svg
License: GPLv2
Keywords: layout,svg,gds2,oasis
Author: dasdias
Author-email: das.dias6@gmail.com
Requires-Python: >=3.9,<4.0
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: PyYAML (>=6.0.1,<7.0.0)
Requires-Dist: colour (>=0.1.5,<0.2.0)
Requires-Dist: docopt (>=0.6.2,<0.7.0)
Requires-Dist: gdstk (>=0.9.42,<0.10.0)
Requires-Dist: klayout (>=0.28.10,<0.29.0)
Requires-Dist: loguru (>=0.7.0,<0.8.0)
Requires-Dist: lxml (>=4.9.3,<5.0.0)
Project-URL: Repository, https://github.com/das-dias/layout2svg
Description-Content-Type: text/markdown

<h1 align=center> layout2svg </h1>

<div align=justify>
<p> This is a simple tool to convert an integrated circuit layout saved in OASIS / GDSII file format to a .SVG image file. The tool supports direct export of the SVG file into the Inkscape desktop app. This tool was written with the goal of rendering any layout in a desktop or web application. </p>
</div>

<h2 align=center> Installation </h2>

<h3 align=center> MacOS, Linux, Windows </h3>

```bash
pip install layout2svg
```

<h2 align=center> Usage - Command Line Interface </h2>

```bash
layout2svg -i <input_file_path [.gds/.oas]> -o <output_file_path [.svg]>
```

<h2 align=center> Examples </h2>

<p>
Running the example with the mock layerstack file and layout provided in the <a href="./examples">examples</a> directory, by running the following command:
</p>

```bash
layout2svg -i examples/crossed_metal.gds -t examples/mock_layers.lys.yml -o examples/crossed_metal.svg
```

<p>
can generate the following SVG image:
</p>

<p align=center>
<img src="tests/data/crossed_metal.svg" width=400/>
</p>

