An open API service indexing awesome lists of open source software.

https://github.com/cemsbv/gef-file-to-map

Utility library for parsing of *.gef files, used primarily in pygef
https://github.com/cemsbv/gef-file-to-map

gef pygef python rust

Last synced: 4 months ago
JSON representation

Utility library for parsing of *.gef files, used primarily in pygef

Awesome Lists containing this project

README

          

# gef-file-to-map

[![PyPI version](https://badge.fury.io/py/gef-file-to-map.svg)](https://pypi.org/project/gef-file-to-map)

Utility library for parsing of .gef files, written for [pygef](https://github.com/cemsbv/pygef).

### Run locally

```sh
# Install maturin inside a Python environment
python3 -m venv .env
source .env/bin/activate
pip install maturin

# Create a Python package from the Rust code
maturin develop

# Open a GEF file locally
python

>>> from gef_file_to_map import gef_to_map
>>> gef_to_map(open('./tests/test.gef').read())
```