polyapi-python 0.2.5.dev10__tar.gz → 0.2.5.dev12__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 (39) hide show
  1. {polyapi_python-0.2.5.dev10/polyapi_python.egg-info → polyapi_python-0.2.5.dev12}/PKG-INFO +1 -1
  2. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/polyapi/function_cli.py +0 -2
  3. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/polyapi/rendered_spec.py +4 -1
  4. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12/polyapi_python.egg-info}/PKG-INFO +1 -1
  5. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/pyproject.toml +1 -1
  6. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/LICENSE +0 -0
  7. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/README.md +0 -0
  8. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/polyapi/__init__.py +0 -0
  9. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/polyapi/__main__.py +0 -0
  10. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/polyapi/api.py +0 -0
  11. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/polyapi/auth.py +0 -0
  12. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/polyapi/cli.py +0 -0
  13. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/polyapi/client.py +0 -0
  14. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/polyapi/config.py +0 -0
  15. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/polyapi/constants.py +0 -0
  16. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/polyapi/error_handler.py +0 -0
  17. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/polyapi/exceptions.py +0 -0
  18. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/polyapi/execute.py +0 -0
  19. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/polyapi/generate.py +0 -0
  20. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/polyapi/py.typed +0 -0
  21. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/polyapi/schema.py +0 -0
  22. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/polyapi/server.py +0 -0
  23. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/polyapi/typedefs.py +0 -0
  24. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/polyapi/utils.py +0 -0
  25. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/polyapi/variables.py +0 -0
  26. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/polyapi/webhook.py +0 -0
  27. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/polyapi_python.egg-info/SOURCES.txt +0 -0
  28. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/polyapi_python.egg-info/dependency_links.txt +0 -0
  29. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/polyapi_python.egg-info/requires.txt +0 -0
  30. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/polyapi_python.egg-info/top_level.txt +0 -0
  31. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/setup.cfg +0 -0
  32. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/tests/test_api.py +0 -0
  33. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/tests/test_auth.py +0 -0
  34. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/tests/test_function_cli.py +0 -0
  35. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/tests/test_rendered_spec.py +0 -0
  36. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/tests/test_schema.py +0 -0
  37. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/tests/test_server.py +0 -0
  38. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/tests/test_utils.py +0 -0
  39. {polyapi_python-0.2.5.dev10 → polyapi_python-0.2.5.dev12}/tests/test_variables.py +0 -0
@@ -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.dev12
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
@@ -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:
@@ -19,6 +19,10 @@ 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"]
24
+ elif spec["type"] == "webhookHandle":
25
+ data["webhookHandleId"] = spec["id"]
22
26
  else:
23
27
  raise NotImplementedError("todo")
24
28
 
@@ -31,7 +35,6 @@ def update_rendered_spec(api_key: str, spec: SpecificationDto):
31
35
  headers = {"Authorization": f"Bearer {api_key}"}
32
36
  resp = requests.post(url, json=data, headers=headers)
33
37
  assert resp.status_code == 201, (resp.text, resp.status_code)
34
- # this needs to run with something like `kn func run...`
35
38
 
36
39
 
37
40
  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.dev12
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
@@ -3,7 +3,7 @@ requires = ["setuptools>=61.2", "wheel"]
3
3
 
4
4
  [project]
5
5
  name = "polyapi-python"
6
- version = "0.2.5.dev10"
6
+ version = "0.2.5.dev12"
7
7
  description = "The Python Client for PolyAPI, the IPaaS by Developers for Developers"
8
8
  authors = [{ name = "Dan Fellin", email = "dan@polyapi.io" }]
9
9
  dependencies = [