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.8.2.post2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ed297069adf563d616ebc8f71641fdbb56751a50caa2eecaaf41daa497ec515 |
|
MD5 | 4c8646a4fe38dd61a92965c77739c609 |
|
BLAKE2b-256 | 3c22627425c088780ddbe9efb83fb6947f481015d3b8c8feaab5f568ccc76012 |
Close
Hashes for ns_stitchclient-0.8.2.post2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56d9027f891c8b764cf2f111dfbf5b3a1a0aa83e4e036611f55a3b7649bdec96 |
|
MD5 | c121feb5408825046329243d8f4ddc06 |
|
BLAKE2b-256 | 0c03003ea3bab62c53281bb75e54cfb0a9c7dbdd2b2538136958c5672aa26a78 |