Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ns_stitchclient-0.9.3.post1.tar.gz (20.8 kB view details)

Uploaded Source

Built Distribution

ns_stitchclient-0.9.3.post1-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

Details for the file ns_stitchclient-0.9.3.post1.tar.gz.

File metadata

File hashes

Hashes for ns_stitchclient-0.9.3.post1.tar.gz
Algorithm Hash digest
SHA256 3e2ee0d4a7c37efb12a53c43a5e3a757dcd1f4adf9dfcbbb9d26a8b034f9fbeb
MD5 03c7e486d44389bfc13ba1f10951483c
BLAKE2b-256 734b6cdb622242d324c80068239e27da1d31addaf39dbb465c980c799d5778d2

See more details on using hashes here.

File details

Details for the file ns_stitchclient-0.9.3.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for ns_stitchclient-0.9.3.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 71706a586ada8129b3978a4a62898073f68b2513487fd3149af8c28cf1b1e28e
MD5 7efd7a03a0a769a4aa4dfe25e1bb7409
BLAKE2b-256 c7421adf5687572c6268a55e7260ac6910439a931155282f54010de9725c9209

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page