pastas / pastastore

:spaghetti: :convenience_store: Tools for managing timeseries and Pastas models

Home Page:https://pastastore.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Transition YAML interface to TOML?

martinvonk opened this issue · comments

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.

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

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