Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/leon-richardt/python-repetita-parser
- Owner: leon-richardt
- License: mit
- Created: 2023-06-13T17:06:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-24T14:20:59.000Z (11 months ago)
- Last Synced: 2024-10-03T03:28:13.367Z (3 months ago)
- Topics: parser, python, repetita, traffic-engineering
- Language: Python
- Homepage: https://pypi.org/project/repetita-parser/
- Size: 228 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).