Skip to main content

Singer.io utility library - PipelineWise compatible

Project description

pipelinewise-singer-python

PyPI version PyPI - Python Version License: MIT

Writes the Singer format from Python.

This is a fork of Singer's singer-python made for PipelineWise.

Usage

Setup environment

This library depends on python3. We recommend using a virtualenv like this:

python3 -m venv ~/.virtualenvs/singer-python

Installation

Next, install this library:

source ~/.virtualenvs/singer-python/bin/activate
git clone http://github.com/singer-io/singer-python
cd singer-python
make install

Usage example

Now, from python code within the same virtualenv, you can use the library:

import singer

singer.write_schema('my_table',
	            {'properties':{'id': {'type': 'string', 'key': True}}},
		    ['id'])
singer.write_records('my_table',
                     [{'id': 'b'}, {'id':'d'}])
singer.write_state({'my_table': 'd'})

Logging configuration

pipelinewise-singer-python by default doesn't use any predefined logging configuration, it's up to the calling library to define it. However, if the environment variable LOGGING_CONF_FILE is found and set then the pipelinewise-singer-python would use the path provided in the env variable as the logging configuration for the logger.

License

Distributed under the Apache License Version 2.0

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

pipelinewise_singer_python-3.0.0.tar.gz (31.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pipelinewise_singer_python-3.0.0-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file pipelinewise_singer_python-3.0.0.tar.gz.

File metadata

File hashes

Hashes for pipelinewise_singer_python-3.0.0.tar.gz
Algorithm Hash digest
SHA256 a8002281c3c9306e1586b7b006ce3b9438af1deed81beb9061e17051adcfaae3
MD5 696096d61209809c31b2156e6020afb6
BLAKE2b-256 db7371da656e31301108605fd359578047f4ddc1ce9e233928ec8c55f3ef6c91

See more details on using hashes here.

File details

Details for the file pipelinewise_singer_python-3.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pipelinewise_singer_python-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ada8b407dd968208027186186e0567d54fa093c61706c6cfcbceed9f238b301b
MD5 0d7a2728045b02d2f08f4eec5a755a1a
BLAKE2b-256 7e6d78f364266604939966d1362e12dbe2571bbfbd793ab115312972fe88c670

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