Skip to main content

target-typo-proxy

Singer target that provides data quality checking with Typo for data in transit.

target-typo-proxy works as a standard Singer target that provides AI assisted data quality by sending the received data to Typo for inspection. Depending on the results returned by Typo, target-typo-proxy forwards the record to a valid or error target. An optional passthrough target receives all records regardless of Typo results.

Install

Requires Python 3

pip install target-typo-proxy

Use

target-typo-proxy takes two types of input:

  1. A stream of Singer-formatted data on stdin
  2. A config file containing:
    1. api_key - API Key created in the Typo Dashboard
    2. api_secret - API secret created in the Typo Dashboard
    3. cluster_api_endpoint - URL to your Typo cluster. See your account details on the Typo Dashboard.
    4. repository - Name of the repository
    5. send_threshold - The batch size in number of rows to send in each import request to Typo
    6. errors_target - The command for the target that will receive records predicted as error
    7. valid_target - The command for the target that will receive records predicted as valid
    8. passthrough_target - (optional) The command for the target that will receive all records

At least one of errors_target and valid_target must be provided.

Sample config file:

{
  "disable_collection": false,
  "api_key": "my_apikey",
  "api_secret": "my_apisecret",
  "cluster_api_endpoint": "https://cluster.typo.ai/management/api/v1",
  "repository": "my_repository",
  "send_threshold": 250,
  "errors_target": "my_target -c errors.json",
  "valid_target": "my_target -c valid.json",
  "passthrough_target": "another_target -c passthrough.json"
}
> TAP-some-api | target-typo-proxy -c config.json

Development Install

python3 -m venv .venv
source .venv/bin/activate
pip install -e .

Support

You may reach Typo Support at the email handle support@ then the typo domain or See the contact information at https://www.typo.ai


Copyright 2019 Typo. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.

You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

This product includes software developed at or by Typo (https://www.typo.ai/).

Release files for target-typo-proxy 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for target-typo-proxy 0.1.0
File Size Uploaded
target-typo-proxy-0.1.0.tar.gz 14.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for target-typo-proxy 0.1.0
File Interpreter ABI Platform
target_typo_proxy-0.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 31.1 kB

Release files / target-typo-proxy-0.1.0.tar.gz

Download URL target-typo-proxy-0.1.0.tar.gz
Size 14.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2c4ab5b4539afe04e9f254488754f9d5f342958fe3bea327134c02585d81c8b7
BLAKE2b-256 checksum
How to use checksums
f30c6deb1d0f9cac3afbefa8bc44d75550d2b3ed0f019fc99f7ba90d805de5e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

Release files / target_typo_proxy-0.1.0-py2.py3-none-any.whl

Download URL target_typo_proxy-0.1.0-py2.py3-none-any.whl
Size 16.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
58ef24d22a59d010a735ecd9c9fe9363595c374a9cb3c772359af230047c5a02
BLAKE2b-256 checksum
How to use checksums
66f499720e565baf29c4ece67ce18c126931079aeb8b0a4a2834b79f73e08610
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page