DBT workflows factory for Google Cloud Platform
Project description
dbt-workflows-factory
Creates dbt based GCP workflows.
Installation
Use the package manager pip to install dbt-workflows-factory for [dp (data-pipelines-cli)]:
pip install dbt-workflows-factory
How to run
To call from cli, you can
python -m dbt_workflows_factory.cli convert \
--image-uri my-image-uri \
--region europe-west6 \
--gcs-key-volume-remote-path google-cloud-storage/path/ \
--gcs-key-volume-mount-path /etc/gcs-key/ \
--gcs-key-volume-container-mount-path /etc/gcs-key/:/etc/gcs-key/:ro \
--container-gcp-key-path /etc/gcs-key/path.json \
--container-gcp-project-id some-project-id \
--pretty \
tests/unit/dbt_workflows_factory/test_data/manifest.json > workflow_source.json
Project Organization
- .devcontainer - This directory contains required files for creating a Codespace.
- .github
- workflows - Contains GitHub Actions used for building, testing and publishing.
- publish.yml - Publish wheels to https://pypi.org/
- pull-request.yml - Build and Test pull requests before commiting to main.
- template-sync.yml - Update GitHub Repo with enhancments to base template
- workflows - Contains GitHub Actions used for building, testing and publishing.
- docs - collect documents (default format .md)
- src - place new source code here
- python_package - sample package (this can be deleted when creating a new repository)
- tests - contains Python based test cases to validation src code
- .pre-commit-config.yaml - Contains various pre-check fixes for Python
- pyproject.toml - Python Project Declaration
Publish to PyPi from GitHub
In order to publish to PyPi, a repostirory secret must be created, "PYPI_PASSWORD". In order to publish to the Test PyPi, a second secret must be added, "TEST_PYPI_PASSWORD".
Project details
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
Close
Hashes for dbt-workflows-factory-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c61a0794fa31ecc53e3a914c291cadbcfc5ef60b20456fae3a2ae39710f3a2c5 |
|
MD5 | 6e2534b32e660eb818e0948a8c625c12 |
|
BLAKE2b-256 | 8df0e0392d0add458e91eaad647ae340af780dda69ae7ee066696a509d98f642 |
Close
Hashes for dbt_workflows_factory-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82b6306932a0c2a05cf8beb4fec63a0903609594ec8ddfe9af7ed3ee99563ae0 |
|
MD5 | 0604531690f36d1edad0e39f179010ca |
|
BLAKE2b-256 | 6f22f32e0d8aa3ed3b1e8669db3bed4716b5342502a015db99d9ce656f3871b0 |