Pipedream SDK

raw JSON →
1.1.11 verified Fri May 01 auth: no python

Python SDK for the Pipedream platform, enabling integration with over 2,000 apps and APIs for building workflows, managing accounts, and executing actions. Current version 1.1.11, released with progressive scopes support. Active development with frequent minor releases.

pip install pipedream
error ImportError: cannot import name 'ConfigurePropResponse' from 'pipedream'
cause Using a version prior to 1.1.3 where the class had a typo and was not exported.
fix
Upgrade to pipedream >=1.1.3: pip install --upgrade pipedream
error TypeError: __init__() got an unexpected keyword argument 'environment'
cause The 'environment' parameter was removed in v1.1.6 in favor of 'base_url'.
fix
Replace environment='...' with base_url='https://api.pipedream.com/v1' or remove it.
breaking Environment parameter removed from constructor in v1.1.6; use baseURL instead.
fix Replace `environment='development'` with `base_url='https://api.pipedream.com/v1'` or omit to use default.
deprecated The `timeout` argument in client constructor was missing in v1.1.0–1.1.1 and added back in 1.1.2.
fix Upgrade to >=1.1.2 or set timeout via httpx client directly.
gotcha ConfigurePropResponse was misspelled as 'ConfigurePropResponse' in v1.1.2; fixed in 1.1.3.
fix Upgrade to >=1.1.3 or use the correct spelling (note: the attribute was 'configured' vs 'configured').

Initialize Pipedream client, list accounts, and run an action.

from pipedream import Pipedream
import os

# Initialize client with environment variable for security
pd = Pipedream(api_key=os.environ.get('PIPEDREAM_API_KEY', ''), environment='development')

# List accounts
accounts = pd.accounts.list()
print(accounts)

# Execute an action (example: send email)
response = pd.actions.run(
    action_name='email.send',
    inputs={'to': 'test@example.com', 'subject': 'Hello', 'body': 'World'}
)
print(response)