mirror of
https://github.com/Kludex/awesome-fastapi-projects.git
synced 2025-02-17 13:58:08 +00:00
12 lines
348 B
Python
12 lines
348 B
Python
|
import json
|
||
|
from pytablewriter import MarkdownTableWriter
|
||
|
|
||
|
with open('results.json') as json_file:
|
||
|
data = json.load(json_file)
|
||
|
writer = MarkdownTableWriter()
|
||
|
writer.headers = ["Project", "Dependencies"]
|
||
|
writer.value_matrix = [
|
||
|
(project, dependencies) for project, dependencies in data.items()
|
||
|
]
|
||
|
writer.write_table()
|