NREL / routee-compass

An energy-aware routing engine
https://nrel.github.io/routee-compass/
BSD 3-Clause "New" or "Revised" License
10 stars 5 forks source link

Pass PyObject instead of str into CompassApp.run method #203

Open robfitzgerald opened 4 months ago

robfitzgerald commented 4 months ago

Our current Python Compass run method accepts a dict but serializes it into a string before sending it to rust. In rust it is again deserialized into a serde_json value. Pyo3 has a PyObject type and deserializer we could leverage instead.