Skip to main content

Singer.io target for writing JSON files and upload to S3

Project description

target-s3-json

PyPI - Python Version License: Apache2

Singer target that uploads loads data to S3 in JSON format following the Singer spec.

How to use it

Install

First, make sure Python 3 is installed on your system or follow these installation instructions for Mac or Ubuntu.

It's recommended to use a virtualenv:

  python3 -m venv env-target-s3-json
  pip install target-s3-json

Install the package target-s3-json in the virtualenv:

  source env-target-s3-json/bin/activate
  pip install git+https://github.com/ScalefreeCOM/scalefree-target-s3-json
  deactivate

To run

Like any other target that's following the singer specification:

  some-singer-tap --catalog [catalog.json] | ~/environment/env-target-s3-json/bin/python3 env-target-s3-json/lib/python3.7/site-packages/target_s3_json/__init__.py --config [config.json]

Note: To avoid version conflicts run tap and targets in separate virtual environments.

Configuration settings

Running the target connector requires a config.json file. An example with the minimal settings:

{
 "aws_access_key_id": "ACCESS-KEY",
 "aws_secret_access_key": "SECRET",
 "s3_bucket": "BUCKET",
 "s3_key_prefix": "SOME-PREFIX/",
 "delimiter": ","
}

License

Apache License Version 2.0

See LICENSE to see the full text.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scalefree-target-s3-json-0.1.tar.gz (7.3 kB view details)

Uploaded Source

File details

Details for the file scalefree-target-s3-json-0.1.tar.gz.

File metadata

  • Download URL: scalefree-target-s3-json-0.1.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for scalefree-target-s3-json-0.1.tar.gz
Algorithm Hash digest
SHA256 6bfdc36c6fe83e214e07ec94b8ec9d1d64dcdcac5db74d28cd7bca7a8bacdf7a
MD5 6fab37f36206f94b855b3281330fc3d9
BLAKE2b-256 63818dbc10e62cbd243d9aa103dda62c98a5120a03ff3a708b75aef5ff527e7b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page