https://github.com/yoast/singer-tap-open-exchange-rate
https://github.com/yoast/singer-tap-open-exchange-rate
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/yoast/singer-tap-open-exchange-rate
- Owner: Yoast
- License: gpl-3.0
- Created: 2022-05-10T09:17:25.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-15T06:56:07.000Z (about 4 years ago)
- Last Synced: 2025-04-21T09:06:05.270Z (about 1 year ago)
- Language: Python
- Size: 76.2 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tap-open-exchange-rate
This is a [Singer](https://singer.io) tap that produces JSON-formatted data
following the [Singer
spec](https://github.com/singer-io/getting-started/blob/master/SPEC.md).
This tap:
- Pulls raw data from [PayPal](https://developer.paypal.com/docs/api/overview/)
- Extracts the following resources:
- [Transactions](https://developer.paypal.com/docs/api/transaction-search/v1)
- Outputs the schema for each resource
- Incrementally pulls data based on the input state
### Step 1: Make an account with Open Exchange Rate and get a key
### Step 2: Install and Run
Create a virtual Python environment for this tap. This tap has been tested with Python 3.7, 3.8 and 3.9 and might run on future versions without problems.
```
python -m venv singer-open-exchange
singer-open-exchange/bin/python -m pip install --upgrade pip
singer-open-exchange/bin/pip install git+https://github.com/Yoast/singer-tap-open-exchange-rate.git
```
This tap can be tested by piping the data to a local JSON target. For example:
Create a virtual Python environment with `singer-json`
```
python -m venv singer-json
singer-json/bin/python -m pip install --upgrade pip
singer-json/bin/pip install target-json
```
Test the tap:
```
singer-open-exchange/bin/tap-open-exchange --state state.json -c open-exchange_config.json | singer-json/bin/target-json >> state_result.json
```
Copyright © 2021 Yoast