polyapi-python 0.2.8__tar.gz → 0.3.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 (39) hide show
  1. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/PKG-INFO +2 -2
  2. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/polyapi/cli.py +11 -1
  3. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/polyapi/function_cli.py +5 -0
  4. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/polyapi_python.egg-info/PKG-INFO +2 -2
  5. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/pyproject.toml +2 -2
  6. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/LICENSE +0 -0
  7. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/README.md +0 -0
  8. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/polyapi/__init__.py +0 -0
  9. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/polyapi/__main__.py +0 -0
  10. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/polyapi/api.py +0 -0
  11. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/polyapi/auth.py +0 -0
  12. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/polyapi/client.py +0 -0
  13. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/polyapi/config.py +0 -0
  14. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/polyapi/constants.py +0 -0
  15. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/polyapi/error_handler.py +0 -0
  16. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/polyapi/exceptions.py +0 -0
  17. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/polyapi/execute.py +0 -0
  18. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/polyapi/generate.py +0 -0
  19. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/polyapi/py.typed +0 -0
  20. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/polyapi/rendered_spec.py +0 -0
  21. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/polyapi/schema.py +0 -0
  22. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/polyapi/server.py +0 -0
  23. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/polyapi/typedefs.py +0 -0
  24. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/polyapi/utils.py +0 -0
  25. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/polyapi/variables.py +0 -0
  26. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/polyapi/webhook.py +0 -0
  27. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/polyapi_python.egg-info/SOURCES.txt +0 -0
  28. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/polyapi_python.egg-info/dependency_links.txt +0 -0
  29. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/polyapi_python.egg-info/requires.txt +0 -0
  30. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/polyapi_python.egg-info/top_level.txt +0 -0
  31. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/setup.cfg +0 -0
  32. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/tests/test_api.py +0 -0
  33. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/tests/test_auth.py +0 -0
  34. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/tests/test_function_cli.py +0 -0
  35. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/tests/test_rendered_spec.py +0 -0
  36. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/tests/test_schema.py +0 -0
  37. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/tests/test_server.py +0 -0
  38. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/tests/test_utils.py +0 -0
  39. {polyapi_python-0.2.8 → polyapi_python-0.3.0}/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.8
3
+ Version: 0.3.0
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
@@ -25,7 +25,7 @@ License: MIT License
25
25
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
26
  SOFTWARE.
27
27
  Project-URL: Homepage, https://github.com/polyapi/polyapi-python
28
- Requires-Python: <=3.12,>=3.10
28
+ Requires-Python: >=3.10
29
29
  Description-Content-Type: text/markdown
30
30
  License-File: LICENSE
31
31
  Requires-Dist: requests==2.31.0
@@ -28,6 +28,7 @@ def execute_from_cli() -> None:
28
28
  parser.add_argument("--server", action="store_true", help="Pass --server when adding function to add a server function.")
29
29
  parser.add_argument("--logs", action="store_true", help="Pass --logs when adding function if you want to store and see the function logs.")
30
30
  parser.add_argument("--skip-generate", action="store_true", help="Pass --skip-generate to skip generating the library after adding a function.")
31
+ parser.add_argument("--execution-api-key", required=False, default="", help="API key for execution (for server functions only).")
31
32
  parser.add_argument("command", choices=CLI_COMMANDS)
32
33
  parser.add_argument("subcommands", nargs="*")
33
34
  args = parser.parse_args()
@@ -59,4 +60,13 @@ def execute_from_cli() -> None:
59
60
  if args.subcommands[0] == "execute":
60
61
  print(function_execute(args.context, args.subcommands))
61
62
  else:
62
- function_add_or_update(args.context, args.description, args.client, args.server, args.logs, args.subcommands, not args.skip_generate)
63
+ function_add_or_update(
64
+ context=args.context,
65
+ description=args.description,
66
+ client=args.client,
67
+ server=args.server,
68
+ logs_enabled=args.logs,
69
+ subcommands=args.subcommands,
70
+ generate=not args.skip_generate,
71
+ execution_api_key=args.execution_api_key
72
+ )
@@ -208,6 +208,7 @@ def function_add_or_update(
208
208
  logs_enabled: bool,
209
209
  subcommands: List,
210
210
  generate: bool = True,
211
+ execution_api_key: str = ""
211
212
  ):
212
213
  parser = argparse.ArgumentParser()
213
214
  parser.add_argument("subcommand", choices=["add"])
@@ -256,6 +257,10 @@ def function_add_or_update(
256
257
  assert api_key
257
258
  if server:
258
259
  url = f"{api_url}/functions/server"
260
+
261
+ if execution_api_key:
262
+ data["executionApiKey"] = execution_api_key
263
+
259
264
  elif client:
260
265
  url = f"{api_url}/functions/client"
261
266
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: polyapi-python
3
- Version: 0.2.8
3
+ Version: 0.3.0
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
@@ -25,7 +25,7 @@ License: MIT License
25
25
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
26
  SOFTWARE.
27
27
  Project-URL: Homepage, https://github.com/polyapi/polyapi-python
28
- Requires-Python: <=3.12,>=3.10
28
+ Requires-Python: >=3.10
29
29
  Description-Content-Type: text/markdown
30
30
  License-File: LICENSE
31
31
  Requires-Dist: requests==2.31.0
@@ -3,7 +3,7 @@ requires = ["setuptools>=61.2", "wheel"]
3
3
 
4
4
  [project]
5
5
  name = "polyapi-python"
6
- version = "0.2.8"
6
+ version = "0.3.0"
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 = [
@@ -18,7 +18,7 @@ dependencies = [
18
18
  ]
19
19
  readme = "README.md"
20
20
  license = { file = "LICENSE" }
21
- requires-python = ">=3.10,<=3.12"
21
+ requires-python = ">=3.10"
22
22
 
23
23
  [project.urls]
24
24
  Homepage = "https://github.com/polyapi/polyapi-python"
File without changes
File without changes
File without changes