pastas / pastastore

:spaghetti: :convenience_store: Tools for managing timeseries and Pastas models
https://pastastore.readthedocs.io
MIT License
15 stars 4 forks source link

Transition YAML interface to TOML? #75

Closed martinvonk closed 1 year ago

martinvonk commented 1 year ago

Since PR #60 add yaml interface by @dbrakenhoff Pastastore supports building Pastas models from YAML files. I really like this addition (even though I don't use it that often). However since Python v3.11 tomllib is supported in the standard library. The language is similar to YAML as that it also emphasizes human readability. So maybe it would be nice to transition to TOML since it drops an external dependency. There are probably upsides and downsides of YAML vs TOML but I haven't had time to look into this.

martinvonk commented 1 year ago

Nice discussion on TOML vs YAML vs JSON. Note that TOML is now also In standard library since Python 3.11

https://peps.python.org/pep-0518/#other-file-formats

martinvonk commented 1 year ago

Found out that tomllib does not support writing .toml files so that makes this request redundant.