diff --git a/.fernignore b/.fernignore index ff878a3..e76b5b7 100644 --- a/.fernignore +++ b/.fernignore @@ -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 diff --git a/README.md b/README.md index 9bc8b61..971a101 100644 --- a/README.md +++ b/README.md @@ -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", ) ``` @@ -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", ) @@ -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) @@ -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(...) @@ -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 }) ``` @@ -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 }) ``` diff --git a/pyproject.toml b/pyproject.toml index c442608..74906be 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "pipedream" [tool.poetry] name = "pipedream" -version = "1.0.1" +version = "1.0.2" description = "" readme = "README.md" authors = [] diff --git a/src/pipedream/core/client_wrapper.py b/src/pipedream/core/client_wrapper.py index b42f727..37cd8e2 100644 --- a/src/pipedream/core/client_wrapper.py +++ b/src/pipedream/core/client_wrapper.py @@ -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: