Skip to content

timeplus-io/target-timeplus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

target-timeplus

target-timeplus is a Singer target for Timeplus.

Build with the Meltano Target SDK.

Installation

Install from PyPi (not ready in PyPi yet):

pipx install target-timeplus

Install from GitHub:

pipx install git+https://github.com/timeplus-io/target-timeplus.git@main

Configuration

Accepted Config Options

Setting Required Default Description
endpoint True https://us.timeplus.cloud/wsId1234 Timeplus workspace endpoint
apikey True None Personal API key
stream_maps False None Config object for stream maps capability. For more information check out Stream Maps.
stream_map_config False None User-defined config values to be used within map expressions.
flattening_enabled False None 'True' to enable schema flattening and automatically expand nested properties.
flattening_max_depth False None The max depth to flatten schemas.

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

poetry run target-timeplus --about

Configure using environment variables

This Singer target 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.

Target Authentication and Authorization

You need to create a free account at https://timeplus.com. Sign up with a Google or Microsoft ID, then create a new workspace with a random ID and a friendly name. Then you will be redirected to https://us.timeplus.cloud/wsId1234/console

You need to create an API key to access Timeplus REST API. To do so:

  1. Click the user icon on the top-right corner.
  2. Choose Personal Settings
  3. Choose the 2nd tab API Key Management
  4. Click the Create API Key button
  5. Set a readable name and choose an expiration date
  6. Save the API key securely in your computer. You are not going to retrieve the plain text key again in the console.

For more details, please check https://docs.timeplus.com/quickstart-ingest-api

Usage

You can easily run target-timeplus by itself or in a pipeline using Meltano.

Executing the Target Directly

poetry run target-timeplus --version
poetry run target-timeplus --help
# Test using the "tap-smoke-test" sample:
meltano elt tap-smoke-test target-timeplus

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 target_timeplus/tests subfolder and then run:

poetry run pytest

You can also test the target-timeplus CLI interface directly using poetry run:

poetry run target-timeplus --help

Testing with Meltano

Note: This target 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 target-timeplus
meltano install

Now you can test and orchestrate using Meltano:

# Test invocation:
meltano invoke target-timeplus --version
# OR run a test `elt` pipeline with the "tap-smoke-test" sample:
meltano elt tap-smoke-test target-timeplus

SDK Dev Guide

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

About

A target for Timeplus Cloud, made with the Meltano SDK for Targets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages