An MkDocs plugin to generate documentation from SQLAlchemy models.
Project description
mkdocs-sqlalchemy-plugin
MkDocs plugin to generate docs from SQLAlchemy models.
Features
- Automatic Documentation: Generates tables documenting your SQLAlchemy models.
- Customizable: Configure which fields to show, table styling, and more.
- Filtering: Include or exclude specific tables.
- SQL DDL: Optionally display the SQL
CREATE TABLEstatements. - Schema Support: Group tables by schema.
Installation
Install the plugin using pip:
pip install mkdocs-sqlalchemy-plugin
Quick Start
-
Configure
mkdocs.yml:Add the plugin to your
mkdocs.ymlconfiguration file. You must specify thebase_classwhich is the import path to your SQLAlchemyDeclarativeBase.plugins: - sqlalchemy: base_class: "my_app.models.Base" app_path: "src"
-
Add to Markdown:
In your markdown files, use the
sqlalchemytag where you want the documentation to appear.{% sqlalchemy %} -
Build Docs:
Run
mkdocs serveto see your documentation.
Configuration
The plugin offers extensive configuration options to tailor the output to your needs. See the Configuration Options page for a full reference.
Usage
The {% sqlalchemy %} tag is powerful and supports local overrides. See the Tag Usage page for details.
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
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 mkdocs_sqlalchemy_plugin-0.1.0.tar.gz.
File metadata
- Download URL: mkdocs_sqlalchemy_plugin-0.1.0.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77fbe0ca8d3bfe9cc5ed201f2d2d3cfe9ce991d241f278c3b02408da7e59844a
|
|
| MD5 |
99836c764e31bf023bc80b40264022aa
|
|
| BLAKE2b-256 |
a7db8e28516d948712cb0910b6b9fb4be033f929cb60c6b8012f9600e8477e95
|
File details
Details for the file mkdocs_sqlalchemy_plugin-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mkdocs_sqlalchemy_plugin-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
818471afccfda46282a1ea46a149b173ccbfe33685b591b9a41cd929fdf5a3bc
|
|
| MD5 |
03f08ec136dfa6a56162572f103bde9a
|
|
| BLAKE2b-256 |
9abcb0d69d72fc4da3f7ab3ed4d0dfd5e66a4a5b723d4f0261f52b7ed143f847
|