OASIS layout format parser and writer
fatamorgana is a Python package for reading and writing OASIS format layout files.
- 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:
- layer info
- cell names
- compressed blocks
- basic property I/O
- python 3.5 or newer
- (optional) numpy
Install with pip from PyPi (preferred):
pip3 install fatamorgana
Install directly from git repository:
pip3 install git+https://mpxd.net/code/jan/fatamorgana.git@release
Most functions and classes are documented inline.
To read the inline help,
import fatamorgana help(fatamorgana.OasisLayout)
The documentation is currently very sparse and I expect to improve it whenever possible!
Read an OASIS file and write it back out:
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)
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
fatamorgana-0.12.tar.gz (74.3 kB view hashes)
fatamorgana-0.12-py3-none-any.whl (101.2 kB view hashes)
Hashes for fatamorgana-0.12-py3-none-any.whl