Skip to content

GendarmerieNationale/tap-partoo

Repository files navigation

tap-partoo

tap-partoo is a Singer tap for the Partoo REST API.

Built with the Meltano Tap SDK for Singer Taps.

Installation

You can install the Singer tap with:

pipx install git+https://github.com/GendarmerieNationale/tap-partoo.git

Configuration

Setting Required Default Description
api_key True None Partoo API Key
start_date True None Start syncing data from that date

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

Usage

You can easily run tap-partoo by itself or in a pipeline using Meltano.

Executing the Tap Directly

tap-partoo --version
tap-partoo --help
tap-partoo --config path/to/config.json --discover > ./catalog.json

Developer Resources

Initialize your Development Environment

After cloning the repo locally, inside the repo:

pipx install poetry
poetry install

Create and Run Tests

Create tests within the tap_partoo/tests subfolder and then run:

poetry run pytest

You can also test the tap-partoo CLI interface directly using poetry run:

poetry run tap-partoo --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-partoo
meltano install

Now you can test and orchestrate using Meltano:

# Test invocation:
meltano invoke tap-partoo --version
# OR run a test `elt` pipeline:
meltano elt tap-partoo target-jsonl

SDK Dev Guide

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

Contact

Gendarmerie Nationale, [email protected]

This was developed as part of the CyberImpact EIG project.

About

Singer tap for extracting data from the Partoo API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages