Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .fernignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ src/pipedream/pipedream.py
src/pipedream/proxy/client.py

# Custom Workflow files
src/pipedream/workflows/**/*
src/pipedream/workflows/__init__.py
src/pipedream/workflows/client.py
22 changes: 10 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ client = Pipedream(
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client.accounts.create(
app_slug="app_slug",
cfmap_json="cfmap_json",
connect_token="connect_token",
client.actions.run(
id="id",
external_user_id="external_user_id",
)
```

Expand All @@ -53,10 +52,9 @@ client = AsyncPipedream(


async def main() -> None:
await client.accounts.create(
app_slug="app_slug",
cfmap_json="cfmap_json",
connect_token="connect_token",
await client.actions.run(
id="id",
external_user_id="external_user_id",
)


Expand All @@ -72,7 +70,7 @@ will be thrown.
from pipedream.core.api_error import ApiError

try:
client.accounts.create(...)
client.actions.run(...)
except ApiError as e:
print(e.status_code)
print(e.body)
Expand Down Expand Up @@ -112,7 +110,7 @@ from pipedream import Pipedream
client = Pipedream(
...,
)
response = client.accounts.with_raw_response.create(...)
response = client.actions.with_raw_response.run(...)
print(response.headers) # access the response headers
print(response.data) # access the underlying object
pager = client.apps.list(...)
Expand Down Expand Up @@ -140,7 +138,7 @@ A request is deemed retryable when any of the following HTTP status codes is ret
Use the `max_retries` request option to configure this behavior.

```python
client.accounts.create(..., request_options={
client.actions.run(..., request_options={
"max_retries": 1
})
```
Expand All @@ -160,7 +158,7 @@ client = Pipedream(


# Override timeout for a specific method
client.accounts.create(..., request_options={
client.actions.run(..., request_options={
"timeout_in_seconds": 1
})
```
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "pipedream"

[tool.poetry]
name = "pipedream"
version = "1.0.1"
version = "1.0.2"
description = ""
readme = "README.md"
authors = []
Expand Down
4 changes: 2 additions & 2 deletions src/pipedream/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ def __init__(

def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"User-Agent": "pipedream/1.0.1",
"User-Agent": "pipedream/1.0.2",
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "pipedream",
"X-Fern-SDK-Version": "1.0.1",
"X-Fern-SDK-Version": "1.0.2",
**(self.get_custom_headers() or {}),
}
if self._project_environment is not None:
Expand Down