A Python parser for the data format of the 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.
A usage example is provided in examples/demand-visualization
.
To try it, run the following commands:
$ 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.
Via pip:
pip install repetita-parser
An AUR package under the name of python-repetita-parser
is available as well.
REPETITA defines two file formats, one for topology files and another for demand files. These formats are defined in the REPETITA wiki.