{"repo":"hvalev/py-markdown-table","free":true,"listed":false,"github":"https://github.com/hvalev/py-markdown-table","clone":"git clone https://github.com/hvalev/py-markdown-table.git","description":"Tiny python library with zero dependencies which generates formatted multiline tables in markdown","language":"Python","stars":51,"topics":["python3","markdown","table"],"license":"MIT","category":"productivity","readme_excerpt":"py-markdown-table Tiny python library with zero dependencies which generates formatted multiline tables in markdown . Basic Use Install via pip as follows: Pass a list of dict s where the dict s must have uniform keys which serve as column headers and the values are expanded to be rows. Simple example with no special formatting: A more comprehensive example showcasing some of the formatting options: You can also use pandas dataframes by formatting them as follows: Advanced Use To add parameters to how the markdown table is formatted, you can use the set params() function on a markdown table object, i.e. markdown table(data).set params(...).get markdown() , which allows you to pass the following keyword arguments: table Utils The namespace py markdown table.utils provides the functions count emojis() and find longest contiguous strings() . count emojis() detects emojis and their position in a given string, and find longest contiguous strings() finds the longest continuous strings present in the rows and/or columns of your input data. find longest contiguous strings() can be useful to figure out the minimal width of each column given a particular data. Further Examples Row separatation see example see example see example see example title time date seats ------------ ----------- --------- ----- Vrij Zwemmen 21:30-23:00 Wed 09.12 24/24 Vrij Zwemmen 12:00-13:00 Thu 10.12 18/18 Vrij zwemmen 7:30-8:30 Fri 11.12 18/18 Vrij Zwemmen 13:15-14:15 Sat 12.12 18/18 Padding, padding weight ","default_branch":null,"files":null,"tree":[],"storefront":"/r/hvalev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hvalev/py-markdown-table/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}