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

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

Either install it from github:

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

or from PyPI:

  source env-target-s3-json/bin/activate
  pip install 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.2.tar.gz (7.3 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: scalefree-target-s3-json-0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 df1de2ca6ad8a897fb078ae47871988f8b076c326bb1dc6b326dbda0751be400
MD5 c7dd0443e4ed309124762f9a5ba40bb3
BLAKE2b-256 29e0823a520ed7df7bbb81a1d3a9810cddb1b9fa9ba1ad28319cffc7a32feefb

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