Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.03 KB

README.md

File metadata and controls

32 lines (23 loc) · 1.03 KB

pystitch

PyPI version License: MIT Build Status Python Versions

a Python SDK for the Stitch Connect API.

Installation

pip install pystitchconnect

Example Usage

import os
from pystitch import PyStitch

STITCH_API_TOKEN = os.environ["STITCH_API_TOKEN"]

# Instantiate a PyStitch client using your API token.
client = PyStitch(token=STITCH_API_TOKEN)

# List all available Source objects.
sources = client.list_sources()

# Trigger a replication job for a specific Source.
response = client.start_replication_job(source_id=12345)
assert(response.ok)