Skip to content

Commit 5e9d759

Browse files
SDK regeneration
1 parent 777b0c2 commit 5e9d759

25 files changed

+475
-478
lines changed

README.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,21 @@
55

66
The Pipedream Python library provides convenient access to the Pipedream APIs from Python.
77

8+
## Table of Contents
9+
10+
- [Installation](#installation)
11+
- [Reference](#reference)
12+
- [Usage](#usage)
13+
- [Async Client](#async-client)
14+
- [Exception Handling](#exception-handling)
15+
- [Pagination](#pagination)
16+
- [Advanced](#advanced)
17+
- [Access Raw Response Data](#access-raw-response-data)
18+
- [Retries](#retries)
19+
- [Timeouts](#timeouts)
20+
- [Custom Client](#custom-client)
21+
- [Contributing](#contributing)
22+
823
## Installation
924

1025
```sh
@@ -89,14 +104,7 @@ client = Pipedream(
89104
client_id="YOUR_CLIENT_ID",
90105
client_secret="YOUR_CLIENT_SECRET",
91106
)
92-
response = client.apps.list(
93-
after="after",
94-
before="before",
95-
limit=1,
96-
q="q",
97-
sort_key="name",
98-
sort_direction="asc",
99-
)
107+
response = client.apps.list()
100108
for item in response:
101109
yield item
102110
# alternatively, you can paginate page-by-page

poetry.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "pipedream"
33

44
[tool.poetry]
55
name = "pipedream"
6-
version = "1.0.11"
6+
version = "1.0.12"
77
description = ""
88
readme = "README.md"
99
authors = []

src/pipedream/accounts/client.py

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,7 @@ def list(
8282
client_id="YOUR_CLIENT_ID",
8383
client_secret="YOUR_CLIENT_SECRET",
8484
)
85-
response = client.accounts.list(
86-
external_user_id="external_user_id",
87-
oauth_app_id="oauth_app_id",
88-
after="after",
89-
before="before",
90-
limit=1,
91-
app="app",
92-
include_credentials=True,
93-
)
85+
response = client.accounts.list()
9486
for item in response:
9587
yield item
9688
# alternatively, you can paginate page-by-page
@@ -160,8 +152,6 @@ def create(
160152
client_secret="YOUR_CLIENT_SECRET",
161153
)
162154
client.accounts.create(
163-
external_user_id="external_user_id",
164-
oauth_app_id="oauth_app_id",
165155
app_slug="app_slug",
166156
cfmap_json="cfmap_json",
167157
connect_token="connect_token",
@@ -215,7 +205,6 @@ def retrieve(
215205
)
216206
client.accounts.retrieve(
217207
account_id="account_id",
218-
include_credentials=True,
219208
)
220209
"""
221210
_response = self._raw_client.retrieve(
@@ -363,15 +352,7 @@ async def list(
363352
364353
365354
async def main() -> None:
366-
response = await client.accounts.list(
367-
external_user_id="external_user_id",
368-
oauth_app_id="oauth_app_id",
369-
after="after",
370-
before="before",
371-
limit=1,
372-
app="app",
373-
include_credentials=True,
374-
)
355+
response = await client.accounts.list()
375356
async for item in response:
376357
yield item
377358
@@ -450,8 +431,6 @@ async def create(
450431
451432
async def main() -> None:
452433
await client.accounts.create(
453-
external_user_id="external_user_id",
454-
oauth_app_id="oauth_app_id",
455434
app_slug="app_slug",
456435
cfmap_json="cfmap_json",
457436
connect_token="connect_token",
@@ -513,7 +492,6 @@ async def retrieve(
513492
async def main() -> None:
514493
await client.accounts.retrieve(
515494
account_id="account_id",
516-
include_credentials=True,
517495
)
518496
519497

src/pipedream/actions/client.py

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,7 @@ def list(
8080
client_id="YOUR_CLIENT_ID",
8181
client_secret="YOUR_CLIENT_SECRET",
8282
)
83-
response = client.actions.list(
84-
after="after",
85-
before="before",
86-
limit=1,
87-
q="q",
88-
app="app",
89-
)
83+
response = client.actions.list()
9084
for item in response:
9185
yield item
9286
# alternatively, you can paginate page-by-page
@@ -431,13 +425,7 @@ async def list(
431425
432426
433427
async def main() -> None:
434-
response = await client.actions.list(
435-
after="after",
436-
before="before",
437-
limit=1,
438-
q="q",
439-
app="app",
440-
)
428+
response = await client.actions.list()
441429
async for item in response:
442430
yield item
443431

src/pipedream/actions/raw_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ def run(
426426
),
427427
"dynamic_props_id": dynamic_props_id,
428428
"stash_id": convert_and_respect_annotation_metadata(
429-
object_=stash_id, annotation=RunActionOptsStashId, direction="write"
429+
object_=stash_id, annotation=typing.Optional[RunActionOptsStashId], direction="write"
430430
),
431431
},
432432
headers={
@@ -866,7 +866,7 @@ async def run(
866866
),
867867
"dynamic_props_id": dynamic_props_id,
868868
"stash_id": convert_and_respect_annotation_metadata(
869-
object_=stash_id, annotation=RunActionOptsStashId, direction="write"
869+
object_=stash_id, annotation=typing.Optional[RunActionOptsStashId], direction="write"
870870
),
871871
},
872872
headers={

src/pipedream/apps/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from importlib import import_module
77

88
if typing.TYPE_CHECKING:
9-
from .types import AppsListRequestSortDirection, AppsListRequestSortKey
10-
_dynamic_imports: typing.Dict[str, str] = {"AppsListRequestSortDirection": ".types", "AppsListRequestSortKey": ".types"}
9+
from .types import ListAppsRequestSortDirection, ListAppsRequestSortKey
10+
_dynamic_imports: typing.Dict[str, str] = {"ListAppsRequestSortDirection": ".types", "ListAppsRequestSortKey": ".types"}
1111

1212

1313
def __getattr__(attr_name: str) -> typing.Any:
@@ -31,4 +31,4 @@ def __dir__():
3131
return sorted(lazy_attrs)
3232

3333

34-
__all__ = ["AppsListRequestSortDirection", "AppsListRequestSortKey"]
34+
__all__ = ["ListAppsRequestSortDirection", "ListAppsRequestSortKey"]

src/pipedream/apps/client.py

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
from ..types.app import App
99
from ..types.get_app_response import GetAppResponse
1010
from .raw_client import AsyncRawAppsClient, RawAppsClient
11-
from .types.apps_list_request_sort_direction import AppsListRequestSortDirection
12-
from .types.apps_list_request_sort_key import AppsListRequestSortKey
11+
from .types.list_apps_request_sort_direction import ListAppsRequestSortDirection
12+
from .types.list_apps_request_sort_key import ListAppsRequestSortKey
1313

1414

1515
class AppsClient:
@@ -34,8 +34,8 @@ def list(
3434
before: typing.Optional[str] = None,
3535
limit: typing.Optional[int] = None,
3636
q: typing.Optional[str] = None,
37-
sort_key: typing.Optional[AppsListRequestSortKey] = None,
38-
sort_direction: typing.Optional[AppsListRequestSortDirection] = None,
37+
sort_key: typing.Optional[ListAppsRequestSortKey] = None,
38+
sort_direction: typing.Optional[ListAppsRequestSortDirection] = None,
3939
category_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
4040
request_options: typing.Optional[RequestOptions] = None,
4141
) -> SyncPager[App]:
@@ -56,10 +56,10 @@ def list(
5656
q : typing.Optional[str]
5757
A search query to filter the apps
5858
59-
sort_key : typing.Optional[AppsListRequestSortKey]
59+
sort_key : typing.Optional[ListAppsRequestSortKey]
6060
The key to sort the apps by
6161
62-
sort_direction : typing.Optional[AppsListRequestSortDirection]
62+
sort_direction : typing.Optional[ListAppsRequestSortDirection]
6363
The direction to sort the apps
6464
6565
category_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
@@ -83,14 +83,7 @@ def list(
8383
client_id="YOUR_CLIENT_ID",
8484
client_secret="YOUR_CLIENT_SECRET",
8585
)
86-
response = client.apps.list(
87-
after="after",
88-
before="before",
89-
limit=1,
90-
q="q",
91-
sort_key="name",
92-
sort_direction="asc",
93-
)
86+
response = client.apps.list()
9487
for item in response:
9588
yield item
9689
# alternatively, you can paginate page-by-page
@@ -165,8 +158,8 @@ async def list(
165158
before: typing.Optional[str] = None,
166159
limit: typing.Optional[int] = None,
167160
q: typing.Optional[str] = None,
168-
sort_key: typing.Optional[AppsListRequestSortKey] = None,
169-
sort_direction: typing.Optional[AppsListRequestSortDirection] = None,
161+
sort_key: typing.Optional[ListAppsRequestSortKey] = None,
162+
sort_direction: typing.Optional[ListAppsRequestSortDirection] = None,
170163
category_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
171164
request_options: typing.Optional[RequestOptions] = None,
172165
) -> AsyncPager[App]:
@@ -187,10 +180,10 @@ async def list(
187180
q : typing.Optional[str]
188181
A search query to filter the apps
189182
190-
sort_key : typing.Optional[AppsListRequestSortKey]
183+
sort_key : typing.Optional[ListAppsRequestSortKey]
191184
The key to sort the apps by
192185
193-
sort_direction : typing.Optional[AppsListRequestSortDirection]
186+
sort_direction : typing.Optional[ListAppsRequestSortDirection]
194187
The direction to sort the apps
195188
196189
category_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
@@ -219,14 +212,7 @@ async def list(
219212
220213
221214
async def main() -> None:
222-
response = await client.apps.list(
223-
after="after",
224-
before="before",
225-
limit=1,
226-
q="q",
227-
sort_key="name",
228-
sort_direction="asc",
229-
)
215+
response = await client.apps.list()
230216
async for item in response:
231217
yield item
232218

src/pipedream/apps/raw_client.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
from ..types.app import App
1414
from ..types.get_app_response import GetAppResponse
1515
from ..types.list_apps_response import ListAppsResponse
16-
from .types.apps_list_request_sort_direction import AppsListRequestSortDirection
17-
from .types.apps_list_request_sort_key import AppsListRequestSortKey
16+
from .types.list_apps_request_sort_direction import ListAppsRequestSortDirection
17+
from .types.list_apps_request_sort_key import ListAppsRequestSortKey
1818

1919

2020
class RawAppsClient:
@@ -28,8 +28,8 @@ def list(
2828
before: typing.Optional[str] = None,
2929
limit: typing.Optional[int] = None,
3030
q: typing.Optional[str] = None,
31-
sort_key: typing.Optional[AppsListRequestSortKey] = None,
32-
sort_direction: typing.Optional[AppsListRequestSortDirection] = None,
31+
sort_key: typing.Optional[ListAppsRequestSortKey] = None,
32+
sort_direction: typing.Optional[ListAppsRequestSortDirection] = None,
3333
category_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
3434
request_options: typing.Optional[RequestOptions] = None,
3535
) -> SyncPager[App]:
@@ -50,10 +50,10 @@ def list(
5050
q : typing.Optional[str]
5151
A search query to filter the apps
5252
53-
sort_key : typing.Optional[AppsListRequestSortKey]
53+
sort_key : typing.Optional[ListAppsRequestSortKey]
5454
The key to sort the apps by
5555
56-
sort_direction : typing.Optional[AppsListRequestSortDirection]
56+
sort_direction : typing.Optional[ListAppsRequestSortDirection]
5757
The direction to sort the apps
5858
5959
category_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
@@ -165,8 +165,8 @@ async def list(
165165
before: typing.Optional[str] = None,
166166
limit: typing.Optional[int] = None,
167167
q: typing.Optional[str] = None,
168-
sort_key: typing.Optional[AppsListRequestSortKey] = None,
169-
sort_direction: typing.Optional[AppsListRequestSortDirection] = None,
168+
sort_key: typing.Optional[ListAppsRequestSortKey] = None,
169+
sort_direction: typing.Optional[ListAppsRequestSortDirection] = None,
170170
category_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
171171
request_options: typing.Optional[RequestOptions] = None,
172172
) -> AsyncPager[App]:
@@ -187,10 +187,10 @@ async def list(
187187
q : typing.Optional[str]
188188
A search query to filter the apps
189189
190-
sort_key : typing.Optional[AppsListRequestSortKey]
190+
sort_key : typing.Optional[ListAppsRequestSortKey]
191191
The key to sort the apps by
192192
193-
sort_direction : typing.Optional[AppsListRequestSortDirection]
193+
sort_direction : typing.Optional[ListAppsRequestSortDirection]
194194
The direction to sort the apps
195195
196196
category_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]

src/pipedream/apps/types/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
from importlib import import_module
77

88
if typing.TYPE_CHECKING:
9-
from .apps_list_request_sort_direction import AppsListRequestSortDirection
10-
from .apps_list_request_sort_key import AppsListRequestSortKey
9+
from .list_apps_request_sort_direction import ListAppsRequestSortDirection
10+
from .list_apps_request_sort_key import ListAppsRequestSortKey
1111
_dynamic_imports: typing.Dict[str, str] = {
12-
"AppsListRequestSortDirection": ".apps_list_request_sort_direction",
13-
"AppsListRequestSortKey": ".apps_list_request_sort_key",
12+
"ListAppsRequestSortDirection": ".list_apps_request_sort_direction",
13+
"ListAppsRequestSortKey": ".list_apps_request_sort_key",
1414
}
1515

1616

@@ -35,4 +35,4 @@ def __dir__():
3535
return sorted(lazy_attrs)
3636

3737

38-
__all__ = ["AppsListRequestSortDirection", "AppsListRequestSortKey"]
38+
__all__ = ["ListAppsRequestSortDirection", "ListAppsRequestSortKey"]

0 commit comments

Comments
 (0)