mangiucugna / json_repair

A python module to repair invalid JSON, commonly used to parse the output of LLMs
https://pypi.org/project/json-repair/
MIT License
826 stars 48 forks source link

[Feature Request]: CLI? #68

Closed vergenzt closed 1 month ago

vergenzt commented 1 month ago

Describe the solution you'd like

I'd love to be able to call this from the command line!

Possible vision:

Context

I just have a single file on disk that I'd like to fix. I'd prefer to be able to fix it without having to string together Python import statement(s) and expressions to do that.

vergenzt commented 1 month ago

If #69 were also completed, pipx install json-repair could then make this CLI command available globally in my shell.