sailfishos-chum / main

Documentation and issue tracker for the SailfishOS:Chum community repository
https://build.merproject.org/project/show/sailfishos:chum
MIT License
26 stars 4 forks source link

new repo request: yq (python XML JSON tool) #62

Closed nephros closed 2 years ago

nephros commented 2 years ago

yq is a companion tool to jq which is already in chum.

It takes XML input and passes it on to jq to produce JSON.

This allows nifty scripting along the lines of

 data=$(curl http://foo.com/request_xml_reply | yq)
 curl --data "$data"

See: https://pypi.org/project/yq/ and a PoC packaging at https://build.sailfishos.org/package/show/home:nephros:devel:python/yq

NOTE: If accepted, please advise whether the resulting package should be called plan yq, or python3-yq as it is a python package.

piggz commented 2 years ago

Im not sure what it should be called, but Suse calls it python-yq

piggz commented 2 years ago

actually pythonXXX-yq

nephros commented 2 years ago

actually pythonXXX-yq

yes, and most packages I can see are called python3-foo on SFOS as well.

Put this request on the back burner for now please as I found out there are some dependencies required still, there might be more repos needed for those.

nephros commented 2 years ago

Put this request on the back burner for now please as I found out there are some dependencies required still, there might be more repos needed for those.

Two dependencies identified, those would need a repo as well:

rinigus commented 2 years ago

I will make the repos

rinigus commented 2 years ago

Done! Closing here