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):
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
Release history Release notifications | RSS feed
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.6.tar.gz
(42.5 kB
view details)
Built Distribution
fatamorgana-0.6-py3-none-any.whl
(43.1 kB
view details)
File details
Details for the file fatamorgana-0.6.tar.gz
.
File metadata
- Download URL: fatamorgana-0.6.tar.gz
- Upload date:
- Size: 42.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.23.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce95d308970edd1b91c7399aeba61990f7441a5ef82a4cb4476328f7b44f9d42 |
|
MD5 | 260966dae6ff265680120e7c027d9a0c |
|
BLAKE2b-256 | 0fbf7e3b80f68b34e49b93242b9d05e85d05f072724b070d113c7c476de98433 |
File details
Details for the file fatamorgana-0.6-py3-none-any.whl
.
File metadata
- Download URL: fatamorgana-0.6-py3-none-any.whl
- Upload date:
- Size: 43.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.23.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0ea93be6fc5255aa5a5f71a32818bcd1121ed6bdae2fc89392a0a7270c20ac6 |
|
MD5 | d9597d57c6d6d5f98e7b09cf1b87317f |
|
BLAKE2b-256 | 0a864286cf292f5324432c3443ad6fe69df4b2be073d3d053abe7413fd1f3aa5 |