Singer.io utility library - PipelineWise compatible
Project description
pipelinewise-singer-python
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pipelinewise-singer-python-2.0.1.tar.gz
.
File metadata
- Download URL: pipelinewise-singer-python-2.0.1.tar.gz
- Upload date:
- Size: 20.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b5c8cc551388de17a52ae81c505629e8d4ca201a7a98670372a5a18f4aae09b |
|
MD5 | 72cd960b82c0fef3ed8d452aadc2570a |
|
BLAKE2b-256 | 23a4429f4341b235d6140a6423f4b60c4e5fad3994b641a403b59ae5e83a8a9c |
File details
Details for the file pipelinewise_singer_python-2.0.1-py3-none-any.whl
.
File metadata
- Download URL: pipelinewise_singer_python-2.0.1-py3-none-any.whl
- Upload date:
- Size: 24.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbde2a247819609f011f7d9f3d15622bf9c1ad70fbebdff688b675684d534fd7 |
|
MD5 | b1acafaddf69d2ebb1ffc48a946d5eb3 |
|
BLAKE2b-256 | 09e8b1b713304e619de8fc3da1f5dfd4e47c88d00d8f35077ca3b69ce0360db3 |