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.4.tar.gz
(41.1 kB
view details)
Built Distribution
fatamorgana-0.4-py3-none-any.whl
(31.8 kB
view details)
File details
Details for the file fatamorgana-0.4.tar.gz
.
File metadata
- Download URL: fatamorgana-0.4.tar.gz
- Upload date:
- Size: 41.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4f50d61c4b20a0cb4b4d3aedf4c3c8af1e04f903f312852a87bf06d36fb7de1 |
|
MD5 | bed29bace1a89e693b21b41a864c7a76 |
|
BLAKE2b-256 | 3860de1a5393163125e1109d854b8c5556de5a0aaf020fcec1c57f48172bb604 |
File details
Details for the file fatamorgana-0.4-py3-none-any.whl
.
File metadata
- Download URL: fatamorgana-0.4-py3-none-any.whl
- Upload date:
- Size: 31.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fe472d7ab020583266b63920edd4d9fe66ccd14093c18ca926198b4da5aa714 |
|
MD5 | b8fc577b823c99b0efa0e2b76f43e562 |
|
BLAKE2b-256 | 17a042b6556e40d7442cd345cdb63f08762d05924483c8ab2895d61d6fda3847 |