A CLI tool for publishing dbt docs to Azure Blob Storage
Project description
dbt-docs-publisher
A CLI tool for publishing dbt documentation to Azure Blob Storage.
Features
- Automatically runs
dbt docs generate --static - Finds generated docs in temp directories
- Uploads all documentation files to Azure Blob Storage
- Organizes files by environment (dev, prod, etc.)
- Provides info on enabling static website hosting in Azure
Installation
pip install dbt-docs-publisher
For use in Databricks:
pip install dbt-docs-publisher[databricks]
Usage
ddp send-report \
--profile-target=dev \
--env=dev \
--azure-container-name=dbt-docs \
--azure-connection-string="your_azure_connection_string" \
--update-bucket-website
Arguments
--profile-target: The dbt profile target to use--env: Environment name (dev, prod, etc.) - used for organizing files in storage--azure-container-name: Azure Blob Storage container name--azure-connection-string: Azure Blob Storage connection string--update-bucket-website: (Optional) Display information about enabling static website hosting
Using in Databricks
Add to your Databricks job:
libraries:
- pypi:
package: dbt-docs-publisher[databricks]
commands:
- ddp send-report --profile-target=${bundle.target} --env=prod --azure-container-name=dbt-docs --azure-connection-string="$dl_conn_str"
Development
Setup
git clone https://github.com/yourusername/dbt-docs-publisher.git
cd dbt-docs-publisher
pip install -e ".[dev]"
Building and Publishing
# Build the package
python setup.py sdist bdist_wheel
# Publish to PyPI
twine upload dist/*
License
MIT
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 dbt_docs_publisher-0.1.0.tar.gz.
File metadata
- Download URL: dbt_docs_publisher-0.1.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
158285107ac30686d8d0a3515a39cd5a94aeb7702670e9727cf71357b060a049
|
|
| MD5 |
e9fe6d4c225343df69fb282d1f83c6ae
|
|
| BLAKE2b-256 |
becc0f87d96df47b54e00b2ffe1cdf3b75828e4d3885068c589eb536dad3ab06
|
File details
Details for the file dbt_docs_publisher-0.1.0-py3-none-any.whl.
File metadata
- Download URL: dbt_docs_publisher-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97bd90b9b4c44303f708559004fcd700a44221202f01f36507ad06cdc95a6dd7
|
|
| MD5 |
bce6cbdc74211b4ca15567b091ce98b5
|
|
| BLAKE2b-256 |
4ad47bac4ed083991085249d24bed3728dc7390e305f476c5bfbf76b9886e839
|