Skip to content

degreed-data-engineering/tap-xtm

 
 

Repository files navigation

tap-xtm

This tap xtm was created by Degreed to be used for extracting data via Meltano into defined targets.

Testing locally

To test locally, pipx poetry

pipx install poetry

Install poetry for the package

poetry install

To confirm everything is setup properly, run the following:

poetry run tap-xtm --help

To run the tap locally outside of Meltano and view the response in a text file, run the following:

poetry run tap-xtm > output.txt 

A full list of supported settings and capabilities is available by running: tap-xtm --about

Config Guide

To test locally, create a config.json with required config values in your tap_xtm folder (i.e. tap_xtm/config.json)

{
  "api_token": "$API_TOKEN",
}

note: It is critical that you delete the config.json before pushing to github. You do not want to expose an api key or token

Add to Meltano

The provided meltano.yml provides the correct setup for the tap to be installed in the data-houston repo.

At this point you should move all your updated tap files into its own tap-xtm github repo. You also want to make sure you update in the setup.py the url of the repo for you tap.

Update the following in meltano within the data-houston repo with the new tap-xtm credentials/configuration.

plugins:
  extractors:
  - name: tap-xtm
    namespace: tap_xtm
    pip_url: git+https://github.com/degreed-data-engineering/tap-xtm
    capabilities:
    - state
    - catalog
    - discover
    config:
      api_token: $API_TOKEN
      api_url: https://www.xtm-cloud.com/project-manager-api-rest/

To test in data-houston, run the following:

  1. make meltano - spins up meltano
  2. meltano install extractor tap-xtm - installs the tap
  3. meltano invoke tap-xtm --discover > catalog.json - tests the catalog/discovery
  4. meltano invoke tap-xtm > output.txt - runs tap with .txt output in meltano/degreed/

That should be it! Feel free to contribute to the tap to help add functionality for any future sources

Singer SDK Dev Guide

See the dev guide for more instructions on how to use the Singer SDK to develop your own taps and targets.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.2%
  • Shell 2.8%