A Stitch Import API client library for python
This library depends on python3 - if that's not your default python, try this:
› mkvirtualenv -p python3 stitch
Next, install this library:
› workon stitch
› pip install stitchclient
Now you're ready to use the library. From the same virtualenv
:
from stitchclient.client import Client
with Client(int(os.environ['STITCH_CLIENT_ID']), os.environ['STITCH_TOKEN'], callback_function=print) as c:
for i in range(1,10):
c.push({'action': 'upsert',
'table_name': 'test_table',
'key_names': ['id'],
'sequence': i,
'data': {'id': i, 'value': 'abc'}}, i)
python-stitch-client is Copyright © 2016 Stitch and Distributed under the Apache License Version 2.0
transit-python is Copyright © 2014-2016 Cognitect and Distributed under the Apache License Version 2.0