Giter Site home page Giter Site logo

tap-msaccess's Introduction

tap-msaccess

tap-msaccess is a Singer tap for Microsoft Access.

Built with the Meltano Tap SDK for Singer Taps.

Python version Singer SDK version License Code style Test tap-msaccess

Installation

# pip
pip install git+https://github.com/Matatika/tap-msaccess

pip install git+https://github.com/Matatika/tap-msaccess fsspec[http]  # with http(s) support
pip install git+https://github.com/Matatika/tap-msaccess fsspec[s3]  # with s3 support
pip install git+https://github.com/Matatika/tap-msaccess fsspec[abfs]  # with azure support

# pipx
pipx install git+https://github.com/Matatika/tap-msaccess

pipx install git+https://github.com/Matatika/tap-msaccess fsspec[http]  # with http(s) support
pipx install git+https://github.com/Matatika/tap-msaccess fsspec[s3]  # with s3 support
pipx install git+https://github.com/Matatika/tap-msaccess fsspec[abfs]  # with azure support

# poetry
poetry add git+https://github.com/Matatika/tap-msaccess

poetry add git+https://github.com/Matatika/tap-msaccess fsspec[http]  # with http(s) support
poetry add git+https://github.com/Matatika/tap-msaccess fsspec[s3]  # with s3 support
poetry add git+https://github.com/Matatika/tap-msaccess fsspec[abfs]  # with azure support

Configuration

Accepted Config Options

Name Required Default Description
database_file Yes Local or URL path to a Microsoft Access database .mdb or .accdb file
*
connection_params
Any parameters for the fsspec storage backend implementation dictated by the database_file URL protocol, such as HTTP(S), S3 or Azure (see built-in implementations and other known implementations for more information)

These can be passed directly as top-level config (i.e. same as database_file) or via the connection_params setting as a JSON-object value - if both are provided, the configurations are merged, with values from connection_params taking precendence

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

tap-msaccess --about

Examples

Local

Key Value
database_file sample_db/Books.accdb
<absolute path to repo>/sample_db/Books.accdb
local://sample_db/Books.accdb
local://<absolute path to repo>/sample_db/Books.accdb
file://sample_db/Books.accdb
file://<absolute path to repo>/sample_db/Books.accdb

HTTP(S)

Key Value
database_file http://github.com/Matatika/tap-msaccess/raw/main/sample_db/Books.accdb
https://github.com/Matatika/tap-msaccess/raw/main/sample_db/Books.accdb
https://matatikaartifacts.blob.core.windows.net/tap-msaccess/Books.accdb

S3

Public read-only bucket

Key Value
database_file s3://tap-msaccess/Books.accdb
anon true

Private bucket

Key Value
database_file s3://<bucket name>/<file path>
key <access key id>
secret <secret access key>

Azure

Public read-only storage blob

Key Value
database_file az://tap-msaccess/Books.accdb
account_name matatikaartifacts

Private storage blob

Key Value
database_file az://<container name>/<file path>
account_name <account name>
account_key <account key>

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.

Usage

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

Executing the Tap Directly

tap-msaccess --version
tap-msaccess --help
tap-msaccess --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-msaccess CLI interface directly using poetry run:

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

Now you can test and orchestrate using Meltano:

# Test invocation:
meltano invoke tap-msaccess --version
# OR run a test `elt` pipeline:
meltano elt tap-msaccess 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-msaccess's People

Contributors

dependabot[bot] avatar pre-commit-ci[bot] avatar reubenfrankel avatar

Stargazers

 avatar

Watchers

 avatar

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.