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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for pydantic2md-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23b162c167b8b7b464054c37cc1a7cf0f8ca92865a83f949d0c0f42dc03682ac |
|
MD5 | 98da99d718191c282333e5920f1045de |
|
BLAKE2b-256 | 4d71c87e8538261aa417c77aacb6a29e1e564da91e5c1b984745bde9e0fd8b19 |