-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ngr: Add capability to invoke Meltano projects
- Loading branch information
Showing
9 changed files
with
150 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
__pycache__ | ||
.idea | ||
.meltano | ||
.venv* | ||
*.egg-info | ||
.coverage* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*.csv | ||
*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Example Meltano project for `pueblo.ngr`. | ||
--- | ||
version: 1 | ||
send_anonymous_usage_stats: false | ||
environments: | ||
- name: dev | ||
default_environment: dev | ||
project_id: ngr-example | ||
plugins: | ||
|
||
extractors: | ||
|
||
- name: tap-smoke-test | ||
namespace: tap_smoke_test | ||
pip_url: git+https://github.com/meltano/tap-smoke-test.git | ||
executable: tap-smoke-test | ||
config: | ||
streams: | ||
- stream_name: animals | ||
input_filename: https://gitlab.com/meltano/tap-smoke-test/-/raw/main/demo-data/animals-data.jsonl | ||
- stream_name: page_views | ||
input_filename: https://gitlab.com/meltano/tap-smoke-test/-/raw/main/demo-data/pageviews-data.jsonl | ||
stream_maps: | ||
animals: | ||
__key_properties__: [ "id" ] | ||
page_views: | ||
__key_properties__: [ "vistor_id" ] | ||
|
||
loaders: | ||
|
||
- name: target-csv | ||
variant: hotgluexyz | ||
config: | ||
# To write CSV files to the project root, set an empty string (""). | ||
destination_path: "" | ||
|
||
jobs: | ||
- name: test | ||
tasks: | ||
- tap-smoke-test target-csv |
62 changes: 62 additions & 0 deletions
62
tests/ngr/meltano/plugins/loaders/target-csv--hotgluexyz.lock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"plugin_type": "loaders", | ||
"name": "target-csv", | ||
"namespace": "target_csv", | ||
"variant": "hotgluexyz", | ||
"label": "Comma Separated Values (CSV)", | ||
"docs": "https://hub.meltano.com/loaders/target-csv--hotgluexyz", | ||
"repo": "https://github.com/hotgluexyz/target-csv", | ||
"pip_url": "git+https://github.com/hotgluexyz/target-csv.git", | ||
"description": "CSV loader", | ||
"logo_url": "https://hub.meltano.com/assets/logos/loaders/csv.png", | ||
"settings": [ | ||
{ | ||
"name": "destination_path", | ||
"value": "output", | ||
"label": "Destination Path", | ||
"description": "Sets the destination path the CSV files are written to, relative to\nthe project root.\n\nThe directory needs to exist already, it will not be created\nautomatically.\n\nTo write CSV files to the project root, set an empty string (`\"\"`).\n" | ||
}, | ||
{ | ||
"name": "delimiter", | ||
"kind": "options", | ||
"value": ",", | ||
"label": "Delimiter", | ||
"description": "A one-character string used to separate fields. It defaults to a comma (,).", | ||
"options": [ | ||
{ | ||
"label": "Comma (,)", | ||
"value": "," | ||
}, | ||
{ | ||
"label": "Tab ( )", | ||
"value": "\\t" | ||
}, | ||
{ | ||
"label": "Semi-colon (;)", | ||
"value": ";" | ||
}, | ||
{ | ||
"label": "Pipe (|)", | ||
"value": "|" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "quotechar", | ||
"kind": "options", | ||
"value": "'", | ||
"label": "Quote Character", | ||
"description": "A one-character string used to quote fields containing special characters, such as the delimiter or quotechar, or which contain new-line characters. It defaults to single quote (').", | ||
"options": [ | ||
{ | ||
"label": "Double Quote (\")", | ||
"value": "\"" | ||
}, | ||
{ | ||
"label": "Single Quote (')", | ||
"value": "'" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
meltano |