A Stitch Import API client library for 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.7.0.post1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 312fbe3c42f42f7772ab70c98221dd021fc55149a887360082b924ffbef1e78c |
|
MD5 | 50f118d8114bc85bbc6b8b8d92715fc7 |
|
BLAKE2b-256 | 702059499c1d32daaf0f744405c5a220eac8c18b141a4867274d9c6381a81dec |
Close
Hashes for ns_stitchclient-0.7.0.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38cae685735f1652fc041c31d3d0ec956ed6ffd35a5c3fcf6617b7e1528f27e1 |
|
MD5 | 5a7eeadc4219cf2cf8962073dba5ca20 |
|
BLAKE2b-256 | e20d54a1ac744ebcb7660008fdc6ccd3abb43debb3879ad95db3e9939723e5e6 |