kislyuk / yq

Command-line YAML, XML, TOML processor - jq wrapper for YAML/XML/TOML documents
https://kislyuk.github.io/yq/
Apache License 2.0
2.53k stars 81 forks source link

Use python built in TOML support? #154

Closed daurnimator closed 1 year ago

daurnimator commented 1 year ago

Python 3.11 now includes TOML support in the standard library. https://peps.python.org/pep-0680/

Could that be used instead of the current TOML dependency?

kislyuk commented 1 year ago

Thanks for the heads up. I would love to do that. Currently I'm focused on other things so I welcome PRs to implement that. Until Python 3.10 reaches EOL, we will have to operate two code paths, with a version dependent dependency and conditional import.

mgorny commented 1 year ago

This is already part of #153.

kislyuk commented 1 year ago

@mgorny thanks, but that PR is not ready to be merged yet. I responded with feedback in the PR.

kislyuk commented 1 year ago

As noted in #153, the python built in TOML support is not ready to be used by this project, because it's not a functional parser/serializer.