Skip to content

threadsync-infrastructure/threadsync-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ThreadSync Python SDK

PyPI license python

Official Python SDK for the ThreadSync API.

Installation

Preview: SDKs are in preview and installed from GitHub. Registry packages (npm, PyPI, etc.) will be available at GA.

pip install git+https://github.com/threadsync-infrastructure/threadsync-python.git

Quick Start

from threadsync import ThreadSync

client = ThreadSync(bearer_token='YOUR_API_KEY')

# Create a connection
connection = client.connections.create(
    'salesforce',
    credentials={'username': 'user@example.com', 'password': 'secret'}
)

# Set up a sync
sync = client.sync.create(
    source={'connection': connection.id, 'object': 'Contact'},
    destination={'connection': 'dest-conn-id', 'table': 'contacts'},
    schedule='realtime',
)

print(f'Sync started: {sync.id}')

API Reference

ThreadSync(bearer_token, base_url=...)

Parameter Type Required Description
bearer_token str Yes Your ThreadSync API key
base_url str No Override the API base URL (default: https://api.threadsync.io/v1)

client.connections

Method Description
connections.create(provider, **kwargs) Create a new connection
connections.get(id) Retrieve a connection by ID
connections.list() List all connections

client.sync

Method Description
sync.create(source, destination, schedule) Create a new sync job
sync.get(id) Retrieve a sync by ID

Links

License

MIT — see LICENSE

About

Official Python SDK for ThreadSync's LLM Gateway and Magic Runtime. Governed AI access across Claude, GPT, Gemini, Groq, and Perplexity with policy controls and per-request audit.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages