https://github.com/singer-io/target-stitch
A Singer.io Target for the Stitch Import API
https://github.com/singer-io/target-stitch
singer target
Last synced: about 1 year ago
JSON representation
A Singer.io Target for the Stitch Import API
- Host: GitHub
- URL: https://github.com/singer-io/target-stitch
- Owner: singer-io
- License: agpl-3.0
- Created: 2016-10-25T19:55:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-01-16T09:20:39.000Z (over 1 year ago)
- Last Synced: 2025-04-05T02:06:02.253Z (about 1 year ago)
- Topics: singer, target
- Language: Python
- Homepage:
- Size: 331 KB
- Stars: 26
- Watchers: 13
- Forks: 31
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# target-stitch
Reads [Singer](https://singer.io) formatted data from stdin and persists it to the Stitch Import API.
## Install
Requires Python 3.5.6
```bash
› pip install target-stitch
```
## Use
target-stitch takes two types of input:
1. A config file containing your Stitch client id and access token
2. A stream of Singer-formatted data on stdin
Create config file to contain your Stitch client id and token:
```json
{
"client_id" : 1234,
"token" : "asdkjqbawsdciobasdpkjnqweobdclakjsdbcakbdsac",
"small_batch_url": "https://api.stitchdata.com/v2/import/batch",
"big_batch_url": "https://api.stitchdata.com/v2/import/batch",
"batch_size_preferences": {}
}
```
```bash
› tap-some-api | target-stitch --config config.json
```
where `tap-some-api` is [Singer Tap](https://singer.io).
---
Copyright © 2017 Stitch