polyapi-python 0.3.8.dev10__py3-none-any.whl → 0.3.9.dev1__py3-none-any.whl
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/poly_schemas.py +4 -4
- polyapi/schema.py +1 -1
- {polyapi_python-0.3.8.dev10.dist-info → polyapi_python-0.3.9.dev1.dist-info}/METADATA +1 -1
- {polyapi_python-0.3.8.dev10.dist-info → polyapi_python-0.3.9.dev1.dist-info}/RECORD +7 -7
- {polyapi_python-0.3.8.dev10.dist-info → polyapi_python-0.3.9.dev1.dist-info}/WHEEL +0 -0
- {polyapi_python-0.3.8.dev10.dist-info → polyapi_python-0.3.9.dev1.dist-info}/licenses/LICENSE +0 -0
- {polyapi_python-0.3.8.dev10.dist-info → polyapi_python-0.3.9.dev1.dist-info}/top_level.txt +0 -0
polyapi/poly_schemas.py
CHANGED
|
@@ -121,7 +121,7 @@ def add_schema_file(
|
|
|
121
121
|
# Read current __init__.py content if it exists
|
|
122
122
|
init_content = ""
|
|
123
123
|
if os.path.exists(init_path):
|
|
124
|
-
with open(init_path, "r") as f:
|
|
124
|
+
with open(init_path, "r", encoding='utf-8') as f:
|
|
125
125
|
init_content = f.read()
|
|
126
126
|
|
|
127
127
|
# Prepare new content to append to __init__.py
|
|
@@ -129,12 +129,12 @@ def add_schema_file(
|
|
|
129
129
|
|
|
130
130
|
# Use temporary files for atomic writes
|
|
131
131
|
# Write to __init__.py atomically
|
|
132
|
-
with tempfile.NamedTemporaryFile(mode="w", delete=False, dir=full_path, suffix=".tmp") as temp_init:
|
|
132
|
+
with tempfile.NamedTemporaryFile(mode="w", delete=False, dir=full_path, suffix=".tmp", encoding='utf-8') as temp_init:
|
|
133
133
|
temp_init.write(new_init_content)
|
|
134
134
|
temp_init_path = temp_init.name
|
|
135
135
|
|
|
136
136
|
# Write to schema file atomically
|
|
137
|
-
with tempfile.NamedTemporaryFile(mode="w", delete=False, dir=full_path, suffix=".tmp") as temp_schema:
|
|
137
|
+
with tempfile.NamedTemporaryFile(mode="w", delete=False, dir=full_path, suffix=".tmp", encoding='utf-8') as temp_schema:
|
|
138
138
|
temp_schema.write(schema_defs)
|
|
139
139
|
temp_schema_path = temp_schema.name
|
|
140
140
|
|
|
@@ -205,7 +205,7 @@ def create_schema(
|
|
|
205
205
|
def add_schema_to_init(full_path: str, spec: SchemaSpecDto):
|
|
206
206
|
init_the_init(full_path, code_imports="")
|
|
207
207
|
init_path = os.path.join(full_path, "__init__.py")
|
|
208
|
-
with open(init_path, "a") as f:
|
|
208
|
+
with open(init_path, "a", encoding='utf-8') as f:
|
|
209
209
|
f.write(render_poly_schema(spec) + "\n\n")
|
|
210
210
|
|
|
211
211
|
|
polyapi/schema.py
CHANGED
|
@@ -93,7 +93,7 @@ def generate_schema_types(input_data: Dict, root=None):
|
|
|
93
93
|
with contextlib.redirect_stdout(None):
|
|
94
94
|
process_config(config, [tmp_input])
|
|
95
95
|
|
|
96
|
-
with open(tmp_output) as f:
|
|
96
|
+
with open(tmp_output, encoding='utf-8') as f:
|
|
97
97
|
output = f.read()
|
|
98
98
|
|
|
99
99
|
output = clean_malformed_examples(output)
|
|
@@ -13,19 +13,19 @@ polyapi/execute.py,sha256=sjI6BMBYPSCD6UngV9DzpJIRSU6p02aShNaTXhDExtY,3457
|
|
|
13
13
|
polyapi/function_cli.py,sha256=H0sVrbvRBXw_xeApe2MvQw8p_xE7jVTTOU-07Dg041A,4220
|
|
14
14
|
polyapi/generate.py,sha256=slCw9AOvQHQ8UtEaumFI1NoRvjH2Dj3Y33u7imQqi8c,19521
|
|
15
15
|
polyapi/parser.py,sha256=20ZE7kSXx3UL7QVSIYYxzsnJlygVbsaDAg9q7c41WxQ,20695
|
|
16
|
-
polyapi/poly_schemas.py,sha256=
|
|
16
|
+
polyapi/poly_schemas.py,sha256=fZ6AGvHcOKQJtlrzSuzeBNed5DxPMA2dJGdJvuFCHWM,9066
|
|
17
17
|
polyapi/prepare.py,sha256=pRWBhpgqMtKP04P9F6PIA3eCkOpCxQSv9TZdR3qR34I,7216
|
|
18
18
|
polyapi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
19
19
|
polyapi/rendered_spec.py,sha256=nJEj2vRgG3N20fU4s-ThRtOIwAuTzXwXuOBIkXljDVc,2240
|
|
20
|
-
polyapi/schema.py,sha256
|
|
20
|
+
polyapi/schema.py,sha256=-mtRV5iL3CV0X3phXhGYFV8sLz0KouTACOKWyGO9Pwc,5309
|
|
21
21
|
polyapi/server.py,sha256=YXWxhYBx-hluwDQ8Jvfpy2s8ogz0GsNTMcZVNcP5ca8,2147
|
|
22
22
|
polyapi/sync.py,sha256=PGdC0feBBjEVrF3d9EluW_OAxbWuzSrfh84czma8kWg,6476
|
|
23
23
|
polyapi/typedefs.py,sha256=vJLZYBNmR3i8yQEDYlu1UfvtJyg6E1R1QyGlgFUm2rU,2362
|
|
24
24
|
polyapi/utils.py,sha256=1F7Dwst_PbPuUBUSxx5r8d2DHDgqHtu07QW92T_YSdw,12454
|
|
25
25
|
polyapi/variables.py,sha256=VAp2d5I-4WLYHCPF1w3pqU4-z8_XRQpYW-ddOw6G5S4,7268
|
|
26
26
|
polyapi/webhook.py,sha256=gWYXHz0PnB_uY_lnHeUlg3EIHfTGwF-Tc6UaatldZBw,5333
|
|
27
|
-
polyapi_python-0.3.
|
|
28
|
-
polyapi_python-0.3.
|
|
29
|
-
polyapi_python-0.3.
|
|
30
|
-
polyapi_python-0.3.
|
|
31
|
-
polyapi_python-0.3.
|
|
27
|
+
polyapi_python-0.3.9.dev1.dist-info/licenses/LICENSE,sha256=6b_I7aPVp8JXhqQwdw7_B84Ca0S4JGjHj0sr_1VOdB4,1068
|
|
28
|
+
polyapi_python-0.3.9.dev1.dist-info/METADATA,sha256=W5sXQ5iF_6nU9kdOkYyklEaVVBuG6F3N9nzlv4xhfUk,5784
|
|
29
|
+
polyapi_python-0.3.9.dev1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
30
|
+
polyapi_python-0.3.9.dev1.dist-info/top_level.txt,sha256=CEFllOnzowci_50RYJac-M54KD2IdAptFsayVVF_f04,8
|
|
31
|
+
polyapi_python-0.3.9.dev1.dist-info/RECORD,,
|
|
File without changes
|
{polyapi_python-0.3.8.dev10.dist-info → polyapi_python-0.3.9.dev1.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|