polyapi-python 0.2.5.dev10__py3-none-any.whl → 0.2.5.dev11__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.
polyapi/function_cli.py CHANGED
@@ -13,7 +13,6 @@ from importlib.metadata import packages_distributions
13
13
  from polyapi.generate import get_functions_and_parse, generate_functions
14
14
  from polyapi.config import get_api_key_and_url
15
15
  from polyapi.constants import PYTHON_TO_JSONSCHEMA_TYPE_MAP
16
- # from polyapi.rendered_spec import update_rendered_spec
17
16
  from polyapi.utils import get_auth_headers, print_green, print_red, print_yellow
18
17
  import importlib
19
18
 
@@ -271,7 +270,6 @@ def function_add_or_update(
271
270
  print(f"Function ID: {function_id}")
272
271
  print("Generating new custom function...", end="")
273
272
  functions = get_functions_and_parse(limit_ids=[function_id])
274
- # update_rendered_spec(functions[0])
275
273
  generate_functions(functions)
276
274
  print_green("DONE")
277
275
  else:
polyapi/rendered_spec.py CHANGED
@@ -19,6 +19,8 @@ def update_rendered_spec(api_key: str, spec: SpecificationDto):
19
19
  data["apiFunctionId"] = spec["id"]
20
20
  elif spec["type"] == "serverFunction":
21
21
  data["customFunctionId"] = spec["id"]
22
+ elif spec["type"] == "clientFunction":
23
+ data["customFunctionId"] = spec["id"]
22
24
  else:
23
25
  raise NotImplementedError("todo")
24
26
 
@@ -31,7 +33,6 @@ def update_rendered_spec(api_key: str, spec: SpecificationDto):
31
33
  headers = {"Authorization": f"Bearer {api_key}"}
32
34
  resp = requests.post(url, json=data, headers=headers)
33
35
  assert resp.status_code == 201, (resp.text, resp.status_code)
34
- # this needs to run with something like `kn func run...`
35
36
 
36
37
 
37
38
  def _get_spec(api_key: str, spec_id: str) -> Optional[SpecificationDto]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: polyapi-python
3
- Version: 0.2.5.dev10
3
+ Version: 0.2.5.dev11
4
4
  Summary: The Python Client for PolyAPI, the IPaaS by Developers for Developers
5
5
  Author-email: Dan Fellin <dan@polyapi.io>
6
6
  License: MIT License
@@ -9,18 +9,18 @@ polyapi/constants.py,sha256=sc-FnS0SngBLvSu1ZWMs0UCf9EYD1u1Yhfr-sZXGLns,607
9
9
  polyapi/error_handler.py,sha256=I_e0iz6VM23FLVQWJljxs2NGcl_OODbi43OcbnqBlp8,2398
10
10
  polyapi/exceptions.py,sha256=Zh7i7eCUhDuXEdUYjatkLFTeZkrx1BJ1P5ePgbJ9eIY,89
11
11
  polyapi/execute.py,sha256=kXnvlNQ7nz9cRlV2_5gXH09UCmyiDP5zi3wiAw0uDuk,1943
12
- polyapi/function_cli.py,sha256=4G4xqDCF7HSVERXRJx1D3uytNI1_mhaU-bNFeNRsQ3E,9231
12
+ polyapi/function_cli.py,sha256=F0cb5MGcmFvspgwxptWq_2e50X5NNno0B0p8Vgu_oNI,9129
13
13
  polyapi/generate.py,sha256=dtS6Wyb_lq9FrOs7NA_ceKCX9rogx2_3Fp57_hGwdDc,7957
14
14
  polyapi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
- polyapi/rendered_spec.py,sha256=yfOqZRx8BOkw5QfdrUx1m1SY2ne0Q1BolPmuSYIWwow,2230
15
+ polyapi/rendered_spec.py,sha256=zUDxomUK6wCmVEwrL5p9RL8E3nP--EKwxKlE8T_Ox1M,2258
16
16
  polyapi/schema.py,sha256=K7ayGu6K5vBTTvqr-Iqhf1QttqRFaXoJmtmGJRuDSTI,3577
17
17
  polyapi/server.py,sha256=n-nMGjXoq9T9ZwE2EBDkAaxJ7UytConGaHthkjbkCXA,1894
18
18
  polyapi/typedefs.py,sha256=mRqwd2LKofxNn_VSKxBzixni2j-tai8mfTQ0Wi2aLNM,1487
19
19
  polyapi/utils.py,sha256=f003Y5qP1uuyMKrvvaIUYS1TSGfSZjLnwPiXR5o4eA8,6530
20
20
  polyapi/variables.py,sha256=d36-trnfTL_8m2NkorMiImb4O3UrJbiFV38CHxV5i0A,4200
21
21
  polyapi/webhook.py,sha256=GvnS49Vl4k5STTvv4KKUnUAyn27OhIHHXChFmiI53Cs,4849
22
- polyapi_python-0.2.5.dev10.dist-info/LICENSE,sha256=Hi0kDr56Dsy0uYIwNt4r9G7tI8x8miXRTlyvbeplCP8,1068
23
- polyapi_python-0.2.5.dev10.dist-info/METADATA,sha256=xnUY6R6lpBq01nLMnja7YeWblDbkSk-Sg97_B1Q2MwA,4868
24
- polyapi_python-0.2.5.dev10.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
25
- polyapi_python-0.2.5.dev10.dist-info/top_level.txt,sha256=CEFllOnzowci_50RYJac-M54KD2IdAptFsayVVF_f04,8
26
- polyapi_python-0.2.5.dev10.dist-info/RECORD,,
22
+ polyapi_python-0.2.5.dev11.dist-info/LICENSE,sha256=Hi0kDr56Dsy0uYIwNt4r9G7tI8x8miXRTlyvbeplCP8,1068
23
+ polyapi_python-0.2.5.dev11.dist-info/METADATA,sha256=_UlhvfGo2V_n6v5kHKG9YVGdQp1QWEoITZTR3F5RYJE,4868
24
+ polyapi_python-0.2.5.dev11.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
25
+ polyapi_python-0.2.5.dev11.dist-info/top_level.txt,sha256=CEFllOnzowci_50RYJac-M54KD2IdAptFsayVVF_f04,8
26
+ polyapi_python-0.2.5.dev11.dist-info/RECORD,,