amalgam-lang 15.0.7__py3-none-macosx_12_0_arm64.whl → 16.0.0__py3-none-macosx_12_0_arm64.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 amalgam-lang might be problematic. Click here for more details.

amalgam/api.py CHANGED
@@ -1058,6 +1058,49 @@ class Amalgam:
1058
1058
 
1059
1059
  return result
1060
1060
 
1061
+ def eval_on_entity(
1062
+ self,
1063
+ handle: str,
1064
+ amlg: str
1065
+ ) -> bytes:
1066
+ """
1067
+ Execute arbitrary Amalgam code against an entity.
1068
+
1069
+ Parameters
1070
+ ----------
1071
+ handle : str
1072
+ The handle of the amalgam entity.
1073
+ amlg : str
1074
+ The code to execute.
1075
+
1076
+ Returns
1077
+ -------
1078
+ bytes
1079
+ A byte-encoded json representation of the response.
1080
+
1081
+ """
1082
+ self.amlg.EvalOnEntity.restype = POINTER(c_char)
1083
+ self.amlg.EvalOnEntity.argtypes = [
1084
+ c_char_p, c_char_p]
1085
+ handle_buf = self.str_to_char_p(handle)
1086
+ amlg_buf = self.str_to_char_p(amlg)
1087
+
1088
+ self._log_time("EXECUTION START")
1089
+ self._log_execution((
1090
+ "EVAL_ON_ENTITY "
1091
+ f"\"{self.escape_double_quotes(handle)}\" "
1092
+ f"\"{self.escape_double_quotes(amlg)}\""
1093
+ ))
1094
+ result = self.char_p_to_bytes(self.amlg.EvalOnEntity(
1095
+ handle_buf, amlg_buf))
1096
+ self._log_time("EXECUTION STOP")
1097
+ self._log_reply(result)
1098
+
1099
+ del handle_buf
1100
+ del amlg_buf
1101
+
1102
+ return result
1103
+
1061
1104
  def get_version_string(self) -> bytes:
1062
1105
  """
1063
1106
  Get the version string of the amalgam dynamic library.
Binary file
Binary file
Binary file
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "57.0.9"
2
+ "version": "58.0.0"
3
3
  }
amalgam/lib/version.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "version": {
3
- "amalgam": "57.0.9",
4
- "amalgam_sha": "8ad85c55502c5615f88cacaff234fe8d6db18c3a",
5
- "amalgam_url": "https://github.com/howsoai/amalgam/releases/tag/57.0.9",
3
+ "amalgam": "58.0.0",
4
+ "amalgam_sha": "f797e187f376c7a45cc70be01a253edef8d01e5e",
5
+ "amalgam_url": "https://github.com/howsoai/amalgam/releases/tag/58.0.0",
6
6
  "amalgam_build_date": "",
7
7
  "amalgam_display_title": ""
8
8
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: amalgam-lang
3
- Version: 15.0.7
3
+ Version: 16.0.0
4
4
  Summary: A direct interface with Amalgam compiled DLL, dylib, or so.
5
5
  Author: Howso Incorporated
6
6
  Author-email: support@howso.com
@@ -0,0 +1,12 @@
1
+ amalgam/__init__.py,sha256=oHu7Zr4eGDUqj93pLwz8t7gLa8lpAx6Q-xbGiJ3nJx0,18
2
+ amalgam/api.py,sha256=-iK6AmVZk5fJuBVRmllT3Jmv-GbGq2I7XKIURo-ByO0,39296
3
+ amalgam/lib/version.json,sha256=ZqDqmXt4mkYPFUFGe-DKdmBQztBXr9lZNPP3mXjHhV4,250
4
+ amalgam/lib/darwin/arm64/amalgam-mt.dylib,sha256=HVhU0hGC2WYKdadtpicsOpS1xTrhWhlkQH5iRzpO1IU,2898912
5
+ amalgam/lib/darwin/arm64/amalgam-omp.dylib,sha256=sbo1sMjMlBdIm_8LxThQ-Whct8nZVIpF_m-wJg2hO8U,3322288
6
+ amalgam/lib/darwin/arm64/amalgam-st.dylib,sha256=FK9FHdTc9ka4tdzpQFsddjN_aA6XVO0BDJt6zm0QyjY,2791904
7
+ amalgam/lib/darwin/arm64/docs/version.json,sha256=vkT3SE1CNlzjDD1Twp5CLdApAO1e4MYnFbnLN41BW5I,25
8
+ amalgam_lang-16.0.0.dist-info/LICENSE.txt,sha256=2xqHuoHohba7gpcZZKtOICRjzeKsQANXG8WoV9V35KM,33893
9
+ amalgam_lang-16.0.0.dist-info/METADATA,sha256=nLchDWzZVCctfoyVN8AYZCOLZSLOXk5tEfe6Jv1dfps,43807
10
+ amalgam_lang-16.0.0.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
11
+ amalgam_lang-16.0.0.dist-info/top_level.txt,sha256=rmPHU144SyaB25u5-FAQyECAQnJ39NvuJEcKXMRcdBo,8
12
+ amalgam_lang-16.0.0.dist-info/RECORD,,
@@ -1,12 +0,0 @@
1
- amalgam/__init__.py,sha256=oHu7Zr4eGDUqj93pLwz8t7gLa8lpAx6Q-xbGiJ3nJx0,18
2
- amalgam/api.py,sha256=32K9fOdTJTiJYHqs3mX2q9dqxkLCA72POQ5Ri958Tzk,38164
3
- amalgam/lib/version.json,sha256=b9tDRrnPKYn6XqCvyq_s_McEZMBZIgk1LpFC2SW9oDY,250
4
- amalgam/lib/darwin/arm64/amalgam-mt.dylib,sha256=2xxPQ99UZkVD1ZyUgGp6gp6Tzy0TGnBMGhL_xSF5Hws,2896816
5
- amalgam/lib/darwin/arm64/amalgam-omp.dylib,sha256=TgQqSB939fCP1e_pOuYI2JYklBd6msBMSP4IGLiP7Mc,3320064
6
- amalgam/lib/darwin/arm64/amalgam-st.dylib,sha256=jG_sKfNpHRTEC4nX0wPqGfEU71O2LshQhGUI1N0byN8,2773200
7
- amalgam/lib/darwin/arm64/docs/version.json,sha256=-KmyGrhS5d1ChEHxEJ1xkFbhJ-sZ7ndV2vg-jvdC9x0,25
8
- amalgam_lang-15.0.7.dist-info/LICENSE.txt,sha256=2xqHuoHohba7gpcZZKtOICRjzeKsQANXG8WoV9V35KM,33893
9
- amalgam_lang-15.0.7.dist-info/METADATA,sha256=lV89BWLbhsE-BPgkP0vhiKPIWVI6eWrHDtqXFcwdGJo,43807
10
- amalgam_lang-15.0.7.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
11
- amalgam_lang-15.0.7.dist-info/top_level.txt,sha256=rmPHU144SyaB25u5-FAQyECAQnJ39NvuJEcKXMRcdBo,8
12
- amalgam_lang-15.0.7.dist-info/RECORD,,