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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydantic2md-0.1.0.tar.gz.
File metadata
- Download URL: pydantic2md-0.1.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.9.13 Linux/6.2.0-39-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1e0b484ad28fba4dd388601b79e1a4670aa70317e520ee403a4df6c476b0605
|
|
| MD5 |
ac570acf4466c4564f50e5c65856e246
|
|
| BLAKE2b-256 |
ed40b5d01ac68cfffafa82a8c9908ccd698a06d1235ba0f2adbfe45290e862d7
|
File details
Details for the file pydantic2md-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pydantic2md-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.9.13 Linux/6.2.0-39-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23b162c167b8b7b464054c37cc1a7cf0f8ca92865a83f949d0c0f42dc03682ac
|
|
| MD5 |
98da99d718191c282333e5920f1045de
|
|
| BLAKE2b-256 |
4d71c87e8538261aa417c77aacb6a29e1e564da91e5c1b984745bde9e0fd8b19
|