Skip to main content

mkdocs-sqlalchemy-plugin

tests documentation codecov PyPI - Python Version PyPI PyPI - Downloads

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 TABLE statements.
  • Schema Support: Group tables by schema.

Installation

Install the plugin using pip:

pip install mkdocs-sqlalchemy-plugin

Quick Start

  1. Configure mkdocs.yml:

    Add the plugin to your mkdocs.yml configuration file. You must specify the base_class which is the import path to your SQLAlchemy DeclarativeBase.

    plugins:
      - sqlalchemy:
          base_class: "my_app.models.Base"
          app_path: "src"
    
  2. Add to Markdown:

    In your markdown files, use the sqlalchemy tag where you want the documentation to appear.

    {% sqlalchemy %}
    
  3. Build Docs:

    Run mkdocs serve to 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.

Release files for mkdocs-sqlalchemy-plugin 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mkdocs-sqlalchemy-plugin 0.1.0
File Size Uploaded
mkdocs_sqlalchemy_plugin-0.1.0.tar.gz 11.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mkdocs-sqlalchemy-plugin 0.1.0
File Interpreter ABI Platform
mkdocs_sqlalchemy_plugin-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 26.3 kB

Release files / mkdocs_sqlalchemy_plugin-0.1.0.tar.gz

Download URL mkdocs_sqlalchemy_plugin-0.1.0.tar.gz
Size 11.9 kB
Tags Source
SHA-256 checksum
How to use checksums
77fbe0ca8d3bfe9cc5ed201f2d2d3cfe9ce991d241f278c3b02408da7e59844a
BLAKE2b-256 checksum
How to use checksums
a7db8e28516d948712cb0910b6b9fb4be033f929cb60c6b8012f9600e8477e95
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / mkdocs_sqlalchemy_plugin-0.1.0-py3-none-any.whl

Download URL mkdocs_sqlalchemy_plugin-0.1.0-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
818471afccfda46282a1ea46a149b173ccbfe33685b591b9a41cd929fdf5a3bc
BLAKE2b-256 checksum
How to use checksums
9abcb0d69d72fc4da3f7ab3ed4d0dfd5e66a4a5b723d4f0261f52b7ed143f847
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release 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