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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pipelinewise_singer_python-3.0.2.tar.gz.
File metadata
- Download URL: pipelinewise_singer_python-3.0.2.tar.gz
- Upload date:
- Size: 31.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9b3bd6431e33de604092707d9763f472cac98320bb91339bf049aca46378a9e
|
|
| MD5 |
67837d40c33a1ed124b4fddf880122e4
|
|
| BLAKE2b-256 |
be5997e6161f245f61f08f434f31ac0f622508b724ac46e36b44c86e14d96eb9
|
File details
Details for the file pipelinewise_singer_python-3.0.2-py3-none-any.whl.
File metadata
- Download URL: pipelinewise_singer_python-3.0.2-py3-none-any.whl
- Upload date:
- Size: 25.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ef48b938931a5a9633ea8d6d775d423ea137860b44aa1697c8c5f3dd4dbbab7
|
|
| MD5 |
6e3e444ddd1ebf24f65e4cc317c79d5b
|
|
| BLAKE2b-256 |
e7a4e27fd9ed16e919c6e5618b99af1653a0e4a61c3adafe06de07b18e597128
|