8000 GitHub - Matatika/mapper-fivetran: Singer-compliant mapper for Fivetran
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Matatika/mapper-fivetran

Repository files navigation

mapper-fivetran

mapper-fivetran is a Singer mapper for Fivetran.

Built with the Meltano Mapper SDK for Singer Mappers.

Overview

mapper-fivetran maps incoming data to a Fivetran-compatible format. This involves:

  • Flattening top-level properties
  • Converting property names to snake-case
  • Adding properties pertaining to Fivetran system columns
    • _fivetran_id: MD5-hash of a record, added when no key_properties are defined for the stream
    • _fivetran_synced: ISO8601 timestamp of when the record was processed by the mapper

Configuration

Accepted Config Options

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

mapper-fivetran --about

Configure using environment variables

This Singer mapper 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 mapper-fivetran by itself or in a pipeline using Meltano.

Executing the Mapper Directly

mapper-fivetran --version
mapper-fivetran --help

Developer Resources

Follow these instructions to contribute to this project.

Initialize your Development Environment

Prerequisites:

  • Python 3.9+
  • uv
uv sync

Create and Run Tests

Create tests within the tests subfolder and then run:

uv run pytest

You can also test the mapper-fivetran CLI interface directly using uv run:

uv run mapper-fivetran --help

Testing with Meltano

Note: This mapper 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 mapper-fivetran
meltano install

Now you can test and orchestrate using Meltano:

# Run a test `run` pipeline:
meltano run tap-smoke-test mapper-fivetran target-jsonl

SDK Dev Guide

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

About

Singer-compliant mapper for Fivetran

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0