Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/leon-richardt/python-repetita-parser

Python parser for the REPETITA data format
https://github.com/leon-richardt/python-repetita-parser

parser python repetita traffic-engineering

Last synced: about 1 month ago
JSON representation

Python parser for the REPETITA data format

Awesome Lists containing this project

README

        

# python-repetita-parser

A Python parser for the data format of the [REPETITA](https://github.com/svissicchio/Repetita) framework.
This module can parse topology and demand files either **separately** or **combine** them into problem instances.
The data can then be accessed via native Python objects.

## Usage
A usage example is provided in [`examples/demand-visualization`](https://github.com/leon-richardt/python-repetita-parser/tree/main/examples/demand-visualization).
To try it, run the following commands:
```bash
$ cd examples/demand-visualization
$ python -m venv env && source env/bin/activate
$ pip install -r requirements.txt
$ python demand_visualization.py data/DeutscheTelekom.{graph,0000.demands}
```
This will parse and visualize some traffic distribution information about the passed REPETITA instance.

## Installation
Via pip:
```bash
pip install repetita-parser
```

An AUR package under the name of [`python-repetita-parser`](https://aur.archlinux.org/packages/python-repetita-parser) is available as well.

## Data Format
REPETITA defines two file formats, one for topology files and another for demand files.
These formats are defined in the [REPETITA wiki](https://github.com/svissicchio/Repetita/wiki/Adding-Problem-Instances).