tap-peloton
is a Singer tap for Peloton data.
Built with the Meltano Tap SDK for Singer Taps.
This tap will sync workouts and metrics for those workouts. This uses the Pylotoncycle library.
pipx install tap-peloton
sync
catalog
state
discover
Setting | Required | Default | Description |
---|---|---|---|
username | True | None | Your Peloton Username. |
password | True | None | Your Peloton Password. |
recent_workouts_number | False | 5 | The number of workouts to fetch. |
A full list of supported settings and capabilities is available by running:
tap-peloton --about
You must have a Peloton account to use this tap.
You can easily run tap-peloton
by itself or in a pipeline using Meltano.
tap-peloton --version
tap-peloton --help
tap-peloton --config CONFIG --discover > ./catalog.json
pipx install poetry
poetry install
Create tests within the tap_peloton/tests
subfolder and
then run:
poetry run pytest
You can also test the tap-peloton
CLI interface directly using poetry run
:
poetry run tap-peloton --help
Testing with Meltano
Note: This tap will work in any Singer environment and does not require Meltano. Examples here are for convenience and to streamline end-to-end orchestration scenarios.
Your project comes with a custom meltano.yml
project file already created. Open the meltano.yml
and follow any "TODO" items listed in
the file.
Next, install Meltano (if you haven't already) and any needed plugins:
# Install meltano
pipx install meltano
# Initialize meltano within this directory
cd tap-peloton
meltano install
Now you can test and orchestrate using Meltano:
# Test invocation:
meltano invoke tap-peloton --version
# OR run a test `elt` pipeline:
meltano elt tap-peloton target-jsonl
See the dev guide for more instructions on how to use the SDK to develop your own taps and targets.