Skip to main content

Autodoc Pydantic

PyPI - Version Python PyPI - Downloads

GitHub Actions Workflow Status Codecov Read the Docs (stable)

GitHub License linting - ruff types - Mypy All Contributors

You love pydantic ❤ and you want to document your models and configuration settings with sphinx?

Perfect, let's go. But wait, sphinx' autodoc does not integrate too well with pydantic models 😕.

Don't worry - just pip install autodoc_pydantic ☺.

🌟 Features

  • 💬 provides default values, alias and constraints for model fields
  • 🔗 adds hyperlinks between validators and corresponding fields
  • 📃 includes collapsable model json schema
  • 🏄 natively integrates with autodoc and autosummary extensions
  • 📎 defines explicit pydantic prefixes for models, settings, fields, validators and model config
  • 📋 shows summary section for model configuration, fields and validators
  • 👀 hides overloaded and redundant model class signature
  • 🔱 visualizes entity-relationship-diagrams for class hierarchies
  • 🔨 allows complete configurability on global and per-model level
  • 🍀 supports pydantic >= 1.5.0 and sphinx >= 4.0.0

📄 Documentation

Section Description
📑 Landing Page Guides and detailed information.
🛠️ Installation Setup and installation procedures.
🔧 Configuration System or application settings.
💡 Usage How to use the application or tool.
🌐 Examples Showcase and usage examples.
👨‍💻 Developer Guide In-depth guide for developers.

🙏 Acknowledgements

Thanks to great open source projects sphinx, pydantic and poetry (and so many more) ❤ in addition to the following contributors:

Franz Wöllert
Franz Wöllert

🚧 📖 ⚠️ 🖋
Yves Renier
Yves Renier

📖 ⚠️ 🖋
TheBeardedBerserkr
TheBeardedBerserkr

🤔
Jan Vlčinský
Jan Vlčinský

🛡️
antvig
antvig

🐛 📓
Hugo O Rivera
Hugo O Rivera

🤔
yura bondarenko
yura bondarenko

🐛 📓
Trevor Howard
Trevor Howard

🐛 📓
thomas-pedot
thomas-pedot

🐛 📓
Mat Utter
Mat Utter

🐛 📓
David C Hall
David C Hall

🤔 📓
Josh A. Mitchell
Josh A. Mitchell

🤔 ⚠️
Roderick Go
Roderick Go

⚠️
Lily Wang
Lily Wang

📖 🖋
j-carson
j-carson

🐛 💻 ⚠️
Jakob Lykke Andersen
Jakob Lykke Andersen

💻
Juan Luis Cano Rodríguez
Juan Luis Cano Rodríguez

🖋
Mikalai Chaly
Mikalai Chaly

🐛 ⚠️
Stig Korsnes
Stig Korsnes

🐛 🤔
Ilia Kurenkov
Ilia Kurenkov

🐛
Grzegorz Bokota
Grzegorz Bokota

🐛
jgunstone
jgunstone

🐛
iwyrkore
iwyrkore

💻
spacemanspiff2007
spacemanspiff2007

🐛 🤔
Luke Hsiao
Luke Hsiao

🐛
Daniel Walker
Daniel Walker

🐛
Evgeniy Lupashin
Evgeniy Lupashin

🐛
Jan-Hendrik Ewers
Jan-Hendrik Ewers

🐛
Jonny Saunders
Jonny Saunders

🐛
Charles Machalow
Charles Machalow

💬
Thomas Karaouzene
Thomas Karaouzene

🐛
caseyzak24
caseyzak24

📖
Priscila Oliveira
Priscila Oliveira

👀 📓
Arthur Woimbée
Arthur Woimbée

👀 📓 💻 ⚠️
Chris Markiewicz
Chris Markiewicz

🐛
David B. Nagle
David B. Nagle

🐛
JerryJia
JerryJia

💻
Mike D
Mike D

💻 🐛 ⚠️
Dario Quintero (Flexcompute)
Dario Quintero (Flexcompute)

👀
Rafael Guedes
Rafael Guedes

💻
Andrew Linzie
Andrew Linzie

💻
Altay Sansal
Altay Sansal

🤔
Tony Narlock
Tony Narlock

💻 📖
Xuan (Sean) Hu
Xuan (Sean) Hu

🐛
Christian Riedel
Christian Riedel

🐛
morcef
morcef

🐛
alejandro-yousef
alejandro-yousef

🤔
exs-dwoodward
exs-dwoodward

💻
Leah Wasser
Leah Wasser

🐛
Allan Galarza
Allan Galarza

🐛
Carson-Shaar
Carson-Shaar

🐛
Kyle Finley
Kyle Finley

🐛
brunocruz
brunocruz

🐛
Anne Rademacher
Anne Rademacher

💵
Éloi Rivard
Éloi Rivard

🐛

This project follows the all-contributors specification. Contributions of any kind welcome!

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autodoc_pydantic-2.2.0-py3-none-any.whl (34.0 kB view details)

Uploaded Python 3

File details

Details for the file autodoc_pydantic-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: autodoc_pydantic-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 34.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.14 Linux/6.5.0-1018-azure

File hashes

Hashes for autodoc_pydantic-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c6a36fbf6ed2700ea9c6d21ea76ad541b621fbdf16b5a80ee04673548af4d95
MD5 a5dd42db762f47fb6c988a454b47ea2d
BLAKE2b-256 7bdf87120e2195f08d760bc5cf8a31cfa2381a6887517aa89453b23f1ae3354f

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.2.0 This release

1 file

2.1.0

2 files

2.0.1

2 files

2.0.0

2 files

1.9.1

2 files

1.9.0

2 files

1.8.0

2 files

1.7.2

2 files

1.7.1

2 files

1.7.0

2 files

1.6.2

2 files

1.6.1

2 files

1.6.0

2 files

1.5.1

2 files

1.5.0

2 files

1.4.0

2 files

1.3.1

2 files

1.3.0

2 files

1.2.0

2 files

1.1.3

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.0

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page