Git Product home page Git Product logo

tap-text-anywhere's Introduction

tap-text-anywhere

text-anywhere tap class.

This tap uses the textract python library (https://github.com/deanmalmgren/textract/), which will read a lot of different files including doing OCR on images.

Note that a lot of this functionality requires os-level programs to be installed. Read the textract install documentation for more information: https://textract.readthedocs.io/en/stable/installation.html

Built with the Meltano Singer SDK.

Capabilities

  • catalog
  • state
  • discover
  • about

Settings

Setting Required Default Description
stream_name False file The name of the stream that is output by the tap.
protocol True None The protocol to use to retrieve data. One of file or s3.
filepath True None The path to obtain files from. Example: /foo/bar. Or, for protocol==s3, use s3-bucket-name instead.
file_regex False None A regex pattern to only include certain files. Example: .*\.csv.
s3_anonymous_connection False 0 Whether to use an anonymous S3 connection, without any credentials. Ignored if protocol!=s3.
AWS_ACCESS_KEY_ID False None The access key to use when authenticating to S3. Ignored if protocol!=s3 or s3_anonymous_connection=True. Defaults to the value of the environment variable of the same name.
AWS_SECRET_ACCESS_KEY False None The access key secret to use when authenticating to S3. Ignored if protocol!=s3 or s3_anonymous_connection=True. Defaults to the value of the environment variable of the same name.
caching_strategy False once DEVELOPERS ONLY The caching method to use when protocol!=file. One of none, once, or persistent. none does not use caching at all. once (the default) will cache all files for the duration of the tap's invocation, then discard them upon completion. peristent will allow caches to persist between invocations of the tap, storing them in your OS's temp directory. It is recommended that you do not modify this setting.
chunk_size False once Size of text chunks to make up a record.
chunk_overlap False None Overlap between the text chunks.

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

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

tap-text-anywhere --about

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-text-anywhere by itself or in a pipeline using Meltano.

Executing the Tap Directly

tap-text-anywhere --version
tap-text-anywhere --help
tap-text-anywhere --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 tests subfolder and then run:

poetry run pytest

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

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

Now you can test and orchestrate using Meltano:

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

tap-text-anywhere's People

Contributors

radbrt avatar reubenfrankel avatar

Watchers

 avatar

Forkers

reubenfrankel

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.