Parse OpenEO process graphs from JSON to traversible Python objects.
Project description
OpenEO Process Graph Parser (Python & networkx)
Python package to parse OpenEO process graphs from raw JSON into fully traversible networkx
graph objects.
This package is an evolution of the openeo-pg-parser-python package.
Installation
This package can be installed with pip:
pip install openeo-pg-parser-networkx
Currently Python versions 3.9 and 3.10 are supported.
Development environment
openeo-pg-parser-networkx
requires poetry >1.2
, see their docs for installation instructions.
To setup the python venv and install this project into it run:
poetry install
To add a new core dependency run:
poetry add some_new_dependency
To add a new development dependency run:
poetry add some_new_dependency --group dev
To run the test suite run:
poetry run python -m pytest
Note that you can also use the virtual environment that's generated by poetry as the kernel for the ipynb notebooks.
Pre-commit hooks
This repo makes use of pre-commit hooks to enforce linting & a few sanity checks.
In a fresh development setup, install the hooks using poetry run pre-commit install
.
These will then automatically be checked against your changes before making the commit.
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
Built Distribution
Hashes for openeo_pg_parser_networkx-2022.12.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f66562da2f750c8fdefe5f115e2d28e48fc9d71a4fd900695c9523204fce98a8 |
|
MD5 | 23b0ac059ac376fac9e9dc2cab1e6f4a |
|
BLAKE2b-256 | eb5b24f7f5ad285874130de5a7a06e7b4c80a64a6f7dae0f378652bae79d2ef3 |
Hashes for openeo_pg_parser_networkx-2022.12.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd9abd7350d7396dd1aa5f0eab1a60375ec69ff37a6c411e67740839f56eb9b5 |
|
MD5 | 2c83f6575327f1cf092c03db6198efa7 |
|
BLAKE2b-256 | 78c080d7b67efa23ceb2a8af94345ae926f08b855e2e0d101f54bca561750fdc |