hugovk / norwegianblue

CLI to show end-of-life dates for a number of products.
https://endoflife.date
MIT License
76 stars 4 forks source link

:pray: Feature Request > Please add csv to your output options :bar_chart: #110

Closed adriens closed 1 year ago

adriens commented 1 year ago

:grey_question: Context

Currently,

❯ eol --version
eol 0.9.0 (Python 3.10.6)

The available output options are

-f {html,json,markdown,rst,tsv}, --format {html,json,markdown,rst,tsv}

But most ETL (and other tools) support csv as input format... and often make the load of csv the default mode.

:pray: Feature request

Please add csv output option, respecting rfc4180

For example, the following command :

norwegianblue spring-framework -f csv

Would return :

"cycle","release","latest","latest release","support","eol"
"5.3","2020-10-27","5.3.23","2022-09-15","True","False"
"5.2","2019-09-30","5.2.22","2022-05-11","True","2021-12-31"
"5.1","2018-09-21","5.1.20","2020-12-09","False","2020-12-09"
"5.0","2017-09-28","5.0.20","2020-12-09","False","2020-12-09"
"4.3","2016-06-10","4.3.30","2020-12-09","False","2020-12-31"
"3.2","2012-12-13","3.2.18","2016-12-21","False","2016-12-31"

Thank you in advance and thanks a lot for your tool :clap:

hugovk commented 1 year ago

Thanks for the request. CSV can be added easily enough, although there's already TSV, does that work for you?

adriens commented 1 year ago

csv has better support or many platforms. And for example, if well formated, it can also be previewed on Github which is very useful. :smile_cat: Also, for datascience csv is more comonly used. :thought_balloon:

hugovk commented 1 year ago

Sure, please see PR https://github.com/hugovk/norwegianblue/pull/111.

adriens commented 1 year ago

Jus got it

image

adriens commented 1 year ago

Thanks a lot for your kind support.

I'll write a dedicated blog post to end-of-life.date and the tooling around it.... and of course the csv part :smiley: