polyapi-python 0.3.13.dev1__tar.gz → 0.3.13.dev2__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.3.13.dev1/polyapi_python.egg-info → polyapi_python-0.3.13.dev2}/PKG-INFO +1 -1
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi/utils.py +16 -2
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi/webhook.py +1 -5
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2/polyapi_python.egg-info}/PKG-INFO +1 -1
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/pyproject.toml +1 -1
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/LICENSE +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/README.md +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi/__init__.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi/__main__.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi/api.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi/auth.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi/cli.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi/client.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi/config.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi/constants.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi/deployables.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi/error_handler.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi/exceptions.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi/execute.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi/function_cli.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi/generate.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi/parser.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi/poly_schemas.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi/poly_tables.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi/prepare.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi/py.typed +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi/rendered_spec.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi/schema.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi/server.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi/sync.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi/typedefs.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi/variables.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi_python.egg-info/SOURCES.txt +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi_python.egg-info/dependency_links.txt +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi_python.egg-info/requires.txt +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi_python.egg-info/top_level.txt +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/setup.cfg +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/tests/test_api.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/tests/test_auth.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/tests/test_deployables.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/tests/test_generate.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/tests/test_parser.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/tests/test_rendered_spec.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/tests/test_schema.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/tests/test_server.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/tests/test_tabi.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/tests/test_utils.py +0 -0
- {polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/tests/test_variables.py +0 -0
|
@@ -73,9 +73,23 @@ def print_red(s: str):
|
|
|
73
73
|
|
|
74
74
|
def add_type_import_path(function_name: str, arg: str) -> str:
|
|
75
75
|
"""if not basic type, coerce to camelCase and add the import path"""
|
|
76
|
-
# for now, just treat Callables as basic types
|
|
76
|
+
# outdated og comment - for now, just treat Callables as basic types
|
|
77
|
+
# from now, we start qualifying non-basic types :))
|
|
78
|
+
# e.g. Callable[[EmailAddress, Dict, Dict, Dict], None]
|
|
79
|
+
# becomes Callable[[Set_profile_email.EmailAddress, Dict, Dict, Dict], None]
|
|
80
|
+
|
|
77
81
|
if arg.startswith("Callable"):
|
|
78
|
-
|
|
82
|
+
inner = arg[len("Callable["):-1] # strip outer Callable[...]
|
|
83
|
+
parts = [p.strip() for p in inner.split(",")]
|
|
84
|
+
qualified = []
|
|
85
|
+
for p in parts:
|
|
86
|
+
clean = p.strip("[] ")
|
|
87
|
+
if clean and clean not in BASIC_PYTHON_TYPES:
|
|
88
|
+
replacement = f"{to_func_namespace(function_name)}.{camelCase(clean)}"
|
|
89
|
+
p = p.replace(clean, replacement)
|
|
90
|
+
qualified.append(p)
|
|
91
|
+
return "Callable[" + ",".join(qualified) + "]"
|
|
92
|
+
# return arg
|
|
79
93
|
|
|
80
94
|
if arg in BASIC_PYTHON_TYPES:
|
|
81
95
|
return arg
|
|
@@ -124,11 +124,7 @@ def render_webhook_handle(
|
|
|
124
124
|
) -> Tuple[str, str]:
|
|
125
125
|
try:
|
|
126
126
|
function_args, function_args_def = parse_arguments(function_name, arguments)
|
|
127
|
-
|
|
128
|
-
if "WebhookEventType" in function_args:
|
|
129
|
-
# let's add the function name import!
|
|
130
|
-
function_args = function_args.replace("WebhookEventType", f"{to_func_namespace(function_name)}.WebhookEventType")
|
|
131
|
-
|
|
127
|
+
|
|
132
128
|
func_str = WEBHOOK_TEMPLATE.format(
|
|
133
129
|
description=function_description,
|
|
134
130
|
function_id=function_id,
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "polyapi-python"
|
|
7
|
-
version = "0.3.13.
|
|
7
|
+
version = "0.3.13.dev2" # bump
|
|
8
8
|
description = "The Python Client for PolyAPI, the IPaaS by Developers for Developers"
|
|
9
9
|
authors = [{ name = "Dan Fellin", email = "dan@polyapi.io" }]
|
|
10
10
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi_python.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/polyapi_python.egg-info/requires.txt
RENAMED
|
File without changes
|
{polyapi_python-0.3.13.dev1 → polyapi_python-0.3.13.dev2}/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|