You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fatamorgana/README.md

60 lines
1.3 KiB
Markdown

7 years ago
# fatamorgana
**fatamorgana** is a Python package for reading and writing OASIS format layout files.
**Homepage:** https://mpxd.net/code/jan/fatamorgana
7 years ago
**Capabilities:**
* This package is a work-in-progress and is largely untested -- it works for
the tasks I usually use it for, but I can't guarantee I've even
tried the features you happen to use! Use at your own risk!
* Interfaces and datastructures are subject to change!
* That said the following work for me:
- polygons
- layer info
- cell names
- compressed blocks
- basic property I/O
## Installation
**Dependencies:**
* python 3.5 or newer
* (optional) numpy
7 years ago
Install with pip from PyPi (preferred):
7 years ago
```bash
pip install fatamorgana
```
Install directly from git repository:
```bash
pip install git+https://mpxd.net/code/jan/fatamorgana.git@release
7 years ago
```
7 years ago
## Documentation
Most functions and classes are documented inline.
7 years ago
7 years ago
To read the inline help,
```python3
import fatamorgana
help(fatamorgana.OasisLayout)
```
The documentation is currently very sparse and I expect to improve it whenever possible!
## Examples
7 years ago
7 years ago
Read an OASIS file and write it back out:
```python3
import fatamorgana
with open('test.oas', 'rb') as f:
layout = fatamorgana.OasisLayout.read(f)
with open('test_write.oas', 'wb') as f:
layout.write(f)
```