All Projects → mansenfranzen → autodoc_pydantic

mansenfranzen / autodoc_pydantic

Licence: MIT license
Seamlessly integrate pydantic models in your Sphinx documentation.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to autodoc pydantic

matlabdomain
A Sphinx extension for documenting Matlab code
Stars: ✭ 34 (-43.33%)
Mutual labels:  sphinx, sphinx-extension
sphinx-wavedrom
A sphinx extension that allows including wavedrom diagrams by using its text-based representation
Stars: ✭ 26 (-56.67%)
Mutual labels:  sphinx, sphinx-extension
sphinx rtd dark mode
Adds a toggleable dark mode to the Read the Docs theme for Sphinx.
Stars: ✭ 29 (-51.67%)
Mutual labels:  sphinx, sphinx-extension
emojicodes
An extension to use emoji codes in your Sphinx documentation! 😍
Stars: ✭ 39 (-35%)
Mutual labels:  sphinx, sphinx-extension
sphinxcontrib-programoutput
Sphinx extension for capturing program output
Stars: ✭ 29 (-51.67%)
Mutual labels:  sphinx, sphinx-extension
openapi
OpenAPI (fka Swagger) spec renderer for Sphinx.
Stars: ✭ 78 (+30%)
Mutual labels:  sphinx, sphinx-extension
sphinxcontrib-hdl-diagrams
Sphinx Extension which generates various types of diagrams from Verilog code.
Stars: ✭ 37 (-38.33%)
Mutual labels:  sphinx, sphinx-extension
sphinx-codeautolink
Automatic links from code examples to reference documentation
Stars: ✭ 41 (-31.67%)
Mutual labels:  sphinx, sphinx-extension
sphinxcontrib-django
This is a sphinx extension which improves the documentation of Django apps.
Stars: ✭ 37 (-38.33%)
Mutual labels:  sphinx, sphinx-extension
sphinx-revealjs
Presentation builder for Pythonista
Stars: ✭ 56 (-6.67%)
Mutual labels:  sphinx, sphinx-extension
sphinx-hoverxref
Sphinx extension to show tooltips with content embedded when hover a reference.
Stars: ✭ 77 (+28.33%)
Mutual labels:  sphinx, sphinx-extension
sphinx-toolbox
Box of handy tools for Sphinx 🧰 📔
Stars: ✭ 55 (-8.33%)
Mutual labels:  sphinx, sphinx-extension
roll.urown.net
How to roll your own private self-hosted internet services.
Stars: ✭ 63 (+5%)
Mutual labels:  sphinx
morelia server
Server for MoreliaTalk network
Stars: ✭ 25 (-58.33%)
Mutual labels:  pydantic
pydantic-factories
Simple and powerful mock data generation using pydantic or dataclasses
Stars: ✭ 380 (+533.33%)
Mutual labels:  pydantic
symbiflow-docs
FOSS Flow For FPGA
Stars: ✭ 163 (+171.67%)
Mutual labels:  sphinx
pandoc-doc-ja
Pandocユーザーズガイド日本語版(Pandoc 2.7.2+準拠)のリポジトリ by Sphinx
Stars: ✭ 19 (-68.33%)
Mutual labels:  sphinx
graygram-web
www.graygram.com
Stars: ✭ 16 (-73.33%)
Mutual labels:  sphinx
pygments-pytest
A pygments lexer for pytest output
Stars: ✭ 23 (-61.67%)
Mutual labels:  sphinx
starlite
Light, Flexible and Extensible ASGI API framework
Stars: ✭ 1,525 (+2441.67%)
Mutual labels:  pydantic

Autodoc Pydantic

PyPI version Python

Master Coverage

Downloads 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
  • 📚 sorts fields, validators and model config within models by type
  • 🍀 Supports pydantic >= 1.5.0 and sphinx >= 3.4.0

Comparison between autodoc sphinx and autodoc pydantic

Comparison

To see those features in action, jump over to the example documentation to compare the appearance of standard sphinx autodoc with autodoc_pydantic.

Documentation

For more details, please visit the official documentation:

Acknowledgements

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


Franz Wöllert

🚧 📖 ⚠️ 🖋

TheBeardedBerserkr

🤔

Jan Vlčinský

🛡️

antvig

🐛 📓

Hugo O Rivera

🤔

yura bondarenko

🐛 📓

Trevor Howard

🐛 📓

thomas-pedot

🐛 📓

Mat Utter

🐛 📓

David C Hall

🤔 📓

Josh A. Mitchell

🤔 ⚠️

Roderick Go

⚠️

Lily Wang

📖 🖋

j-carson

🐛 💻 ⚠️

Jakob Lykke Andersen

💻

Juan Luis Cano Rodríguez

🖋

Mikalai Chaly

🐛 ⚠️

Stig Korsnes

🐛 🤔

Ilia Kurenkov

🐛

Grzegorz Bokota

🐛

jgunstone

🐛

iwyrkore

💻

spacemanspiff2007

🐛 🤔

Luke Hsiao

🐛

Daniel Walker

🐛

Evgeniy Lupashin

🐛

Jan-Hendrik Ewers

🐛

Jonny Saunders

🐛

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].