fal 0.11.2__tar.gz → 0.11.3__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.

Potentially problematic release.


This version of fal might be problematic. Click here for more details.

Files changed (139) hide show
  1. {fal-0.11.2 → fal-0.11.3}/PKG-INFO +40 -3
  2. fal-0.11.3/README.md +43 -0
  3. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/admin/handle_user_lock.py +6 -2
  4. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/applications/get_status_applications_app_user_id_app_alias_or_id_status_get.py +6 -2
  5. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/billing/delete_payment_method.py +9 -3
  6. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/billing/get_setup_intent_key.py +6 -2
  7. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/billing/get_user_price.py +6 -2
  8. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/billing/get_user_spending.py +6 -2
  9. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/billing/handle_stripe_webhook.py +21 -7
  10. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/billing/upcoming_invoice.py +6 -2
  11. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/billing/update_customer_budget.py +6 -2
  12. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/files/check_dir_hash.py +9 -3
  13. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/files/delete.py +6 -2
  14. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/files/download.py +6 -2
  15. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/files/file_exists.py +6 -2
  16. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/files/upload_from_url.py +6 -2
  17. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/files/upload_local_file.py +9 -3
  18. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/keys/create_key.py +6 -2
  19. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/keys/delete_key.py +6 -2
  20. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/tokens/create_token.py +6 -2
  21. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/usage/get_gateway_request_stats_by_time.py +41 -7
  22. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/usage/per_machine_usage_details.py +3 -1
  23. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/body_upload_file.py +4 -1
  24. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/body_upload_local_file.py +4 -1
  25. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/get_gateway_request_stats_by_time_response_get_gateway_request_stats_by_time.py +15 -5
  26. {fal-0.11.2 → fal-0.11.3}/pyproject.toml +3 -2
  27. {fal-0.11.2 → fal-0.11.3}/setup.py +4 -3
  28. {fal-0.11.2 → fal-0.11.3}/src/fal/api.py +8 -12
  29. {fal-0.11.2 → fal-0.11.3}/src/fal/cli.py +90 -31
  30. {fal-0.11.2 → fal-0.11.3}/src/fal/rest_client.py +1 -0
  31. {fal-0.11.2 → fal-0.11.3}/src/fal/sdk.py +41 -10
  32. {fal-0.11.2 → fal-0.11.3}/src/fal/sync.py +3 -2
  33. {fal-0.11.2 → fal-0.11.3}/src/fal/toolkit/file/file.py +6 -5
  34. fal-0.11.3/src/fal/toolkit/file/providers/r2.py +83 -0
  35. {fal-0.11.2 → fal-0.11.3}/src/fal/toolkit/file/types.py +1 -1
  36. {fal-0.11.2 → fal-0.11.3}/src/fal/toolkit/image/image.py +2 -2
  37. fal-0.11.2/README.md +0 -7
  38. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/__init__.py +0 -0
  39. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/__init__.py +0 -0
  40. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/admin/__init__.py +0 -0
  41. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/admin/get_usage_per_user.py +0 -0
  42. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/applications/__init__.py +0 -0
  43. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/applications/app_metadata.py +0 -0
  44. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/billing/__init__.py +0 -0
  45. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/billing/get_user_details.py +0 -0
  46. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/billing/get_user_invoices.py +0 -0
  47. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/billing/get_user_payment_methods.py +0 -0
  48. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/files/__init__.py +0 -0
  49. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/files/list_directory.py +0 -0
  50. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/files/list_root.py +0 -0
  51. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/health/__init__.py +0 -0
  52. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/health/check.py +0 -0
  53. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/keys/__init__.py +0 -0
  54. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/keys/list_keys.py +0 -0
  55. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/logs/__init__.py +0 -0
  56. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/logs/list_since.py +0 -0
  57. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/requests/__init__.py +0 -0
  58. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/requests/requests.py +0 -0
  59. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/storage/__init__.py +0 -0
  60. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/storage/get_file_link.py +0 -0
  61. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/storage/initiate_upload.py +0 -0
  62. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/storage/upload_file.py +0 -0
  63. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/tokens/__init__.py +0 -0
  64. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/usage/__init__.py +0 -0
  65. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/usage/get_custom_usage_per_machine.py +0 -0
  66. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/usage/get_gateway_request_stats.py +0 -0
  67. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/usage/get_shared_usage_per_app.py +0 -0
  68. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/usage/get_usage_records.py +0 -0
  69. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/api/usage/per_machine_usage.py +0 -0
  70. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/client.py +0 -0
  71. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/errors.py +0 -0
  72. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/__init__.py +0 -0
  73. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/app_metadata_response_app_metadata.py +0 -0
  74. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/body_create_token.py +0 -0
  75. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/customer_details.py +0 -0
  76. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/file_spec.py +0 -0
  77. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/gateway_stats_by_time.py +0 -0
  78. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/gateway_usage_stats.py +0 -0
  79. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/grouped_usage_detail.py +0 -0
  80. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/handle_stripe_webhook_response_handle_stripe_webhook.py +0 -0
  81. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/hash_check.py +0 -0
  82. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/http_validation_error.py +0 -0
  83. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/initiate_upload_info.py +0 -0
  84. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/invoice.py +0 -0
  85. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/invoice_item.py +0 -0
  86. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/key_scope.py +0 -0
  87. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/log_entry.py +0 -0
  88. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/log_entry_labels.py +0 -0
  89. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/new_user_key.py +0 -0
  90. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/payment_method.py +0 -0
  91. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/persisted_usage_record.py +0 -0
  92. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/persisted_usage_record_meta.py +0 -0
  93. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/presigned_upload_url.py +0 -0
  94. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/request_io.py +0 -0
  95. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/request_io_json_input.py +0 -0
  96. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/request_io_json_output.py +0 -0
  97. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/run_type.py +0 -0
  98. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/stats_timeframe.py +0 -0
  99. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/status.py +0 -0
  100. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/status_health.py +0 -0
  101. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/uploaded_file_result.py +0 -0
  102. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/url_file_upload.py +0 -0
  103. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/usage_per_machine_type.py +0 -0
  104. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/usage_per_user.py +0 -0
  105. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/usage_run_detail.py +0 -0
  106. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/user_key_info.py +0 -0
  107. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/models/validation_error.py +0 -0
  108. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/py.typed +0 -0
  109. {fal-0.11.2 → fal-0.11.3}/openapi-fal-rest/openapi_fal_rest/types.py +0 -0
  110. {fal-0.11.2 → fal-0.11.3}/src/fal/__init__.py +0 -0
  111. {fal-0.11.2 → fal-0.11.3}/src/fal/_serialization.py +0 -0
  112. {fal-0.11.2 → fal-0.11.3}/src/fal/apps.py +0 -0
  113. {fal-0.11.2 → fal-0.11.3}/src/fal/auth/__init__.py +0 -0
  114. {fal-0.11.2 → fal-0.11.3}/src/fal/auth/auth0.py +0 -0
  115. {fal-0.11.2 → fal-0.11.3}/src/fal/auth/local.py +0 -0
  116. {fal-0.11.2 → fal-0.11.3}/src/fal/console/__init__.py +0 -0
  117. {fal-0.11.2 → fal-0.11.3}/src/fal/console/icons.py +0 -0
  118. {fal-0.11.2 → fal-0.11.3}/src/fal/console/ux.py +0 -0
  119. {fal-0.11.2 → fal-0.11.3}/src/fal/env.py +0 -0
  120. {fal-0.11.2 → fal-0.11.3}/src/fal/exceptions/__init__.py +0 -0
  121. {fal-0.11.2 → fal-0.11.3}/src/fal/exceptions/_base.py +0 -0
  122. {fal-0.11.2 → fal-0.11.3}/src/fal/exceptions/auth.py +0 -0
  123. {fal-0.11.2 → fal-0.11.3}/src/fal/exceptions/handlers.py +0 -0
  124. {fal-0.11.2 → fal-0.11.3}/src/fal/flags.py +0 -0
  125. {fal-0.11.2 → fal-0.11.3}/src/fal/logging/__init__.py +0 -0
  126. {fal-0.11.2 → fal-0.11.3}/src/fal/logging/datadog.py +0 -0
  127. {fal-0.11.2 → fal-0.11.3}/src/fal/logging/isolate.py +0 -0
  128. {fal-0.11.2 → fal-0.11.3}/src/fal/logging/style.py +0 -0
  129. {fal-0.11.2 → fal-0.11.3}/src/fal/logging/trace.py +0 -0
  130. {fal-0.11.2 → fal-0.11.3}/src/fal/logging/user.py +0 -0
  131. {fal-0.11.2 → fal-0.11.3}/src/fal/toolkit/__init__.py +0 -0
  132. {fal-0.11.2 → fal-0.11.3}/src/fal/toolkit/exceptions.py +0 -0
  133. {fal-0.11.2 → fal-0.11.3}/src/fal/toolkit/file/__init__.py +0 -0
  134. {fal-0.11.2 → fal-0.11.3}/src/fal/toolkit/file/providers/fal.py +0 -0
  135. {fal-0.11.2 → fal-0.11.3}/src/fal/toolkit/file/providers/gcp.py +0 -0
  136. {fal-0.11.2 → fal-0.11.3}/src/fal/toolkit/image/__init__.py +0 -0
  137. {fal-0.11.2 → fal-0.11.3}/src/fal/toolkit/mainify.py +0 -0
  138. {fal-0.11.2 → fal-0.11.3}/src/fal/toolkit/utils/__init__.py +0 -0
  139. {fal-0.11.2 → fal-0.11.3}/src/fal/toolkit/utils/download_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fal
3
- Version: 0.11.2
3
+ Version: 0.11.3
4
4
  Summary: fal is an easy-to-use Serverless Python Framework
5
5
  Author: Features & Labels
6
6
  Author-email: hello@fal.ai
@@ -12,6 +12,7 @@ Classifier: Programming Language :: Python :: 3.10
12
12
  Classifier: Programming Language :: Python :: 3.11
13
13
  Requires-Dist: attrs (>=21.3.0)
14
14
  Requires-Dist: auth0-python (>=4.1.0,<5.0.0)
15
+ Requires-Dist: boto3 (>=1.33.8,<2.0.0)
15
16
  Requires-Dist: click (>=8.1.3,<9.0.0)
16
17
  Requires-Dist: colorama (>=0.4.6,<0.5.0)
17
18
  Requires-Dist: datadog-api-client (==2.12.0)
@@ -21,7 +22,7 @@ Requires-Dist: grpc-interceptor (>=0.15.0,<0.16.0)
21
22
  Requires-Dist: grpcio (>=1.50.0,<2.0.0)
22
23
  Requires-Dist: httpx (>=0.15.4,<0.25.0)
23
24
  Requires-Dist: importlib-metadata (>=4.4) ; python_version < "3.10"
24
- Requires-Dist: isolate-proto (==0.2.0)
25
+ Requires-Dist: isolate-proto (>=0.2.1,<0.3.0)
25
26
  Requires-Dist: isolate[build] (>=0.12.3,<1.0)
26
27
  Requires-Dist: opentelemetry-api (>=1.15.0,<2.0.0)
27
28
  Requires-Dist: opentelemetry-sdk (>=1.15.0,<2.0.0)
@@ -43,5 +44,41 @@ fal is a serverless Python runtime that lets you run and scale code in the cloud
43
44
 
44
45
  With fal, you can build pipelines, serve ML models and scale them up to many users. You scale down to 0 when you don't use any resources.
45
46
 
46
- Check out to the [docs](https://serverless.fal.ai/docs) for more details.
47
+ ## Quickstart
48
+
49
+ First, you need to install the `fal` package. You can do so using pip:
50
+ ```shell
51
+ pip install fal
52
+ ```
53
+
54
+ Then you need to authenticate:
55
+ ```shell
56
+ fal auth login
57
+ ```
58
+
59
+ You can also use fal keys that you can get from [our dashboard](https://fal.ai/dashboard/keys).
60
+
61
+ Now can use the fal package in your Python scripts as follows:
62
+
63
+ ```py
64
+ import fal
65
+
66
+ @fal.function(
67
+ "virtualenv",
68
+ requirements=["pyjokes"],
69
+ )
70
+ def tell_joke() -> str:
71
+ import pyjokes
72
+
73
+ joke = pyjokes.get_joke()
74
+ return joke
75
+
76
+ print("Joke from the clouds: ", tell_joke())
77
+ ```
78
+
79
+ A new virtual environment will be created by fal in the cloud and the set of requirements that we passed will be installed as soon as this function is called. From that point on, our code will be executed as if it were running locally, and the joke prepared by the pyjokes library will be returned.
80
+
81
+ ## Next steps
82
+
83
+ If you would like to find out more about the capabilities of fal, check out to the [docs](https://fal.ai/docs). You can learn more about persistent storage, function caches and deploying your functions as API endpoints.
47
84
 
fal-0.11.3/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # fal
2
+
3
+ fal is a serverless Python runtime that lets you run and scale code in the cloud with no infra management.
4
+
5
+ With fal, you can build pipelines, serve ML models and scale them up to many users. You scale down to 0 when you don't use any resources.
6
+
7
+ ## Quickstart
8
+
9
+ First, you need to install the `fal` package. You can do so using pip:
10
+ ```shell
11
+ pip install fal
12
+ ```
13
+
14
+ Then you need to authenticate:
15
+ ```shell
16
+ fal auth login
17
+ ```
18
+
19
+ You can also use fal keys that you can get from [our dashboard](https://fal.ai/dashboard/keys).
20
+
21
+ Now can use the fal package in your Python scripts as follows:
22
+
23
+ ```py
24
+ import fal
25
+
26
+ @fal.function(
27
+ "virtualenv",
28
+ requirements=["pyjokes"],
29
+ )
30
+ def tell_joke() -> str:
31
+ import pyjokes
32
+
33
+ joke = pyjokes.get_joke()
34
+ return joke
35
+
36
+ print("Joke from the clouds: ", tell_joke())
37
+ ```
38
+
39
+ A new virtual environment will be created by fal in the cloud and the set of requirements that we passed will be installed as soon as this function is called. From that point on, our code will be executed as if it were running locally, and the joke prepared by the pyjokes library will be returned.
40
+
41
+ ## Next steps
42
+
43
+ If you would like to find out more about the capabilities of fal, check out to the [docs](https://fal.ai/docs). You can learn more about persistent storage, function caches and deploying your functions as API endpoints.
@@ -38,7 +38,9 @@ def _get_kwargs(
38
38
  }
39
39
 
40
40
 
41
- def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Union[HTTPValidationError, str]]:
41
+ def _parse_response(
42
+ *, client: Client, response: httpx.Response
43
+ ) -> Optional[Union[HTTPValidationError, str]]:
42
44
  if response.status_code == HTTPStatus.OK:
43
45
  response_200 = cast(str, response.json())
44
46
  return response_200
@@ -52,7 +54,9 @@ def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Uni
52
54
  return None
53
55
 
54
56
 
55
- def _build_response(*, client: Client, response: httpx.Response) -> Response[Union[HTTPValidationError, str]]:
57
+ def _build_response(
58
+ *, client: Client, response: httpx.Response
59
+ ) -> Response[Union[HTTPValidationError, str]]:
56
60
  return Response(
57
61
  status_code=HTTPStatus(response.status_code),
58
62
  content=response.content,
@@ -33,7 +33,9 @@ def _get_kwargs(
33
33
  }
34
34
 
35
35
 
36
- def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Union[HTTPValidationError, Status]]:
36
+ def _parse_response(
37
+ *, client: Client, response: httpx.Response
38
+ ) -> Optional[Union[HTTPValidationError, Status]]:
37
39
  if response.status_code == HTTPStatus.OK:
38
40
  response_200 = Status.from_dict(response.json())
39
41
 
@@ -48,7 +50,9 @@ def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Uni
48
50
  return None
49
51
 
50
52
 
51
- def _build_response(*, client: Client, response: httpx.Response) -> Response[Union[HTTPValidationError, Status]]:
53
+ def _build_response(
54
+ *, client: Client, response: httpx.Response
55
+ ) -> Response[Union[HTTPValidationError, Status]]:
52
56
  return Response(
53
57
  status_code=HTTPStatus(response.status_code),
54
58
  content=response.content,
@@ -14,7 +14,9 @@ def _get_kwargs(
14
14
  *,
15
15
  client: Client,
16
16
  ) -> Dict[str, Any]:
17
- url = "{}/billing/payment_methods/{payment_method_id}".format(client.base_url, payment_method_id=payment_method_id)
17
+ url = "{}/billing/payment_methods/{payment_method_id}".format(
18
+ client.base_url, payment_method_id=payment_method_id
19
+ )
18
20
 
19
21
  headers: Dict[str, str] = client.get_headers()
20
22
  cookies: Dict[str, Any] = client.get_cookies()
@@ -29,7 +31,9 @@ def _get_kwargs(
29
31
  }
30
32
 
31
33
 
32
- def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Union[HTTPValidationError, bool]]:
34
+ def _parse_response(
35
+ *, client: Client, response: httpx.Response
36
+ ) -> Optional[Union[HTTPValidationError, bool]]:
33
37
  if response.status_code == HTTPStatus.OK:
34
38
  response_200 = cast(bool, response.json())
35
39
  return response_200
@@ -43,7 +47,9 @@ def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Uni
43
47
  return None
44
48
 
45
49
 
46
- def _build_response(*, client: Client, response: httpx.Response) -> Response[Union[HTTPValidationError, bool]]:
50
+ def _build_response(
51
+ *, client: Client, response: httpx.Response
52
+ ) -> Response[Union[HTTPValidationError, bool]]:
47
53
  return Response(
48
54
  status_code=HTTPStatus(response.status_code),
49
55
  content=response.content,
@@ -28,7 +28,9 @@ def _get_kwargs(
28
28
  }
29
29
 
30
30
 
31
- def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Union[HTTPValidationError, str]]:
31
+ def _parse_response(
32
+ *, client: Client, response: httpx.Response
33
+ ) -> Optional[Union[HTTPValidationError, str]]:
32
34
  if response.status_code == HTTPStatus.OK:
33
35
  response_200 = cast(str, response.json())
34
36
  return response_200
@@ -42,7 +44,9 @@ def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Uni
42
44
  return None
43
45
 
44
46
 
45
- def _build_response(*, client: Client, response: httpx.Response) -> Response[Union[HTTPValidationError, str]]:
47
+ def _build_response(
48
+ *, client: Client, response: httpx.Response
49
+ ) -> Response[Union[HTTPValidationError, str]]:
46
50
  return Response(
47
51
  status_code=HTTPStatus(response.status_code),
48
52
  content=response.content,
@@ -41,7 +41,9 @@ def _get_kwargs(
41
41
  }
42
42
 
43
43
 
44
- def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Union[HTTPValidationError, float]]:
44
+ def _parse_response(
45
+ *, client: Client, response: httpx.Response
46
+ ) -> Optional[Union[HTTPValidationError, float]]:
45
47
  if response.status_code == HTTPStatus.OK:
46
48
  response_200 = cast(float, response.json())
47
49
  return response_200
@@ -55,7 +57,9 @@ def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Uni
55
57
  return None
56
58
 
57
59
 
58
- def _build_response(*, client: Client, response: httpx.Response) -> Response[Union[HTTPValidationError, float]]:
60
+ def _build_response(
61
+ *, client: Client, response: httpx.Response
62
+ ) -> Response[Union[HTTPValidationError, float]]:
59
63
  return Response(
60
64
  status_code=HTTPStatus(response.status_code),
61
65
  content=response.content,
@@ -47,7 +47,9 @@ def _get_kwargs(
47
47
  }
48
48
 
49
49
 
50
- def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Union[HTTPValidationError, float]]:
50
+ def _parse_response(
51
+ *, client: Client, response: httpx.Response
52
+ ) -> Optional[Union[HTTPValidationError, float]]:
51
53
  if response.status_code == HTTPStatus.OK:
52
54
  response_200 = cast(float, response.json())
53
55
  return response_200
@@ -61,7 +63,9 @@ def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Uni
61
63
  return None
62
64
 
63
65
 
64
- def _build_response(*, client: Client, response: httpx.Response) -> Response[Union[HTTPValidationError, float]]:
66
+ def _build_response(
67
+ *, client: Client, response: httpx.Response
68
+ ) -> Response[Union[HTTPValidationError, float]]:
65
69
  return Response(
66
70
  status_code=HTTPStatus(response.status_code),
67
71
  content=response.content,
@@ -37,9 +37,13 @@ def _get_kwargs(
37
37
 
38
38
  def _parse_response(
39
39
  *, client: Client, response: httpx.Response
40
- ) -> Optional[Union[HTTPValidationError, HandleStripeWebhookResponseHandleStripeWebhook]]:
40
+ ) -> Optional[
41
+ Union[HTTPValidationError, HandleStripeWebhookResponseHandleStripeWebhook]
42
+ ]:
41
43
  if response.status_code == HTTPStatus.OK:
42
- response_200 = HandleStripeWebhookResponseHandleStripeWebhook.from_dict(response.json())
44
+ response_200 = HandleStripeWebhookResponseHandleStripeWebhook.from_dict(
45
+ response.json()
46
+ )
43
47
 
44
48
  return response_200
45
49
  if response.status_code == HTTPStatus.UNPROCESSABLE_ENTITY:
@@ -54,7 +58,9 @@ def _parse_response(
54
58
 
55
59
  def _build_response(
56
60
  *, client: Client, response: httpx.Response
57
- ) -> Response[Union[HTTPValidationError, HandleStripeWebhookResponseHandleStripeWebhook]]:
61
+ ) -> Response[
62
+ Union[HTTPValidationError, HandleStripeWebhookResponseHandleStripeWebhook]
63
+ ]:
58
64
  return Response(
59
65
  status_code=HTTPStatus(response.status_code),
60
66
  content=response.content,
@@ -67,7 +73,9 @@ def sync_detailed(
67
73
  *,
68
74
  client: Client,
69
75
  stripe_signature: Union[Unset, str] = UNSET,
70
- ) -> Response[Union[HTTPValidationError, HandleStripeWebhookResponseHandleStripeWebhook]]:
76
+ ) -> Response[
77
+ Union[HTTPValidationError, HandleStripeWebhookResponseHandleStripeWebhook]
78
+ ]:
71
79
  """Handle Stripe Webhook
72
80
 
73
81
  Args:
@@ -98,7 +106,9 @@ def sync(
98
106
  *,
99
107
  client: Client,
100
108
  stripe_signature: Union[Unset, str] = UNSET,
101
- ) -> Optional[Union[HTTPValidationError, HandleStripeWebhookResponseHandleStripeWebhook]]:
109
+ ) -> Optional[
110
+ Union[HTTPValidationError, HandleStripeWebhookResponseHandleStripeWebhook]
111
+ ]:
102
112
  """Handle Stripe Webhook
103
113
 
104
114
  Args:
@@ -122,7 +132,9 @@ async def asyncio_detailed(
122
132
  *,
123
133
  client: Client,
124
134
  stripe_signature: Union[Unset, str] = UNSET,
125
- ) -> Response[Union[HTTPValidationError, HandleStripeWebhookResponseHandleStripeWebhook]]:
135
+ ) -> Response[
136
+ Union[HTTPValidationError, HandleStripeWebhookResponseHandleStripeWebhook]
137
+ ]:
126
138
  """Handle Stripe Webhook
127
139
 
128
140
  Args:
@@ -151,7 +163,9 @@ async def asyncio(
151
163
  *,
152
164
  client: Client,
153
165
  stripe_signature: Union[Unset, str] = UNSET,
154
- ) -> Optional[Union[HTTPValidationError, HandleStripeWebhookResponseHandleStripeWebhook]]:
166
+ ) -> Optional[
167
+ Union[HTTPValidationError, HandleStripeWebhookResponseHandleStripeWebhook]
168
+ ]:
155
169
  """Handle Stripe Webhook
156
170
 
157
171
  Args:
@@ -29,7 +29,9 @@ def _get_kwargs(
29
29
  }
30
30
 
31
31
 
32
- def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Union[HTTPValidationError, Invoice]]:
32
+ def _parse_response(
33
+ *, client: Client, response: httpx.Response
34
+ ) -> Optional[Union[HTTPValidationError, Invoice]]:
33
35
  if response.status_code == HTTPStatus.OK:
34
36
  response_200 = Invoice.from_dict(response.json())
35
37
 
@@ -44,7 +46,9 @@ def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Uni
44
46
  return None
45
47
 
46
48
 
47
- def _build_response(*, client: Client, response: httpx.Response) -> Response[Union[HTTPValidationError, Invoice]]:
49
+ def _build_response(
50
+ *, client: Client, response: httpx.Response
51
+ ) -> Response[Union[HTTPValidationError, Invoice]]:
48
52
  return Response(
49
53
  status_code=HTTPStatus(response.status_code),
50
54
  content=response.content,
@@ -38,7 +38,9 @@ def _get_kwargs(
38
38
  }
39
39
 
40
40
 
41
- def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Union[Any, HTTPValidationError]]:
41
+ def _parse_response(
42
+ *, client: Client, response: httpx.Response
43
+ ) -> Optional[Union[Any, HTTPValidationError]]:
42
44
  if response.status_code == HTTPStatus.OK:
43
45
  response_200 = cast(Any, response.json())
44
46
  return response_200
@@ -52,7 +54,9 @@ def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Uni
52
54
  return None
53
55
 
54
56
 
55
- def _build_response(*, client: Client, response: httpx.Response) -> Response[Union[Any, HTTPValidationError]]:
57
+ def _build_response(
58
+ *, client: Client, response: httpx.Response
59
+ ) -> Response[Union[Any, HTTPValidationError]]:
56
60
  return Response(
57
61
  status_code=HTTPStatus(response.status_code),
58
62
  content=response.content,
@@ -16,7 +16,9 @@ def _get_kwargs(
16
16
  client: Client,
17
17
  json_body: HashCheck,
18
18
  ) -> Dict[str, Any]:
19
- url = "{}/files/dir/check_hash/{target_path}".format(client.base_url, target_path=target_path)
19
+ url = "{}/files/dir/check_hash/{target_path}".format(
20
+ client.base_url, target_path=target_path
21
+ )
20
22
 
21
23
  headers: Dict[str, str] = client.get_headers()
22
24
  cookies: Dict[str, Any] = client.get_cookies()
@@ -34,7 +36,9 @@ def _get_kwargs(
34
36
  }
35
37
 
36
38
 
37
- def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Union[HTTPValidationError, bool]]:
39
+ def _parse_response(
40
+ *, client: Client, response: httpx.Response
41
+ ) -> Optional[Union[HTTPValidationError, bool]]:
38
42
  if response.status_code == HTTPStatus.OK:
39
43
  response_200 = cast(bool, response.json())
40
44
  return response_200
@@ -48,7 +52,9 @@ def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Uni
48
52
  return None
49
53
 
50
54
 
51
- def _build_response(*, client: Client, response: httpx.Response) -> Response[Union[HTTPValidationError, bool]]:
55
+ def _build_response(
56
+ *, client: Client, response: httpx.Response
57
+ ) -> Response[Union[HTTPValidationError, bool]]:
52
58
  return Response(
53
59
  status_code=HTTPStatus(response.status_code),
54
60
  content=response.content,
@@ -29,7 +29,9 @@ def _get_kwargs(
29
29
  }
30
30
 
31
31
 
32
- def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Union[HTTPValidationError, bool]]:
32
+ def _parse_response(
33
+ *, client: Client, response: httpx.Response
34
+ ) -> Optional[Union[HTTPValidationError, bool]]:
33
35
  if response.status_code == HTTPStatus.OK:
34
36
  response_200 = cast(bool, response.json())
35
37
  return response_200
@@ -43,7 +45,9 @@ def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Uni
43
45
  return None
44
46
 
45
47
 
46
- def _build_response(*, client: Client, response: httpx.Response) -> Response[Union[HTTPValidationError, bool]]:
48
+ def _build_response(
49
+ *, client: Client, response: httpx.Response
50
+ ) -> Response[Union[HTTPValidationError, bool]]:
47
51
  return Response(
48
52
  status_code=HTTPStatus(response.status_code),
49
53
  content=response.content,
@@ -29,7 +29,9 @@ def _get_kwargs(
29
29
  }
30
30
 
31
31
 
32
- def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Union[Any, HTTPValidationError]]:
32
+ def _parse_response(
33
+ *, client: Client, response: httpx.Response
34
+ ) -> Optional[Union[Any, HTTPValidationError]]:
33
35
  if response.status_code == HTTPStatus.OK:
34
36
  response_200 = cast(Any, response.json())
35
37
  return response_200
@@ -43,7 +45,9 @@ def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Uni
43
45
  return None
44
46
 
45
47
 
46
- def _build_response(*, client: Client, response: httpx.Response) -> Response[Union[Any, HTTPValidationError]]:
48
+ def _build_response(
49
+ *, client: Client, response: httpx.Response
50
+ ) -> Response[Union[Any, HTTPValidationError]]:
47
51
  return Response(
48
52
  status_code=HTTPStatus(response.status_code),
49
53
  content=response.content,
@@ -37,7 +37,9 @@ def _get_kwargs(
37
37
  }
38
38
 
39
39
 
40
- def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Union[FileSpec, HTTPValidationError]]:
40
+ def _parse_response(
41
+ *, client: Client, response: httpx.Response
42
+ ) -> Optional[Union[FileSpec, HTTPValidationError]]:
41
43
  if response.status_code == HTTPStatus.OK:
42
44
  response_200 = FileSpec.from_dict(response.json())
43
45
 
@@ -52,7 +54,9 @@ def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Uni
52
54
  return None
53
55
 
54
56
 
55
- def _build_response(*, client: Client, response: httpx.Response) -> Response[Union[FileSpec, HTTPValidationError]]:
57
+ def _build_response(
58
+ *, client: Client, response: httpx.Response
59
+ ) -> Response[Union[FileSpec, HTTPValidationError]]:
56
60
  return Response(
57
61
  status_code=HTTPStatus(response.status_code),
58
62
  content=response.content,
@@ -34,7 +34,9 @@ def _get_kwargs(
34
34
  }
35
35
 
36
36
 
37
- def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Union[HTTPValidationError, bool]]:
37
+ def _parse_response(
38
+ *, client: Client, response: httpx.Response
39
+ ) -> Optional[Union[HTTPValidationError, bool]]:
38
40
  if response.status_code == HTTPStatus.OK:
39
41
  response_200 = cast(bool, response.json())
40
42
  return response_200
@@ -48,7 +50,9 @@ def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Uni
48
50
  return None
49
51
 
50
52
 
51
- def _build_response(*, client: Client, response: httpx.Response) -> Response[Union[HTTPValidationError, bool]]:
53
+ def _build_response(
54
+ *, client: Client, response: httpx.Response
55
+ ) -> Response[Union[HTTPValidationError, bool]]:
52
56
  return Response(
53
57
  status_code=HTTPStatus(response.status_code),
54
58
  content=response.content,
@@ -17,7 +17,9 @@ def _get_kwargs(
17
17
  multipart_data: BodyUploadLocalFile,
18
18
  unzip: Union[Unset, None, bool] = False,
19
19
  ) -> Dict[str, Any]:
20
- url = "{}/files/file/local/{target_path}".format(client.base_url, target_path=target_path)
20
+ url = "{}/files/file/local/{target_path}".format(
21
+ client.base_url, target_path=target_path
22
+ )
21
23
 
22
24
  headers: Dict[str, str] = client.get_headers()
23
25
  cookies: Dict[str, Any] = client.get_cookies()
@@ -41,7 +43,9 @@ def _get_kwargs(
41
43
  }
42
44
 
43
45
 
44
- def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Union[HTTPValidationError, bool]]:
46
+ def _parse_response(
47
+ *, client: Client, response: httpx.Response
48
+ ) -> Optional[Union[HTTPValidationError, bool]]:
45
49
  if response.status_code == HTTPStatus.OK:
46
50
  response_200 = cast(bool, response.json())
47
51
  return response_200
@@ -55,7 +59,9 @@ def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Uni
55
59
  return None
56
60
 
57
61
 
58
- def _build_response(*, client: Client, response: httpx.Response) -> Response[Union[HTTPValidationError, bool]]:
62
+ def _build_response(
63
+ *, client: Client, response: httpx.Response
64
+ ) -> Response[Union[HTTPValidationError, bool]]:
59
65
  return Response(
60
66
  status_code=HTTPStatus(response.status_code),
61
67
  content=response.content,
@@ -42,7 +42,9 @@ def _get_kwargs(
42
42
  }
43
43
 
44
44
 
45
- def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Union[HTTPValidationError, NewUserKey]]:
45
+ def _parse_response(
46
+ *, client: Client, response: httpx.Response
47
+ ) -> Optional[Union[HTTPValidationError, NewUserKey]]:
46
48
  if response.status_code == HTTPStatus.CREATED:
47
49
  response_201 = NewUserKey.from_dict(response.json())
48
50
 
@@ -57,7 +59,9 @@ def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Uni
57
59
  return None
58
60
 
59
61
 
60
- def _build_response(*, client: Client, response: httpx.Response) -> Response[Union[HTTPValidationError, NewUserKey]]:
62
+ def _build_response(
63
+ *, client: Client, response: httpx.Response
64
+ ) -> Response[Union[HTTPValidationError, NewUserKey]]:
61
65
  return Response(
62
66
  status_code=HTTPStatus(response.status_code),
63
67
  content=response.content,
@@ -29,7 +29,9 @@ def _get_kwargs(
29
29
  }
30
30
 
31
31
 
32
- def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Union[Any, HTTPValidationError]]:
32
+ def _parse_response(
33
+ *, client: Client, response: httpx.Response
34
+ ) -> Optional[Union[Any, HTTPValidationError]]:
33
35
  if response.status_code == HTTPStatus.NO_CONTENT:
34
36
  response_204 = cast(Any, None)
35
37
  return response_204
@@ -43,7 +45,9 @@ def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Uni
43
45
  return None
44
46
 
45
47
 
46
- def _build_response(*, client: Client, response: httpx.Response) -> Response[Union[Any, HTTPValidationError]]:
48
+ def _build_response(
49
+ *, client: Client, response: httpx.Response
50
+ ) -> Response[Union[Any, HTTPValidationError]]:
47
51
  return Response(
48
52
  status_code=HTTPStatus(response.status_code),
49
53
  content=response.content,
@@ -33,7 +33,9 @@ def _get_kwargs(
33
33
  }
34
34
 
35
35
 
36
- def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Union[HTTPValidationError, str]]:
36
+ def _parse_response(
37
+ *, client: Client, response: httpx.Response
38
+ ) -> Optional[Union[HTTPValidationError, str]]:
37
39
  if response.status_code == HTTPStatus.CREATED:
38
40
  response_201 = cast(str, response.json())
39
41
  return response_201
@@ -47,7 +49,9 @@ def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Uni
47
49
  return None
48
50
 
49
51
 
50
- def _build_response(*, client: Client, response: httpx.Response) -> Response[Union[HTTPValidationError, str]]:
52
+ def _build_response(
53
+ *, client: Client, response: httpx.Response
54
+ ) -> Response[Union[HTTPValidationError, str]]:
51
55
  return Response(
52
56
  status_code=HTTPStatus(response.status_code),
53
57
  content=response.content,