polymo 1.2.0__tar.gz → 1.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.
- {polymo-1.2.0 → polymo-1.3.0}/PKG-INFO +4 -4
- {polymo-1.2.0 → polymo-1.3.0}/README.md +3 -3
- {polymo-1.2.0 → polymo-1.3.0}/pyproject.toml +6 -1
- {polymo-1.2.0 → polymo-1.3.0}/src/polymo/builder/preview.py +1 -0
- polymo-1.3.0/src/polymo/builder/static/main.js +80 -0
- {polymo-1.2.0 → polymo-1.3.0}/src/polymo/codegen/generator.py +6 -0
- {polymo-1.2.0 → polymo-1.3.0}/src/polymo/codegen/templates/core.py.jinja +72 -31
- {polymo-1.2.0 → polymo-1.3.0}/src/polymo/codegen/templates/dp.py.jinja +42 -24
- {polymo-1.2.0 → polymo-1.3.0}/src/polymo/config.py +256 -18
- polymo-1.2.0/src/polymo/builder/static/main.js +0 -80
- {polymo-1.2.0 → polymo-1.3.0}/src/polymo/__init__.py +0 -0
- {polymo-1.2.0 → polymo-1.3.0}/src/polymo/builder/__init__.py +0 -0
- {polymo-1.2.0 → polymo-1.3.0}/src/polymo/builder/app.py +0 -0
- {polymo-1.2.0 → polymo-1.3.0}/src/polymo/builder/static/examples/countries.polymo.json +0 -0
- {polymo-1.2.0 → polymo-1.3.0}/src/polymo/builder/static/examples/githubrepos.polymo.json +0 -0
- {polymo-1.2.0 → polymo-1.3.0}/src/polymo/builder/static/examples/jsonplaceholder.polymo.json +0 -0
- {polymo-1.2.0 → polymo-1.3.0}/src/polymo/builder/static/examples/jsonplaceholder_endpoints.polymo.json +0 -0
- {polymo-1.2.0 → polymo-1.3.0}/src/polymo/builder/static/examples/weather.polymo.json +0 -0
- {polymo-1.2.0 → polymo-1.3.0}/src/polymo/builder/static/favicon.ico +0 -0
- {polymo-1.2.0 → polymo-1.3.0}/src/polymo/builder/static/favicon.png +0 -0
- {polymo-1.2.0 → polymo-1.3.0}/src/polymo/builder/static/index.html +0 -0
- {polymo-1.2.0 → polymo-1.3.0}/src/polymo/builder/static/logo.png +0 -0
- {polymo-1.2.0 → polymo-1.3.0}/src/polymo/builder/static/logo192.png +0 -0
- {polymo-1.2.0 → polymo-1.3.0}/src/polymo/builder/static/main.css +0 -0
- {polymo-1.2.0 → polymo-1.3.0}/src/polymo/builder/static/mockServiceWorker.js +0 -0
- {polymo-1.2.0 → polymo-1.3.0}/src/polymo/builder/templates/index.html +0 -0
- {polymo-1.2.0 → polymo-1.3.0}/src/polymo/cli.py +0 -0
- {polymo-1.2.0 → polymo-1.3.0}/src/polymo/codegen/__init__.py +0 -0
- {polymo-1.2.0 → polymo-1.3.0}/src/polymo/codegen/templating.py +0 -0
- {polymo-1.2.0 → polymo-1.3.0}/src/polymo/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: polymo
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.0
|
|
4
4
|
Summary: Generate standalone Lakeflow Declarative Pipelines scripts from a point-and-click REST connector builder
|
|
5
5
|
Keywords: spark,pyspark,rest,api,ingestion,data-engineering,etl,http
|
|
6
6
|
Author: Daniel Tom
|
|
@@ -63,9 +63,9 @@ Standalone Lakeflow Declarative Pipelines source. polymo is NOT needed
|
|
|
63
63
|
at runtime; edit this file freely.
|
|
64
64
|
"""
|
|
65
65
|
|
|
66
|
-
BASE_URL = "https://jsonplaceholder.typicode.com"
|
|
67
|
-
PATH = "/posts"
|
|
68
|
-
PARAMS: dict = {"_limit": 20}
|
|
66
|
+
BASE_URL: str = "https://jsonplaceholder.typicode.com"
|
|
67
|
+
PATH: str = "/posts"
|
|
68
|
+
PARAMS: dict[str, Any] = {"_limit": 20}
|
|
69
69
|
|
|
70
70
|
# … fetch/retry helpers elided …
|
|
71
71
|
|
|
@@ -28,9 +28,9 @@ Standalone Lakeflow Declarative Pipelines source. polymo is NOT needed
|
|
|
28
28
|
at runtime; edit this file freely.
|
|
29
29
|
"""
|
|
30
30
|
|
|
31
|
-
BASE_URL = "https://jsonplaceholder.typicode.com"
|
|
32
|
-
PATH = "/posts"
|
|
33
|
-
PARAMS: dict = {"_limit": 20}
|
|
31
|
+
BASE_URL: str = "https://jsonplaceholder.typicode.com"
|
|
32
|
+
PATH: str = "/posts"
|
|
33
|
+
PARAMS: dict[str, Any] = {"_limit": 20}
|
|
34
34
|
|
|
35
35
|
# … fetch/retry helpers elided …
|
|
36
36
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "polymo"
|
|
3
|
-
version = "1.
|
|
3
|
+
version = "1.3.0"
|
|
4
4
|
description = "Generate standalone Lakeflow Declarative Pipelines scripts from a point-and-click REST connector builder"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [
|
|
@@ -77,3 +77,8 @@ Issues = "https://github.com/dan1elt0m/polymo/issues"
|
|
|
77
77
|
# must not reformat them or the golden tests would drift from what the
|
|
78
78
|
# generator actually produces.
|
|
79
79
|
extend-exclude = ["tests/codegen/golden"]
|
|
80
|
+
|
|
81
|
+
[tool.pytest.ini_options]
|
|
82
|
+
markers = [
|
|
83
|
+
"spark: exercises a real local[1] PySpark session (slower: ~seconds of JVM startup).",
|
|
84
|
+
]
|
|
@@ -29,6 +29,7 @@ def run_preview(
|
|
|
29
29
|
if token:
|
|
30
30
|
namespace["API_TOKEN"] = token # bearer
|
|
31
31
|
namespace["CLIENT_SECRET"] = token # oauth2 (harmless if unused)
|
|
32
|
+
namespace["API_KEY"] = token # api_key (harmless if unused)
|
|
32
33
|
|
|
33
34
|
raw_pages: List[Dict[str, Any]] = []
|
|
34
35
|
original_request = namespace["_request"]
|