Singer tap for dbt, built with the Singer SDK.
Project description
tap-dbt
tap-dbt
is a Singer tap for the dbt Cloud API.
Built with the Singer SDK.
Installation
pip install tap-dbt
Configuration
Visit the API docs for instructions on how to get your API key.
You can pass configuration using environment variables with the TAP_DBT_
prefix followed by the uppercased field name
tap-dbt --config=ENV
or a JSON file
tap-dbt --config=config.json
Inputs
Field | Description | Type | Required | Default |
---|---|---|---|---|
api_key |
API key for the dbt Cloud API | string |
yes | |
account_ids |
dbt Cloud account IDs | list(string) |
yes | |
user_agent |
User-Agent to make requests with | string |
no | tap-dbt/0.1.0 Singer Tap for the dbt Cloud API |
base_url |
Base URL for the dbt Cloud API | string |
no | https://cloud.getdbt.com/api/v2 |
JSON example
{
"api_key": "da39a3ee5e6b4b0d3255bfef95601890afd80709",
"account_ids": [51341],
"user_agent": "tap-dbt/0.1.0 Singer Tap for the dbt Cloud API",
"base_url": "https://my-dbt-cloud-api.com"
}
Environment variables example
TAP_DBT_API_KEY=da39a3ee5e6b4b0d3255bfef95601890afd80709
TAP_DBT_ACCOUNT_IDS=[51341]
TAP_DBT_USER_AGENT='tap-dbt/0.1.0 Singer Tap for the dbt Cloud API'
TAP_DBT_BASE_URL=https://my-dbt-cloud-api.com"
A full list of supported settings and capabilities for this tap is available by running:
tap-dbt --about --format json
Usage
You can easily run tap-dbt
by itself or in a pipeline using Meltano.
Executing the Tap Directly
tap-dbt --version
tap-dbt --help
tap-dbt --config .secrets/example.json --discover > ./catalog/json
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
tap-dbt-0.0.1rc2.tar.gz
(6.9 kB
view hashes)
Built Distribution
Close
Hashes for tap_dbt-0.0.1rc2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f56698676b7580490178445db9c694d402596aaaf8c88b079924c93034162780 |
|
MD5 | 17c4118af716ed6ea1b4606b894a549f |
|
BLAKE2b-256 | 7f8e9ade7785a734ad3df8b1cd1e88a83e8a041e6fd7d280deb89dd3344ca608 |