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
Params
Parameters specified for the converters are:
image_uri
: url address for the imageregion
: the location where tge workflow executes on GCP (example:us-central1
oreurope-west1
)full_command
: full command executed on image (example:"dbt --no-write-json run --target env_execution --project-dir /dbt --profiles-dir /root/.dbt --select "
)remote_path
: gcs mount path (example:"/mnt/disks/var"
)key_volume_mount_path
: path for mounting the volume containg key (ex./mnt/disks/var/keyfile_name.json
)key_volume_path
: path for mounting (ex.["/mnt/disks/var/:/mnt/disks/var/:rw"]
)key_path
: is a remote path for bucket containing key to be mounted
How to run
To call from cli, you can
python -m dbt_workflows_factory.cli path/to/manifest.json --image-uri xxx --region xxx --full-command xxx --remote-path xxx --key-volume-mount-path xxx --key-volume-path xxx --key-path xxx
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.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84a1d0f2310578ac1412de418dd3fd94202eb865516308667200506119bf9f20 |
|
MD5 | 3a1433ba666160f5238ac0b7cbac1291 |
|
BLAKE2b-256 | 36ad08866fe1249bc1556b9d1466c0aee6ca64dc3574c39220396f23f5182200 |
Close
Hashes for dbt_workflows_factory-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84caced8b6dbe177a9c8d518ad232846afce546e270346edfe35411d0c334df2 |
|
MD5 | abb123d48d8cd4494fe3378f47125a85 |
|
BLAKE2b-256 | 7501e6be8534e1cd3949c686e7c6631f45e8cf50d37291d94fe435433452f504 |