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.2.0.tar.gz (141.8 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.2.0-py3-none-any.whl (141.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: workshop_connect-0.2.0.tar.gz
  • Upload date:
  • Size: 141.8 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.2.0.tar.gz
Algorithm Hash digest
SHA256 a6f2968b3b0418ab16584a2efb7238ef10203fac070a0687031fd8a03a320727
MD5 5af5befb57c77523ecb61749209a76fc
BLAKE2b-256 a940cb3a35c340a05dc0bf5598c854d4d0aa8607465d19b752fe9a1542a11b6b

See more details on using hashes here.

Provenance

The following attestation bundles were made for workshop_connect-0.2.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.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for workshop_connect-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 66e3b1c55f0b348971c93c8c6a73c695a84b4e978beec232a8eb33df429179fa
MD5 8dd1c35fdc6639924fd4a3aeb224537d
BLAKE2b-256 e91d62cef71dd7deec60e395b75ae0107e1ed9ed8091ce6ae3635ab6d26ec37c

See more details on using hashes here.

Provenance

The following attestation bundles were made for workshop_connect-0.2.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