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.
- {polyapi_python-0.2.5.dev13/polyapi_python.egg-info → polyapi_python-0.2.6.dev0}/PKG-INFO +1 -1
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/cli.py +2 -1
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/function_cli.py +6 -4
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0/polyapi_python.egg-info}/PKG-INFO +1 -1
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/pyproject.toml +1 -1
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/LICENSE +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/README.md +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/__init__.py +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/__main__.py +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/api.py +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/auth.py +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/client.py +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/config.py +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/constants.py +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/error_handler.py +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/exceptions.py +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/execute.py +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/generate.py +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/py.typed +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/rendered_spec.py +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/schema.py +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/server.py +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/typedefs.py +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/utils.py +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/variables.py +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi/webhook.py +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi_python.egg-info/SOURCES.txt +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi_python.egg-info/dependency_links.txt +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi_python.egg-info/requires.txt +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi_python.egg-info/top_level.txt +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/setup.cfg +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/tests/test_api.py +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/tests/test_auth.py +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/tests/test_function_cli.py +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/tests/test_rendered_spec.py +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/tests/test_schema.py +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/tests/test_server.py +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/tests/test_utils.py +0 -0
- {polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/tests/test_variables.py +0 -0
|
@@ -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
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
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)
|
|
@@ -3,7 +3,7 @@ requires = ["setuptools>=61.2", "wheel"]
|
|
|
3
3
|
|
|
4
4
|
[project]
|
|
5
5
|
name = "polyapi-python"
|
|
6
|
-
version = "0.2.
|
|
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 = [
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi_python.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi_python.egg-info/requires.txt
RENAMED
|
File without changes
|
{polyapi_python-0.2.5.dev13 → polyapi_python-0.2.6.dev0}/polyapi_python.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|