Slalom-Consulting / tap-miro

Singer tap for the Miro REST API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tap-miro

tap-miro is a Singer tap for Miro.

Built with the Meltano Tap SDK for Singer Taps and the Miro API Reference

Configuration

Accepted Config Options

Miro tap class.

Built with the Meltano Singer SDK.

Capabilities

  • catalog
  • state
  • discover
  • about
  • stream-maps
  • schema-flattening

Settings

Setting Required Default Description
access_token True None Access token.
organization_id True None The ID of an Organization.
limit False 100 The response limit for paginated API streams. (Range: 0-100)
user_agent False None The User agent to present to the API.
stream_config False None A list of dictionaries for specifing additional configurations for a specified stream

A full list of supported settings and capabilities for this tap is available by running:

tap-miro --about

Settings for Specific Streams

Settings can be added on a per-stream basis and can be set using the stream_config setting. The stream_config setting takes a list of dictionaries, requiring the stream name as a value in the stream key. If the same stream name is added multiple times, only the last will be used.

Setting Required Default Description
stream True None Name of the stream to configure
parameters False None URL query string to send to the stream endpoint

Example:

{
    "stream_config": [
        {
            "stream": "STREAM_NAME",
            "parameters": "URL_QUERY_STRING"
        }
    ]
}

Configure using environment variables

This Singer tap will automatically import any environment variables within the working directory's .env if the --config=ENV is provided, such that config values will be considered if a matching environment variable is set either in the terminal context or in the .env file.

Source Authentication and Authorization

Usage

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

Executing the Tap Directly

tap-miro --version
tap-miro --help
tap-miro --config CONFIG --discover > ./catalog.json

Developer Resources

Follow these instructions to contribute to this project.

Initialize your Development Environment

pipx install poetry
poetry install

Create and Run Tests

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

poetry run pytest

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

poetry run tap-miro --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.

Next, install Meltano (if you haven't already) and any needed plugins:

# Install meltano
pipx install meltano
# Initialize meltano within this directory
cd tap-miro
meltano install

Now you can test and orchestrate using Meltano:

# Test invocation:
meltano invoke tap-miro --version
# OR run a test `elt` pipeline:
meltano elt tap-miro 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.

About

Singer tap for the Miro REST API

License:Apache License 2.0


Languages

Language:Python 100.0%