pipe2 0.3.0__tar.gz → 0.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. {pipe2-0.3.0 → pipe2-0.4.0}/.gitignore +3 -0
  2. {pipe2-0.3.0 → pipe2-0.4.0}/PKG-INFO +1 -1
  3. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/__init__.py +3 -0
  4. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/client.py +41 -0
  5. pipe2-0.4.0/pipe2/generated/get_pipelines_list.py +29 -0
  6. {pipe2-0.3.0 → pipe2-0.4.0}/pyproject.toml +1 -1
  7. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/__init__.py +0 -0
  8. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/client.py +0 -0
  9. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/abort_multipart_upload.py +0 -0
  10. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/add_affiliate_code.py +0 -0
  11. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/async_base_client.py +0 -0
  12. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/base_model.py +0 -0
  13. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/cancel_account_deletion.py +0 -0
  14. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/cancel_pipeline_run.py +0 -0
  15. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/cancel_subscription.py +0 -0
  16. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/change_avatar.py +0 -0
  17. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/change_name.py +0 -0
  18. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/change_password.py +0 -0
  19. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/complete_multipart_upload.py +0 -0
  20. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/confirm_account_deletion.py +0 -0
  21. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/create_asset.py +0 -0
  22. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/create_personal_access_token.py +0 -0
  23. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/delete_asset_action.py +0 -0
  24. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/ensure_affiliate.py +0 -0
  25. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/enums.py +0 -0
  26. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/estimate_pipeline_cost.py +0 -0
  27. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/exceptions.py +0 -0
  28. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/get_active_pipeline_runs.py +0 -0
  29. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/get_asset_thumbnail.py +0 -0
  30. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/get_asset_thumbnails_by_ids.py +0 -0
  31. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/get_credit_balance.py +0 -0
  32. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/get_credit_history.py +0 -0
  33. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/get_credit_packs.py +0 -0
  34. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/get_current_user.py +0 -0
  35. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/get_my_affiliate.py +0 -0
  36. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/get_my_affiliate_codes.py +0 -0
  37. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/get_my_api_keys.py +0 -0
  38. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/get_my_referrals.py +0 -0
  39. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/get_my_storage_usage.py +0 -0
  40. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/get_notifications.py +0 -0
  41. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/get_pipeline_run.py +0 -0
  42. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/get_pipeline_runs.py +0 -0
  43. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/get_pipeline_runs_by_slug.py +0 -0
  44. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/get_pipelines.py +0 -0
  45. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/get_pipelines_pricing.py +0 -0
  46. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/get_plans.py +0 -0
  47. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/get_subscription.py +0 -0
  48. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/get_user_assets.py +0 -0
  49. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/init_login_flow.py +0 -0
  50. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/init_recovery_flow.py +0 -0
  51. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/init_signup_flow.py +0 -0
  52. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/init_verification_flow.py +0 -0
  53. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/input_types.py +0 -0
  54. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/mark_all_notifications_read.py +0 -0
  55. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/mark_notification_read.py +0 -0
  56. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/request_account_deletion.py +0 -0
  57. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/request_avatar_upload.py +0 -0
  58. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/request_multipart_upload.py +0 -0
  59. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/request_upload.py +0 -0
  60. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/revoke_personal_access_token.py +0 -0
  61. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/run_pipeline.py +0 -0
  62. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/submit_login_flow.py +0 -0
  63. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/submit_recovery_flow.py +0 -0
  64. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/submit_signup_flow.py +0 -0
  65. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/submit_social_login.py +0 -0
  66. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/submit_verification_code.py +0 -0
  67. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/update_asset_tags.py +0 -0
  68. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/watch_active_pipeline_runs.py +0 -0
  69. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/watch_notifications.py +0 -0
  70. {pipe2-0.3.0 → pipe2-0.4.0}/pipe2/generated/watch_pipeline_run.py +0 -0
@@ -57,3 +57,6 @@ packages/pipe2-cli/reel-out/
57
57
  # as Go packages. Scratch planning files, not shipped content; the web
58
58
  # cookbook loader skips them. Kept local, never committed.
59
59
  packages/pipe2-cli/cookbook/_drafts/
60
+
61
+ # Local cli-proxy stub for dev bring-up (see docs/dev-bringup.md) — never committed
62
+ .devstub/
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pipe2
3
- Version: 0.3.0
3
+ Version: 0.4.0
4
4
  Summary: Pipe2.ai Python SDK — typed GraphQL client
5
5
  Requires-Python: >=3.10
6
6
  Requires-Dist: httpx>=0.25
@@ -138,6 +138,7 @@ from .get_pipeline_runs_by_slug import (
138
138
  GetPipelineRunsBySlugPipelineRunsWorkflowExecution,
139
139
  )
140
140
  from .get_pipelines import GetPipelines, GetPipelinesPipelines
141
+ from .get_pipelines_list import GetPipelinesList, GetPipelinesListPipelines
141
142
  from .get_pipelines_pricing import GetPipelinesPricing, GetPipelinesPricingPipelines
142
143
  from .get_plans import GetPlans, GetPlansPlans, GetPlansPlansVersions
143
144
  from .get_subscription import (
@@ -420,6 +421,8 @@ __all__ = [
420
421
  "GetPipelineRunsPipelineRunsPipeline",
421
422
  "GetPipelineRunsPipelineRunsWorkflowExecution",
422
423
  "GetPipelines",
424
+ "GetPipelinesList",
425
+ "GetPipelinesListPipelines",
423
426
  "GetPipelinesPipelines",
424
427
  "GetPipelinesPricing",
425
428
  "GetPipelinesPricingPipelines",
@@ -38,6 +38,7 @@ from .get_pipeline_run import GetPipelineRun
38
38
  from .get_pipeline_runs import GetPipelineRuns
39
39
  from .get_pipeline_runs_by_slug import GetPipelineRunsBySlug
40
40
  from .get_pipelines import GetPipelines
41
+ from .get_pipelines_list import GetPipelinesList
41
42
  from .get_pipelines_pricing import GetPipelinesPricing
42
43
  from .get_plans import GetPlans
43
44
  from .get_subscription import GetSubscription
@@ -1026,6 +1027,46 @@ class Pipe2GraphQLClient(AsyncBaseClient):
1026
1027
  data = self.get_data(response)
1027
1028
  return GetPipelines.model_validate(data)
1028
1029
 
1030
+ async def get_pipelines_list(
1031
+ self,
1032
+ limit: Union[Optional[int], UnsetType] = UNSET,
1033
+ offset: Union[Optional[int], UnsetType] = UNSET,
1034
+ **kwargs: Any,
1035
+ ) -> GetPipelinesList:
1036
+ query = gql("""
1037
+ query GetPipelinesList($limit: Int = 20, $offset: Int = 0) {
1038
+ pipelines(
1039
+ where: {is_active: {_eq: true}}
1040
+ order_by: {sort_order: asc}
1041
+ limit: $limit
1042
+ offset: $offset
1043
+ ) {
1044
+ id
1045
+ slug
1046
+ name
1047
+ description
1048
+ category
1049
+ icon_url
1050
+ preview_url
1051
+ providers
1052
+ models
1053
+ tags
1054
+ hints
1055
+ pricing
1056
+ cancellable
1057
+ }
1058
+ }
1059
+ """)
1060
+ variables: dict[str, object] = {"limit": limit, "offset": offset}
1061
+ response = await self.execute(
1062
+ query=query,
1063
+ operation_name="GetPipelinesList",
1064
+ variables=variables,
1065
+ **kwargs,
1066
+ )
1067
+ data = self.get_data(response)
1068
+ return GetPipelinesList.model_validate(data)
1069
+
1029
1070
  async def get_pipelines_pricing(
1030
1071
  self, slugs: list[str], **kwargs: Any
1031
1072
  ) -> GetPipelinesPricing:
@@ -0,0 +1,29 @@
1
+ # Generated by ariadne-codegen
2
+ # Source: ../graphql/operations/
3
+
4
+ from typing import Any, Optional
5
+
6
+ from .base_model import BaseModel
7
+
8
+
9
+ class GetPipelinesList(BaseModel):
10
+ pipelines: list["GetPipelinesListPipelines"]
11
+
12
+
13
+ class GetPipelinesListPipelines(BaseModel):
14
+ id: Any
15
+ slug: str
16
+ name: str
17
+ description: Optional[str]
18
+ category: str
19
+ icon_url: Optional[str]
20
+ preview_url: Optional[str]
21
+ providers: list[str]
22
+ models: list[str]
23
+ tags: list[str]
24
+ hints: Any
25
+ pricing: Any
26
+ cancellable: bool
27
+
28
+
29
+ GetPipelinesList.model_rebuild()
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pipe2"
3
- version = "0.3.0"
3
+ version = "0.4.0"
4
4
  description = "Pipe2.ai Python SDK — typed GraphQL client"
5
5
  requires-python = ">=3.10"
6
6
  dependencies = ["httpx>=0.25", "pydantic>=2.0"]
File without changes
File without changes
File without changes