Skip to main content

Pydantic to Markdown converter.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydantic2md-0.1.0.tar.gz (6.2 kB view hashes)

Uploaded Source

Built Distribution

pydantic2md-0.1.0-py3-none-any.whl (6.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page