Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pydantic2md

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!

Usage

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
"""

Roadmap

  • Live Demo
  • Support light tables

About

Convert Pydantic Objects to Markdown

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages