Skip to main content

Python SDK for Workshop.ai connectors — execute actions and manage triggers

Project description

workshop-connect

Python SDK for Workshop.ai connectors — execute actions and manage triggers through the Workshop proxy.

Installation

pip install workshop-connect

Quick Start

Python SDK

from workshop_connect import ConnectorClient

# Auto-detect connector from environment variables
client = ConnectorClient.from_connector("gmail")
result = client.execute("GMAIL_GET_PROFILE", {"userId": "me"})
print(result)

# Or with an explicit prefix
client = ConnectorClient.from_env(prefix="MYGMAL")

Async SDK (for FastAPI / async apps)

from workshop_connect import AsyncConnectorClient

async with AsyncConnectorClient.from_connector("gmail") as client:
    result = await client.execute("GMAIL_GET_PROFILE", {"userId": "me"})

FastAPI Integration

from fastapi import FastAPI
from workshop_connect import AsyncConnectorClient

app = FastAPI()

@app.get("/api/emails")
async def list_emails():
    async with AsyncConnectorClient.from_connector("gmail") as client:
        return await client.execute("GMAIL_LIST_EMAILS", {"maxResults": 10})

Environment Variables

Each connected account injects three environment variables:

<PREFIX>_COMPOSIO_PROXY_URL              # Workshop proxy URL
<PREFIX>_COMPOSIO_CONNECTED_ACCOUNT_ID   # Connected account ID
<PREFIX>_WORKSHOP_API_KEY                # Bearer token
<PREFIX>_COMPOSIO_APP_NAME               # Toolkit name (optional, for disambiguation)

License

Apache-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

workshop_connect-0.1.0.tar.gz (138.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

workshop_connect-0.1.0-py3-none-any.whl (138.1 kB view details)

Uploaded Python 3

File details

Details for the file workshop_connect-0.1.0.tar.gz.

File metadata

  • Download URL: workshop_connect-0.1.0.tar.gz
  • Upload date:
  • Size: 138.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for workshop_connect-0.1.0.tar.gz
Algorithm Hash digest
SHA256 21c0d342b7dca2cb8f7cd2721060ad6c5c1823717342e8fa0a7e2ec44b6739ed
MD5 1d717c602565e3131dbec8ff645bb6b3
BLAKE2b-256 d5881304d52df8a6e02598ad54078c79186a5cd1e27cc208278d7593ccc18562

See more details on using hashes here.

Provenance

The following attestation bundles were made for workshop_connect-0.1.0.tar.gz:

Publisher: publish.yml on atlasfutures/workshop-connect

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file workshop_connect-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for workshop_connect-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6396dd7e9204262305235801f572cdf6375429b54a052270952670649c2fc54d
MD5 c025d2983df6b463dffba0ea56a0a1e7
BLAKE2b-256 6c6494ecc06bf093e01d043bf5d946e4f49d8e431a8fedda3c824f5241e46ac8

See more details on using hashes here.

Provenance

The following attestation bundles were made for workshop_connect-0.1.0-py3-none-any.whl:

Publisher: publish.yml on atlasfutures/workshop-connect

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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