Utility package to translate Pydantic models to markdown.
Useful for logging models in a Gradio/Streamlit app or simply to generate reports.
It supports most common types, contributions are welcome!
from pydantic2md import pydantic2md
class Hero(BaseModel):
name: str
age: int
my_hero = Hero(name="Arthur", age=23)
print(pydantic2md(my_hero))
"""
# Hero
name (str): Arthur
age (int): 23
"""- Live Demo
- Support light tables