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
File details
Details for the file ns_stitchclient-0.9.3.post1.tar.gz
.
File metadata
- Download URL: ns_stitchclient-0.9.3.post1.tar.gz
- Upload date:
- Size: 20.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.23.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e2ee0d4a7c37efb12a53c43a5e3a757dcd1f4adf9dfcbbb9d26a8b034f9fbeb |
|
MD5 | 03c7e486d44389bfc13ba1f10951483c |
|
BLAKE2b-256 | 734b6cdb622242d324c80068239e27da1d31addaf39dbb465c980c799d5778d2 |
File details
Details for the file ns_stitchclient-0.9.3.post1-py3-none-any.whl
.
File metadata
- Download URL: ns_stitchclient-0.9.3.post1-py3-none-any.whl
- Upload date:
- Size: 28.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.23.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71706a586ada8129b3978a4a62898073f68b2513487fd3149af8c28cf1b1e28e |
|
MD5 | 7efd7a03a0a769a4aa4dfe25e1bb7409 |
|
BLAKE2b-256 | c7421adf5687572c6268a55e7260ac6910439a931155282f54010de9725c9209 |