prefect-client 2.20.16__py3-none-any.whl → 2.20.18__py3-none-any.whl

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.
prefect/settings.py CHANGED
@@ -1310,6 +1310,36 @@ compromise. Adjust this setting based on your specific security requirements
1310
1310
  and usage patterns.
1311
1311
  """
1312
1312
 
1313
+ PREFECT_SERVER_CORS_ALLOWED_ORIGINS = Setting(
1314
+ str,
1315
+ default="*",
1316
+ )
1317
+ """
1318
+ A comma-separated list of origins that are authorized to make cross-origin requests to the API.
1319
+
1320
+ By default, this is set to `*`, which allows requests from all origins.
1321
+ """
1322
+
1323
+ PREFECT_SERVER_CORS_ALLOWED_METHODS = Setting(
1324
+ str,
1325
+ default="*",
1326
+ )
1327
+ """
1328
+ A comma-separated list of methods that are authorized to make cross-origin requests to the API.
1329
+
1330
+ By default, this is set to `*`, which allows requests with all methods.
1331
+ """
1332
+
1333
+ PREFECT_SERVER_CORS_ALLOWED_HEADERS = Setting(
1334
+ str,
1335
+ default="*",
1336
+ )
1337
+ """
1338
+ A comma-separated list of headers that are authorized to make cross-origin requests to the API.
1339
+
1340
+ By default, this is set to `*`, which allows requests with all headers.
1341
+ """
1342
+
1313
1343
  PREFECT_UI_ENABLED = Setting(
1314
1344
  bool,
1315
1345
  default=True,
@@ -379,16 +379,17 @@ def generate_parameter_schema(
379
379
  model_fields = {}
380
380
  aliases = {}
381
381
 
382
- class ModelConfig:
383
- arbitrary_types_allowed = True
384
-
385
382
  if HAS_PYDANTIC_V2 and not has_v1_type_as_param(signature):
386
383
  create_schema = create_v2_schema
387
384
  process_params = process_v2_params
385
+ ModelConfig = pydantic.ConfigDict(arbitrary_types_allowed=True)
388
386
  else:
389
387
  create_schema = create_v1_schema
390
388
  process_params = process_v1_params
391
389
 
390
+ class ModelConfig:
391
+ arbitrary_types_allowed = True
392
+
392
393
  for position, param in enumerate(signature.parameters.values()):
393
394
  name, type_, field = process_params(
394
395
  param, position=position, docstrings=docstrings, aliases=aliases
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: prefect-client
3
- Version: 2.20.16
3
+ Version: 2.20.18
4
4
  Summary: Workflow orchestration and management.
5
5
  Home-page: https://www.prefect.io
6
6
  Author: Prefect Technologies, Inc.
@@ -61,6 +61,18 @@ Requires-Dist: itsdangerous
61
61
  Requires-Dist: python-multipart>=0.0.7
62
62
  Provides-Extra: notifications
63
63
  Requires-Dist: apprise<2.0.0,>=1.1.0; extra == "notifications"
64
+ Dynamic: author
65
+ Dynamic: author-email
66
+ Dynamic: classifier
67
+ Dynamic: description
68
+ Dynamic: description-content-type
69
+ Dynamic: home-page
70
+ Dynamic: license-file
71
+ Dynamic: project-url
72
+ Dynamic: provides-extra
73
+ Dynamic: requires-dist
74
+ Dynamic: requires-python
75
+ Dynamic: summary
64
76
 
65
77
  <p align="center"><img src="https://github.com/PrefectHQ/prefect/assets/3407835/c654cbc6-63e8-4ada-a92a-efd2f8f24b85" width=1000></p>
66
78
 
@@ -19,7 +19,7 @@ prefect/profiles.toml,sha256=Fs8hD_BdWHZgAijgk8pK_Zx-Pm-YFixqDIfEP6fM-qU,38
19
19
  prefect/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  prefect/results.py,sha256=JXuySIfJb9weg49A2YsI3ZxoPoAAYcXn7ajui_8vMbE,25502
21
21
  prefect/serializers.py,sha256=MsMTPgo6APq-pN1pcLD9COdVFnBS9E3WaMuaKgpeJdQ,8821
22
- prefect/settings.py,sha256=hQw2VtosFrWG_Q1w8WbodS6MIZBtX-QcGZz-hZfhp-g,75373
22
+ prefect/settings.py,sha256=Uz-NbP7KNLGVdJi_mhMTT_XHtJIZykWRcnkgNNtmoI0,76132
23
23
  prefect/states.py,sha256=B38zIXnqc8cmw3GPxmMQ4thX6pXb6UtG4PoTZ5thGQs,21036
24
24
  prefect/task_engine.py,sha256=_2I7XLwoT_nNhpzTMa_52aQKjsDoaW6WpzwIHYEWZS0,2598
25
25
  prefect/task_runners.py,sha256=HXUg5UqhZRN2QNBqMdGE1lKhwFhT8TaRN75ScgLbnw8,11012
@@ -258,7 +258,7 @@ prefect/types/__init__.py,sha256=aZvlQ2uXl949sJ_khmxSVkRH3o6edo-eJ_GBGMBN5Yg,313
258
258
  prefect/utilities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
259
259
  prefect/utilities/annotations.py,sha256=bXB43j5Zsq5gaBcJe9qnszBlnNwCTwqSTgcu2OkkRLo,2776
260
260
  prefect/utilities/asyncutils.py,sha256=ftu6MaV9qOZ3oCIErrneW07km2BydCezOMzvPUuCMUo,17246
261
- prefect/utilities/callables.py,sha256=WUf2sGTyrFvl_s_JdIPg3ZX2iVl9CuH3NJ0ErOdPIOE,21063
261
+ prefect/utilities/callables.py,sha256=MBDCAAHDfxjsJUWJ-2ySGOMJuDWuUbV7CpcKVFrB3yk,21143
262
262
  prefect/utilities/collections.py,sha256=0v-NNXxYYzkUTCCNDMNB44AnDv9yj35UYouNraCqlo8,15449
263
263
  prefect/utilities/compat.py,sha256=mNQZDnzyKaOqy-OV-DnmH_dc7CNF5nQgW_EsA4xMr7g,906
264
264
  prefect/utilities/context.py,sha256=BThuUW94-IYgFYTeMIM9KMo8ShT3oiI7w5ajZHzU1j0,1377
@@ -289,8 +289,8 @@ prefect/workers/block.py,sha256=aYY__uq3v1eq1kkbVukxyhQNbkknaKYo6-_3tcrfKKA,8067
289
289
  prefect/workers/process.py,sha256=pPtCdA7fKQ4OsvoitT-cayZeh5HgLX4xBUYlb2Zad-Q,9475
290
290
  prefect/workers/server.py,sha256=WVZJxR8nTMzK0ov0BD0xw5OyQpT26AxlXbsGQ1OrxeQ,1551
291
291
  prefect/workers/utilities.py,sha256=VfPfAlGtTuDj0-Kb8WlMgAuOfgXCdrGAnKMapPSBrwc,2483
292
- prefect_client-2.20.16.dist-info/LICENSE,sha256=MCxsn8osAkzfxKC4CC_dLcUkU8DZLkyihZ8mGs3Ah3Q,11357
293
- prefect_client-2.20.16.dist-info/METADATA,sha256=YEumdbpwNB9VuTz0z6G43vx6LXaOCqctKgTGcAEwWqA,7392
294
- prefect_client-2.20.16.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
295
- prefect_client-2.20.16.dist-info/top_level.txt,sha256=MJZYJgFdbRc2woQCeB4vM6T33tr01TmkEhRcns6H_H4,8
296
- prefect_client-2.20.16.dist-info/RECORD,,
292
+ prefect_client-2.20.18.dist-info/licenses/LICENSE,sha256=MCxsn8osAkzfxKC4CC_dLcUkU8DZLkyihZ8mGs3Ah3Q,11357
293
+ prefect_client-2.20.18.dist-info/METADATA,sha256=QUPxtf1ZBLu9xBAAmtGhXKNzi1X_sXDqJHm4qkjB6Ms,7656
294
+ prefect_client-2.20.18.dist-info/WHEEL,sha256=wXxTzcEDnjrTwFYjLPcsW_7_XihufBwmpiBeiXNBGEA,91
295
+ prefect_client-2.20.18.dist-info/top_level.txt,sha256=MJZYJgFdbRc2woQCeB4vM6T33tr01TmkEhRcns6H_H4,8
296
+ prefect_client-2.20.18.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.6.0)
2
+ Generator: setuptools (80.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5