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):
```bash
pip install fatamorgana
```
Install directly from git repository:
```bash
pip install git+https://mpxd.net/code/jan/fatamorgana.git@release
```
## Documentation
Most functions and classes are documented inline.
To read the inline help,
```python3
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:
```python3
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)
```
**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):
```bash
pip install fatamorgana
```
Install directly from git repository:
```bash
pip install git+https://mpxd.net/code/jan/fatamorgana.git@release
```
## Documentation
Most functions and classes are documented inline.
To read the inline help,
```python3
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:
```python3
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.3.tar.gz
(41.1 kB
view hashes)
Built Distribution
fatamorgana-0.3-py3-none-any.whl
(31.8 kB
view hashes)
Close
Hashes for fatamorgana-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e003cf11d5a2b2245e61a5cedb5f2428f95f6d1ab1529a4f2fa08f8b22105d1 |
|
MD5 | 6d5bd21143e2118d22247f1b67bed94e |
|
BLAKE2b-256 | 2b18acf6ee21ff58dc67f2106c1821efa9207cd698881f4d516773d0d6d05315 |