Metadata-Version: 2.1
Name: repetita-parser
Version: 2.1.1
Summary: A parser for the REPETITA format
Project-URL: Documentation, https://github.com/leon-richardt/python-repetita-parser#readme
Project-URL: Issues, https://github.com/leon-richardt/python-repetita-parser/issues
Project-URL: Source, https://github.com/leon-richardt/python-repetita-parser
Author-email: Leon Richardt <pip@leon.dev>
License-Expression: MIT
License-File: LICENSE
Requires-Python: >=3.7
Requires-Dist: numpy
Provides-Extra: networkx
Requires-Dist: networkx; extra == 'networkx'
Description-Content-Type: text/markdown

# 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).
