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.5 or newer
  • (optional) numpy

Install with pip from PyPi (preferred):

pip install fatamorgana

Install directly from git repository:

pip 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.5.tar.gz (41.3 kB view details)

Uploaded Source

Built Distribution

fatamorgana-0.5-py3-none-any.whl (42.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fatamorgana-0.5.tar.gz
  • Upload date:
  • Size: 41.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.4+

File hashes

Hashes for fatamorgana-0.5.tar.gz
Algorithm Hash digest
SHA256 4137931c38f5c8c32876becf82539c1df7bf68dc88ef0cedc662b50d8a439617
MD5 4504a3fbee39760cbfb5479224a8f5b1
BLAKE2b-256 f7d9f8ff513433c0da886050dc9fb02e2544163b32cbe17dd6f9f6000c86e8a6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fatamorgana-0.5-py3-none-any.whl
  • Upload date:
  • Size: 42.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.4+

File hashes

Hashes for fatamorgana-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 092f3e73b45b81eabb3b64ee1bc0218e63d93d9488914436ddaa04d70f6bd102
MD5 495d7a5248447d018f9876f9f16636c8
BLAKE2b-256 d63e99c7a7b75272ee727233a5e530dfd9e9ebb8daebed89986b512ce059c7eb

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