Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fal-ai/fal_dbt_examples
Examples showing real-life use cases for fal + dbt
https://github.com/fal-ai/fal_dbt_examples
dbt python
Last synced: about 11 hours ago
JSON representation
Examples showing real-life use cases for fal + dbt
- Host: GitHub
- URL: https://github.com/fal-ai/fal_dbt_examples
- Owner: fal-ai
- Created: 2021-10-22T06:44:19.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-27T15:48:25.000Z (over 2 years ago)
- Last Synced: 2024-12-15T22:43:41.535Z (8 days ago)
- Topics: dbt, python
- Language: Jupyter Notebook
- Homepage:
- Size: 12.2 MB
- Stars: 22
- Watchers: 6
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Fal example dbt project
This is an example dbt project that uses [fal](https://github.com/fal-ai/fal)
To get started, install the dependency requirements:
```bash
pip install -r requirements.txt
```Copy `profiles.yml` to `.dbt` directory:
```bash
mkdir $HOME/.dbt
cp profiles.yml $HOME/.dbt/
```Setup up the necessary environment variables:
```bash
export KEYFILE_DIR=$HOME
export GCLOUD_PROJECT='your_gcloud_project_id'
export BQ_DATASET='your_bigquery_dataset_id'
export SLACK_BOT_TOKEN='your_slack_bot_token'
export SLACK_BOT_CHANNEL='your_slack_bot_channel'
export DD_API_KEY="your_datadog_api_key"
export DD_APP_KEY="your_datadog_app_key"
```You can now try to run dbt and fal:
```bash
dbt seed
dbt run
fal run
```See example details:
- [schema.yml](models/schema.yml) for model configurations
- [script examples](fal_scripts/)
- [profiles.yml](profiles.yml) for example profile
- [requirements.txt](requirements.txt)
- [fal_workflow.yml](.github/workflows/fal_workflow.yml) for example Github Action workflow