Sitelet https://github.com/singer-io/singer-python/tree/log_fetch
Skip to content

About

Writes the Singer format from Python

Resources

Stars

587 stars

Watchers

21 watching

Forks

 
 

Latest commit

 

History

54 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

singer-python

Writes the Singer format from Python

Use

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

› mkvirtualenv -p python3 singer

Next, install this library:

› workon singer
› git clone http://github.com/singer-io/singer-python
› cd singer-python
› python setup.py install

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}}})
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

About

Writes the Singer format from Python

Resources

Stars

587 stars

Watchers

21 watching

Forks

Releases

Packages

Used by

Contributors

Languages