Python reader for OASIS format
jan dbe033fdb7 Bump version number (0.4) 4 months ago
fatamorgana Bump version number (0.4) 4 months ago
.gitignore Ignore build directories in git 4 months ago initial commit 1 year ago add license and readme to manifest 1 year ago move code to new location 10 months ago Use version number from module in 4 months ago


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:
    • polygons
    • layer info
    • cell names
    • compressed blocks
    • basic property I/O



  • python 3.5 or newer
  • (optional) numpy

Install with pip from PyPi (preferred):

pip install fatamorgana

Install directly from git repository:

pip install git+


Most functions and classes are documented inline.

To read the inline help,

import fatamorgana

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 =
    with open('test_write.oas', 'wb') as f: