polyapi-python 0.2.5.dev13__tar.gz → 0.2.6.dev0__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.dev13/polyapi_python.egg-info → polyapi_python-0.2.6.dev0}/PKG-INFO +1 -1
  2. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/cli.py +2 -1
  3. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/function_cli.py +6 -4
  4. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0/polyapi_python.egg-info}/PKG-INFO +1 -1
  5. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/pyproject.toml +1 -1
  6. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/LICENSE +0 -0
  7. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/README.md +0 -0
  8. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/__init__.py +0 -0
  9. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/__main__.py +0 -0
  10. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/api.py +0 -0
  11. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/auth.py +0 -0
  12. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/client.py +0 -0
  13. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/config.py +0 -0
  14. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/constants.py +0 -0
  15. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/error_handler.py +0 -0
  16. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/exceptions.py +0 -0
  17. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/execute.py +0 -0
  18. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/generate.py +0 -0
  19. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/py.typed +0 -0
  20. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/rendered_spec.py +0 -0
  21. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/schema.py +0 -0
  22. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/server.py +0 -0
  23. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/typedefs.py +0 -0
  24. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/utils.py +0 -0
  25. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/variables.py +0 -0
  26. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/webhook.py +0 -0
  27. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi_python.egg-info/SOURCES.txt +0 -0
  28. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi_python.egg-info/dependency_links.txt +0 -0
  29. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi_python.egg-info/requires.txt +0 -0
  30. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi_python.egg-info/top_level.txt +0 -0
  31. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/setup.cfg +0 -0
  32. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/tests/test_api.py +0 -0
  33. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/tests/test_auth.py +0 -0
  34. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/tests/test_function_cli.py +0 -0
  35. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/tests/test_rendered_spec.py +0 -0
  36. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/tests/test_schema.py +0 -0
  37. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/tests/test_server.py +0 -0
  38. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/tests/test_utils.py +0 -0
  39. {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/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.dev13
3
+ Version: 0.2.6.dev0
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
@@ -27,6 +27,7 @@ def execute_from_cli() -> None:
27
27
  parser.add_argument("--client", action="store_true", help="Pass --client when adding function to add a client function.")
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
+ parser.add_argument("--skip-generate", action="store_true", help="Pass --skip-generate to skip generating the library after adding a function.")
30
31
  parser.add_argument("command", choices=CLI_COMMANDS)
31
32
  parser.add_argument("subcommands", nargs="*")
32
33
  args = parser.parse_args()
@@ -55,4 +56,4 @@ def execute_from_cli() -> None:
55
56
  print("Clearing the generated library...")
56
57
  clear()
57
58
  elif command == "function":
58
- function_add_or_update(args.context, args.description, args.client, args.server, args.logs, args.subcommands)
59
+ function_add_or_update(args.context, args.description, args.client, args.server, args.logs, args.subcommands, not args.skip_generate)
@@ -207,6 +207,7 @@ def function_add_or_update(
207
207
  server: bool,
208
208
  logs_enabled: bool,
209
209
  subcommands: List,
210
+ generate: bool = True,
210
211
  ):
211
212
  parser = argparse.ArgumentParser()
212
213
  parser.add_argument("subcommand", choices=["add"])
@@ -268,10 +269,11 @@ def function_add_or_update(
268
269
  print_green("DEPLOYED")
269
270
  function_id = resp.json()["id"]
270
271
  print(f"Function ID: {function_id}")
271
- print("Generating new custom function...", end="")
272
- functions = get_functions_and_parse(limit_ids=[function_id])
273
- generate_functions(functions)
274
- print_green("DONE")
272
+ if generate:
273
+ print("Generating new custom function...", end="")
274
+ functions = get_functions_and_parse(limit_ids=[function_id])
275
+ generate_functions(functions)
276
+ print_green("DONE")
275
277
  else:
276
278
  print("Error adding function.")
277
279
  print(resp.status_code)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: polyapi-python
3
- Version: 0.2.5.dev13
3
+ Version: 0.2.6.dev0
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.dev13"
6
+ version = "0.2.6.dev0"
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 = [