tap-hubspot
is a Singer tap for hubspot.
Build with the Singer SDK.
What does this mean? The only way fixes or new features will be added is by people submitting PRs.
-
Install from your git repo:
pip install -e git+ssh://[email protected]:tucows/tap-hubspot.git#egg=tap-hubspot
-
Configuration parameters:
Stored in a json file and provided with the mandatory --config option
{
"api_url": "https://api.hubapi.com",
"hapikey": "********-****-****-****-**********"
}
A full list of supported settings and capabilities for this tap is available by running:
tap-hubspot --about
After installation:
Streams output to standard output when you run
tap-hubspot --config sample_tap_hubspot_config.json
Generate schemas for objects:
Update the stream:endpoint dictionary in schema.py then
python schema.py --config sample_tap_hubspot_config.json
You can easily run tap-hubspot
by itself or in a pipeline using Meltano.
tap-hubspot --version
tap-hubspot --help
tap-hubspot --config sample_tap_hubspot_config.json --discover > ./catalog.json
-
Developer TODO:
As a first step, scan the entire project for the text "TODO:
" and complete any recommended steps, deleting the "TODO" references once completed.
pipx install poetry
poetry install
Create tests within the tap_hubspot/tests
subfolder and
then run:
poetry run pytest
You can also test the tap-hubspot
CLI interface directly using poetry run
:
poetry run tap-hubspot --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-hubspot
meltano install
Now you can test and orchestrate using Meltano:
# Test invocation:
meltano invoke tap-hubspot --version
# OR run a test `elt` pipeline:
meltano etl tap-hubspot target-jsonl
See the dev guide for more instructions on how to use the Singer SDK to develop your own taps and targets.