In my Django web app I want to convert an uploaded csv file into a markdown table. I searched around and found this library that does that. However it only has instructions on how to do it from the command line, like so: csvtomd input.csv > output.md
, but I want to use it inside my python file (views.py
) and I don't know if it is even possible. I understand there might be another way I can get this specific task done, but I want to know if it is possible to use the functionality of such a library, that is accessible from the commandline, inside my python file instead.
I came across this question; however, I after something specifically for using a python library inside a python file, and not general prompt commands.