Skip to content

Commit e917cc0

Browse files
SDK regeneration
1 parent 777b0c2 commit e917cc0

24 files changed

+357
-15
lines changed

README.md

Lines changed: 15 additions & 0 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

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/actions/__init__.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,33 @@
22

33
# isort: skip_file
44

5+
import typing
6+
from importlib import import_module
7+
8+
if typing.TYPE_CHECKING:
9+
from .types import ActionsListRequestRegistry
10+
_dynamic_imports: typing.Dict[str, str] = {"ActionsListRequestRegistry": ".types"}
11+
12+
13+
def __getattr__(attr_name: str) -> typing.Any:
14+
module_name = _dynamic_imports.get(attr_name)
15+
if module_name is None:
16+
raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
17+
try:
18+
module = import_module(module_name, __package__)
19+
if module_name == f".{attr_name}":
20+
return module
21+
else:
22+
return getattr(module, attr_name)
23+
except ImportError as e:
24+
raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
25+
except AttributeError as e:
26+
raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
27+
28+
29+
def __dir__():
30+
lazy_attrs = list(_dynamic_imports.keys())
31+
return sorted(lazy_attrs)
32+
33+
34+
__all__ = ["ActionsListRequestRegistry"]

src/pipedream/actions/client.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from ..types.run_action_opts_stash_id import RunActionOptsStashId
1313
from ..types.run_action_response import RunActionResponse
1414
from .raw_client import AsyncRawActionsClient, RawActionsClient
15+
from .types.actions_list_request_registry import ActionsListRequestRegistry
1516

1617
# this is used as the default value for optional parameters
1718
OMIT = typing.cast(typing.Any, ...)
@@ -40,6 +41,7 @@ def list(
4041
limit: typing.Optional[int] = None,
4142
q: typing.Optional[str] = None,
4243
app: typing.Optional[str] = None,
44+
registry: typing.Optional[ActionsListRequestRegistry] = None,
4345
request_options: typing.Optional[RequestOptions] = None,
4446
) -> SyncPager[Component]:
4547
"""
@@ -62,6 +64,9 @@ def list(
6264
app : typing.Optional[str]
6365
The ID or name slug of the app to filter the actions
6466
67+
registry : typing.Optional[ActionsListRequestRegistry]
68+
The registry to retrieve actions from. Defaults to 'all' ('public', 'private', or 'all')
69+
6570
request_options : typing.Optional[RequestOptions]
6671
Request-specific configuration.
6772
@@ -86,6 +91,7 @@ def list(
8691
limit=1,
8792
q="q",
8893
app="app",
94+
registry="public",
8995
)
9096
for item in response:
9197
yield item
@@ -94,7 +100,7 @@ def list(
94100
yield page
95101
"""
96102
return self._raw_client.list(
97-
after=after, before=before, limit=limit, q=q, app=app, request_options=request_options
103+
after=after, before=before, limit=limit, q=q, app=app, registry=registry, request_options=request_options
98104
)
99105

100106
def retrieve(
@@ -386,6 +392,7 @@ async def list(
386392
limit: typing.Optional[int] = None,
387393
q: typing.Optional[str] = None,
388394
app: typing.Optional[str] = None,
395+
registry: typing.Optional[ActionsListRequestRegistry] = None,
389396
request_options: typing.Optional[RequestOptions] = None,
390397
) -> AsyncPager[Component]:
391398
"""
@@ -408,6 +415,9 @@ async def list(
408415
app : typing.Optional[str]
409416
The ID or name slug of the app to filter the actions
410417
418+
registry : typing.Optional[ActionsListRequestRegistry]
419+
The registry to retrieve actions from. Defaults to 'all' ('public', 'private', or 'all')
420+
411421
request_options : typing.Optional[RequestOptions]
412422
Request-specific configuration.
413423
@@ -437,6 +447,7 @@ async def main() -> None:
437447
limit=1,
438448
q="q",
439449
app="app",
450+
registry="public",
440451
)
441452
async for item in response:
442453
yield item
@@ -449,7 +460,7 @@ async def main() -> None:
449460
asyncio.run(main())
450461
"""
451462
return await self._raw_client.list(
452-
after=after, before=before, limit=limit, q=q, app=app, request_options=request_options
463+
after=after, before=before, limit=limit, q=q, app=app, registry=registry, request_options=request_options
453464
)
454465

455466
async def retrieve(

src/pipedream/actions/raw_client.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from ..types.reload_props_response import ReloadPropsResponse
2121
from ..types.run_action_opts_stash_id import RunActionOptsStashId
2222
from ..types.run_action_response import RunActionResponse
23+
from .types.actions_list_request_registry import ActionsListRequestRegistry
2324

2425
# this is used as the default value for optional parameters
2526
OMIT = typing.cast(typing.Any, ...)
@@ -37,6 +38,7 @@ def list(
3738
limit: typing.Optional[int] = None,
3839
q: typing.Optional[str] = None,
3940
app: typing.Optional[str] = None,
41+
registry: typing.Optional[ActionsListRequestRegistry] = None,
4042
request_options: typing.Optional[RequestOptions] = None,
4143
) -> SyncPager[Component]:
4244
"""
@@ -59,6 +61,9 @@ def list(
5961
app : typing.Optional[str]
6062
The ID or name slug of the app to filter the actions
6163
64+
registry : typing.Optional[ActionsListRequestRegistry]
65+
The registry to retrieve actions from. Defaults to 'all' ('public', 'private', or 'all')
66+
6267
request_options : typing.Optional[RequestOptions]
6368
Request-specific configuration.
6469
@@ -76,6 +81,7 @@ def list(
7681
"limit": limit,
7782
"q": q,
7883
"app": app,
84+
"registry": registry,
7985
},
8086
request_options=request_options,
8187
)
@@ -100,6 +106,7 @@ def list(
100106
limit=limit,
101107
q=q,
102108
app=app,
109+
registry=registry,
103110
request_options=request_options,
104111
)
105112
return SyncPager(
@@ -474,6 +481,7 @@ async def list(
474481
limit: typing.Optional[int] = None,
475482
q: typing.Optional[str] = None,
476483
app: typing.Optional[str] = None,
484+
registry: typing.Optional[ActionsListRequestRegistry] = None,
477485
request_options: typing.Optional[RequestOptions] = None,
478486
) -> AsyncPager[Component]:
479487
"""
@@ -496,6 +504,9 @@ async def list(
496504
app : typing.Optional[str]
497505
The ID or name slug of the app to filter the actions
498506
507+
registry : typing.Optional[ActionsListRequestRegistry]
508+
The registry to retrieve actions from. Defaults to 'all' ('public', 'private', or 'all')
509+
499510
request_options : typing.Optional[RequestOptions]
500511
Request-specific configuration.
501512
@@ -513,6 +524,7 @@ async def list(
513524
"limit": limit,
514525
"q": q,
515526
"app": app,
527+
"registry": registry,
516528
},
517529
request_options=request_options,
518530
)
@@ -539,6 +551,7 @@ async def _get_next():
539551
limit=limit,
540552
q=q,
541553
app=app,
554+
registry=registry,
542555
request_options=request_options,
543556
)
544557

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
# isort: skip_file
4+
5+
import typing
6+
from importlib import import_module
7+
8+
if typing.TYPE_CHECKING:
9+
from .actions_list_request_registry import ActionsListRequestRegistry
10+
_dynamic_imports: typing.Dict[str, str] = {"ActionsListRequestRegistry": ".actions_list_request_registry"}
11+
12+
13+
def __getattr__(attr_name: str) -> typing.Any:
14+
module_name = _dynamic_imports.get(attr_name)
15+
if module_name is None:
16+
raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
17+
try:
18+
module = import_module(module_name, __package__)
19+
if module_name == f".{attr_name}":
20+
return module
21+
else:
22+
return getattr(module, attr_name)
23+
except ImportError as e:
24+
raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
25+
except AttributeError as e:
26+
raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
27+
28+
29+
def __dir__():
30+
lazy_attrs = list(_dynamic_imports.keys())
31+
return sorted(lazy_attrs)
32+
33+
34+
__all__ = ["ActionsListRequestRegistry"]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
import typing
4+
5+
ActionsListRequestRegistry = typing.Union[typing.Literal["public", "private", "all"], typing.Any]

src/pipedream/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import typing
77

88
import httpx
9-
from .types.project_environment import ProjectEnvironment
9+
from ._.types.project_environment import ProjectEnvironment
1010
from .core.api_error import ApiError
1111
from .core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
1212
from .core.oauth_token_provider import OAuthTokenProvider

src/pipedream/components/__init__.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,33 @@
22

33
# isort: skip_file
44

5+
import typing
6+
from importlib import import_module
7+
8+
if typing.TYPE_CHECKING:
9+
from .types import ComponentsListRequestRegistry
10+
_dynamic_imports: typing.Dict[str, str] = {"ComponentsListRequestRegistry": ".types"}
11+
12+
13+
def __getattr__(attr_name: str) -> typing.Any:
14+
module_name = _dynamic_imports.get(attr_name)
15+
if module_name is None:
16+
raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
17+
try:
18+
module = import_module(module_name, __package__)
19+
if module_name == f".{attr_name}":
20+
return module
21+
else:
22+
return getattr(module, attr_name)
23+
except ImportError as e:
24+
raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
25+
except AttributeError as e:
26+
raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
27+
28+
29+
def __dir__():
30+
lazy_attrs = list(_dynamic_imports.keys())
31+
return sorted(lazy_attrs)
32+
33+
34+
__all__ = ["ComponentsListRequestRegistry"]

0 commit comments

Comments
 (0)