Search code examples
pythondatabasemarkdownrestructuredtext

how can i convert a particular table records in a Database and convert them into markdown and .rst files in python


I have a DB dump, I want to convert a particular table (table name: blogentry) records in that DB to be converted into markdown and .rst files. And want to create a static site with them? Is it possible help me out!

Thanks in advance


Solution

  • It is possible.

    Convert your dump to a CSV file.

    For reStructuredText, use the csv-table directive in your .rst files.

    Use Sphinx to render the .rst files to HTML.

    If you get stuck, then ask a new question with more detail.