Examples

Use UZUSKE from a script.

The package is a single Python file, so it can be imported directly as a local module.

Python

import json
from uzuske import predict_routes

with open("examples/network.json", "r", encoding="utf-8") as f:
    network = json.load(f)

for prediction in predict_routes(network):
    print(prediction.route, prediction.probability)

CLI JSON

python uzuske.py run examples/network.json --json