Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/singer-io/singer-python
Writes the Singer format from Python
https://github.com/singer-io/singer-python
Last synced: 1 day ago
JSON representation
Writes the Singer format from Python
- Host: GitHub
- URL: https://github.com/singer-io/singer-python
- Owner: singer-io
- License: apache-2.0
- Created: 2016-10-28T16:51:19.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-10-03T20:44:52.000Z (4 months ago)
- Last Synced: 2025-01-11T10:03:14.952Z (8 days ago)
- Language: Python
- Homepage: https://singer.io
- Size: 238 KB
- Stars: 546
- Watchers: 24
- Forks: 128
- Open Issues: 38
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - singer-io/singer-python - Writes the Singer format from Python (others)
README
singer-python
===================Writes the Singer format from Python
Use
---This library depends on python3. We recommend using a `virtualenv`
like this:```bash
python3 -m venv ~/.virtualenvs/singer-python
```Next, install this library:
```bash
source ~/.virtualenvs/singer-python/bin/activate
git clone http://github.com/singer-io/singer-python
cd singer-python
make install
```Now, from python code within the same `virtualenv`, you can use the
library:```python
import singersinger.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'})
```License
-------Copyright © 2017 Stitch
Distributed under the Apache License Version 2.0