Skip to main content

OASIS layout format parser and writer

Project description

fatamorgana

fatamorgana is a Python package for reading and writing OASIS format layout files.

Homepage: https://mpxd.net/code/jan/fatamorgana

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.11
  • (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

Documentation

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!

Examples

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fatamorgana-0.13.tar.gz (74.0 kB view details)

Uploaded Source

Built Distribution

fatamorgana-0.13-py3-none-any.whl (100.1 kB view details)

Uploaded Python 3

File details

Details for the file fatamorgana-0.13.tar.gz.

File metadata

  • Download URL: fatamorgana-0.13.tar.gz
  • Upload date:
  • Size: 74.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for fatamorgana-0.13.tar.gz
Algorithm Hash digest
SHA256 79b19430642309dd28c7525750705c09140315324db140cf4315b2e497159f69
MD5 25ffe115419e91d915964b9cf1ff4e20
BLAKE2b-256 ba0a4dc9233d84bb55c80b22d14ae6a8a8abb7fc17f5a75ad331d0b8239f5275

See more details on using hashes here.

File details

Details for the file fatamorgana-0.13-py3-none-any.whl.

File metadata

  • Download URL: fatamorgana-0.13-py3-none-any.whl
  • Upload date:
  • Size: 100.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for fatamorgana-0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 e2d24f234e1b1a3cbc342e50c8a1255a55b4a32e8a0f40f0b16097c46e1401a8
MD5 91cc13adea0e15ba2ede872687c31dde
BLAKE2b-256 0d7420306599936f9e1c37898f7bac7db24097c78a448992f6dc07633f2fdd3c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page