Library for working with the stitch client in python
Project description
python-stitch-client
A Stitch Import API client library for python
Use
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)
License
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
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
Close
Hashes for ns_stitchclient-0.9.2.post1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac1cacccfb664365217fcc228d46395c3b87793894e9dee44492350cc0488986 |
|
MD5 | 655421f2d0d01bae8519f63fb84464e0 |
|
BLAKE2b-256 | b8ad748f6b4fd1147fbec0494c102d59589c5e1ddfb80defd9a194b4ffd4709a |
Close
Hashes for ns_stitchclient-0.9.2.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 401fb782a4af37ddaa78026fad7561474082903418654cdebf7609420aa2d106 |
|
MD5 | 21ded8befe02bc4ea45cf48669805c59 |
|
BLAKE2b-256 | 49d6f91e7a18b416e5d840da7757abc573d513c8072f288959fcfd1a0a4bbadb |