Skip to main content

dbgear-doc

Documentation generator plugin for DBGear.

Overview

dbgear-doc generates Markdown documentation from DBGear database schema definitions. It provides:

  • Automatic documentation generation from schema.yaml files
  • Table structure documentation with columns, types, and descriptions
  • Index and foreign key relationship documentation
  • Schema-level overview pages

Installation

pip install dbgear-doc

Or with Poetry:

poetry add dbgear-doc

Usage

Once installed, the doc subcommand becomes available in the dbgear CLI:

# Generate documentation (outputs to ./docs by default)
dbgear --project path/to/project doc

# Specify output directory
dbgear --project path/to/project doc -o ./documentation

Programmatic Usage

from dbgear_doc import DocumentGenerator, generate_docs
from dbgear.models.schema import SchemaManager
from pathlib import Path

# Simple usage
generate_docs("schema.yaml", "./docs")

# Advanced usage with SchemaManager
schema_manager = SchemaManager.load("schema.yaml")
generator = DocumentGenerator(schema_manager)
generated_files = generator.generate(Path("./docs"))

Output Structure

docs/
├── index.md              # Main index with schema list
└── {schema_name}/
    ├── README.md         # Schema overview with table list
    └── {table_name}.md   # Individual table documentation

Generated Documentation

Each table documentation includes:

  • Description: Table notes/comments from schema
  • Columns: Column name, type, nullable, default, and description
  • Primary Key: Primary key columns
  • Indexes: Index definitions with columns and uniqueness
  • Foreign Keys: Foreign key constraints with references

License

MIT License

Metadata

Release files for dbgear-doc 0.8.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 dbgear-doc 0.8.0
File Size Uploaded Provenance Actions
dbgear_doc-0.8.0.tar.gz 10.8 kB Without provenance Details for dbgear_doc-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dbgear-doc 0.8.0
File Interpreter ABI Platform Actions
dbgear_doc-0.8.0-py3-none-any.whl Python 3 none any Details for dbgear_doc-0.8.0-py3-none-any.whl

Total release size: 24.0 kB

Release files / dbgear_doc-0.8.0.tar.gz

Download URL dbgear_doc-0.8.0.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5bb3ecc022851d5c0256d5f730a781f7747ae84a781741a119018cc9806241a9
BLAKE2b-256 checksum
How to use checksums
20a0c18985877e5b96e87a225224e4dcd54968a60801744c58f8d404c0cb5bd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.12.14 Linux/6.6.87.2-microsoft-standard-WSL2

Release files / dbgear_doc-0.8.0-py3-none-any.whl

Download URL dbgear_doc-0.8.0-py3-none-any.whl
Size 13.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0254d0c8df93678190706409269258fb72c8b41ef8afe146aafa5565594cd00b
BLAKE2b-256 checksum
How to use checksums
23c073fe982327b76f8d40c6735c256b34e1e8b3d8c1d5ab6c3b7424448ca8a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.12.14 Linux/6.6.87.2-microsoft-standard-WSL2

Security for dbgear-doc 0.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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