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 python-stitch-client-0.8.0.post1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dff77e3bf64db2b295434ac8f47cbcc295a8d33bb2beb98560ca3cf0a8a60f63 |
|
MD5 | 5ac3f2374bf759399780d6e5d90cb926 |
|
BLAKE2b-256 | dab7a0244ed12724f33476a1cbea06c0d8c57f983a5d695568850cbd8b04d107 |
Close
Hashes for python_stitch_client-0.8.0.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 043f67d0c3f59be351e042627c243f0ccaed5e4990a4c7e3f2f497e772b66ad7 |
|
MD5 | bdf627e709a7166d01dee851780cf37d |
|
BLAKE2b-256 | 4a57759aca26944960e5df525c0ad20cb79fc1bd3cb6d0c0b9e539590e147110 |