UncountablePythonSDK 0.0.10__py3-none-any.whl → 0.0.12__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.

Potentially problematic release.


This version of UncountablePythonSDK might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: UncountablePythonSDK
3
- Version: 0.0.10
3
+ Version: 0.0.12
4
4
  Summary: Uncountable SDK
5
5
  Project-URL: Homepage, https://github.com/uncountableinc/uncountable-python-sdk
6
6
  Project-URL: Repository, https://github.com/uncountableinc/uncountable-python-sdk.git
@@ -19,8 +19,9 @@ Description-Content-Type: text/markdown
19
19
  Requires-Dist: requests ==2.31.0
20
20
  Requires-Dist: SQLAlchemy ==2.0.29
21
21
  Requires-Dist: APScheduler ==3.10.4
22
- Requires-Dist: dateutil ==2.9.0
22
+ Requires-Dist: python-dateutil ==2.9.0
23
23
  Requires-Dist: shelljob ==0.6.3
24
+ Requires-Dist: yaml ==6.0.1
24
25
  Provides-Extra: test
25
26
  Requires-Dist: mypy >=1.8.1 ; extra == 'test'
26
27
  Requires-Dist: ruff >=0.2.1 ; extra == 'test'
@@ -2,7 +2,7 @@ examples/create_entity.py,sha256=0wpH-FvEgZmmlgkqL7tY7wAX6wvHdPQbMMJJvhagBok,622
2
2
  examples/recipe-import/importer.py,sha256=baD71xuNibxDTe3bGHsMEIZEf9Xtb-IumBNpCEV0RZU,1134
3
3
  pkgs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  pkgs/argument_parser/__init__.py,sha256=CsQ6QoPKSLLRVl-z6URAmPkiUL9ZPZoV4rJHgy_-RjA,385
5
- pkgs/argument_parser/_is_enum.py,sha256=JQPlVIW0z-N9Qux61TQXaqP3lIHEhOOGwe9--JcM4Ro,393
5
+ pkgs/argument_parser/_is_enum.py,sha256=bwX2lOmhv28hWLY4rf4eS_saOBq2fhcmruGLuw5rIzU,264
6
6
  pkgs/argument_parser/_is_namedtuple.py,sha256=Rjc1bKanIPPogl3qG5JPBxglG1TqWYOo1nxxhBASQWY,265
7
7
  pkgs/argument_parser/argument_parser.py,sha256=TC6cP6OQeLyzYU0m56f9BXSuCcR67FgyRlOa6OZyjgk,14445
8
8
  pkgs/argument_parser/case_convert.py,sha256=J9wahIE-P95LvTqn4M4gDUx_RXeiW2SRo9i_1bz1E6A,558
@@ -23,7 +23,7 @@ pkgs/type_spec/emit_io_ts.py,sha256=gCEfS81w_ifqjLVJ3_cpy9Gq03o6H5nEsh35WAkqGGE,
23
23
  pkgs/type_spec/emit_open_api.py,sha256=dnGazdVBjdEWQ4WK8Ujq966quRZY2TyQ05PGR48Md2I,17461
24
24
  pkgs/type_spec/emit_open_api_util.py,sha256=xnzPOuPO8Pbhf6xf1tkHUKgXs1n-jH-lWFac8pOtd4I,1882
25
25
  pkgs/type_spec/emit_python.py,sha256=ixJ5aXzrpeGuNyuX3pfGRSWgUWgRNegX3ltgwqrmQJA,35580
26
- pkgs/type_spec/emit_typescript.py,sha256=6tlzvyHc7iIEic01AtjYWuzy7Ac3KijtXRQ3IQSN7JE,18670
26
+ pkgs/type_spec/emit_typescript.py,sha256=NrGHL3XMbChwBEeX7nUKssvSzVYugvqk2d9UaV7gayw,17554
27
27
  pkgs/type_spec/emit_typescript_util.py,sha256=MZMigIsYIYOXLjJqp-DSRYsztWbIKd9QQEmYRRqnGQ4,894
28
28
  pkgs/type_spec/load_types.py,sha256=LMIkrk0n-Kh4I4CUOBzuboYtsAHBYuMrL9d2hkU83f4,2184
29
29
  pkgs/type_spec/open_api_util.py,sha256=kOxDc1P4dgjWRxOQNNRtayUEHiHcxbc4OGzBsCWsKsM,7462
@@ -139,7 +139,7 @@ uncountable/types/api/recipes/get_recipe_output_metadata.py,sha256=L9s2ykPP4pd02
139
139
  uncountable/types/api/recipes/get_recipes_data.py,sha256=dOKokz6rJp3AiqNrF8rAZFlmJSs3ejdNIJhwKw0Utr0,5317
140
140
  uncountable/types/api/recipes/set_recipe_inputs.py,sha256=sHEwPocBucWRnnoX7nbNaFqdflxFkqdjuVydNezqluY,1326
141
141
  uncountable/types/api/recipes/set_recipe_outputs.py,sha256=QYq39TNchQ80ET1C77OE9fwhbu_HmIoEDmrQJHkkCu0,1609
142
- UncountablePythonSDK-0.0.10.dist-info/METADATA,sha256=-k3bLSnSPbkgbodLSCUIvBzwdRtpcfIcBKEPHtmxEnY,1261
143
- UncountablePythonSDK-0.0.10.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
144
- UncountablePythonSDK-0.0.10.dist-info/top_level.txt,sha256=8ga1DCSWt4Uc_XJ5cR0QrDQuyoeo2uoSzaAJdQT2KBo,36
145
- UncountablePythonSDK-0.0.10.dist-info/RECORD,,
142
+ UncountablePythonSDK-0.0.12.dist-info/METADATA,sha256=xXft8rF08KydXeb3l4BQyUh-s-l4Ht70WmWVUUrEIE8,1296
143
+ UncountablePythonSDK-0.0.12.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
144
+ UncountablePythonSDK-0.0.12.dist-info/top_level.txt,sha256=8ga1DCSWt4Uc_XJ5cR0QrDQuyoeo2uoSzaAJdQT2KBo,36
145
+ UncountablePythonSDK-0.0.12.dist-info/RECORD,,
@@ -9,8 +9,3 @@ def is_string_enum_class(object_type: typing.Type[typing.Any]) -> bool:
9
9
  and issubclass(object_type, Enum)
10
10
  and issubclass(object_type, str)
11
11
  )
12
-
13
-
14
- def is_string_enum_instance(obj: typing.Any) -> bool:
15
- object_type = type(obj)
16
- return is_string_enum_class(object_type)
@@ -283,41 +283,6 @@ export const apiCall = {wrap_call}(
283
283
  index.write(f"export {{ {api_name} }}\n")
284
284
 
285
285
 
286
- MARKER_BEGIN = "### BEGIN:TYPE_SPEC"
287
- MARKER_END = "### END:TYPE_SPEC"
288
-
289
-
290
- def _patch_file_line(filename: str, line: str) -> None:
291
- """
292
- Adds a line into a file inside a marked region. The file section is
293
- kept ordered. The rest of the file is untouched.
294
- """
295
- with open(filename) as ignore_in:
296
- ignore_data = ignore_in.read()
297
- need_ignore = ignore_data.find(line) == -1
298
- if not need_ignore:
299
- return
300
-
301
- begin = ignore_data.find(MARKER_BEGIN)
302
- end = ignore_data.find(MARKER_END)
303
- if begin == -1 or end == -1:
304
- predata = ignore_data
305
- postdata = ""
306
- linedata = ""
307
- else:
308
- predata = ignore_data[:begin]
309
- postdata = ignore_data[(end + len(MARKER_END)) :]
310
- linedata = ignore_data[begin + len(MARKER_BEGIN) : end]
311
-
312
- lines = [y for y in [x.strip() for x in linedata.split("\n")] if len(y) > 0]
313
- lines.append(line)
314
-
315
- with open(filename, "w") as ignore_out:
316
- ignore_out.write(f"{predata}{MARKER_BEGIN}\n")
317
- ignore_out.write("\n".join(sorted(lines)))
318
- ignore_out.write(f"\n{MARKER_END}{postdata}")
319
-
320
-
321
286
  def _emit_type(ctx: EmitTypescriptContext, stype: builder.SpecType) -> None:
322
287
  if not isinstance(stype, builder.SpecTypeDefn):
323
288
  return