lzakharov / csv2md Goto Github PK
View Code? Open in Web Editor NEWCommand line tool for converting CSV files into Markdown tables.
License: MIT License
Command line tool for converting CSV files into Markdown tables.
License: MIT License
Even when using the -d ";" parameter, sometimes I have to change the delimiter in the source file for it to work.
word;status |
---|
Ãœber;bad |
Redefreiheit;good |
Fußball;bad |
östlich;bad |
Fähre;bad |
noUmlaut;good |
Weizen;good |
Korn;good |
I'd like to use it inside python, without calling the prompt command. Is it possible?
Would you be interested in a PR implementing a modern setup procedure based on poetry or hatch?
It would be great if there was an easy way to provide a list of columns to be used when converting to markdown
So, for example, with a table with 10 columns, doing something like
--use-only=1-3,4,5,7
would not include columns 6, 8 9 and 10 into the generated table
I'm workign with some "TSV" (tab delimited) files. I haven't figured out how to specify tab as a delimiter, since it's not really possible to type a tab into my shell. Is there some way to do it?
Hello,
I just wanted to point out that it seems that v 1.0.1 has been removed from pypi - I see that 1.1.1 was released earlier today, but there appear to be no previous versions on pypy: https://pypi.org/project/csv2md/#history
Were earlier artifacts intentionally removed? Any chance you'd be able to republish that version?
Get the following error when trying to install via pip:
$ pip3 install csv2md
Looking in indexes: https://pypi.org/simple
Collecting csv2md
Using cached https://files.pythonhosted.org/packages/cc/1b/8855dc07a5c5821040eceb7934e1a772dff24dbf396b4cff4467b4e28904/csv2md-1.0.0.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-94m5gafj/csv2md/setup.py", line 7, in <module>
with open('LICENSE') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'LICENSE'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-94m5gafj/csv2md/
tables with "ä" "ö" etc. are not generating correctly.
cat file.tsv
handwritten 200 2024-04-29 36
youtube 10000 2024-04-29 21
firefox 5000 2024-04-29 39
epub 1000 2024-04-29 49
android 10000 2024-04-29 179
cat file.tsv | csv2md -d $'\t' -c 0 -r 1 3 -H
| a | b | c | d |
| :---------: | ----: | ---------- | --: |
| handwritten | 200 | 2024-04-29 | 36 |
| youtube | 10000 | 2024-04-29 | 21 |
| firefox | 5000 | 2024-04-29 | 39 |
| epub | 1000 | 2024-04-29 | 49 |
| android | 10000 | 2024-04-29 | 179 |
-r
and -c
.-r
and -c
is used with -C
then the colmnn number for -r
and -c
should not be the affected by -C
but original column number. Currently this is not the case!csvkit supports a common cli flag across all of its tools to support inputting csv files with no header
-H, --no-header-row Specify that the input CSV file has no header row.
Will create default headers (a,b,c,...).
it would be helpful if csv2md
supported the same or a similar flag
this would allow quickly creating csv's using jq's @csv
filter and piping it into csv2md
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.