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.post1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73cd190b00cdaadf26865e4972f8c955ff8e1dcaf60b9a34902b1d665b394a05 |
|
MD5 | f0799c0361440d1d025c5cdb3ef25f7c |
|
BLAKE2b-256 | 16ba86203e0c7e1e1fa161e1612822f259f0a7dceec9d7aa51f6d387f3f8ead8 |
Close
Hashes for ns_stitchclient-0.8.2.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fce3ccbe8648f70efddf90feb5fe0d6614c36c5232be486212e2725cd5b29a46 |
|
MD5 | 9f29e675eceffc39607fa0296b8d8d35 |
|
BLAKE2b-256 | e65f614b1a524a7d034797e795b39178e37d6de46dc888fcdcbc945d6e91dfd9 |