amalgam-lang 19.1.1__py3-none-macosx_12_0_arm64.whl → 20.0.1__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
@@ -874,6 +874,77 @@ class Amalgam:
874
874
 
875
875
  return result
876
876
 
877
+ def get_entity_permissions(
878
+ self,
879
+ handle: str
880
+ ) -> bytes:
881
+ """
882
+ Get the entity permissions as a JSON object.
883
+
884
+ Parameters
885
+ ----------
886
+ handle : str
887
+ The handle of the entity.
888
+
889
+ Returns
890
+ -------
891
+ str
892
+ A JSON object representing the entity permissions.
893
+ """
894
+ self.amlg.GetEntityPermissions.argtypes = [c_char_p]
895
+ self.amlg.GetEntityPermissions.restype = POINTER(c_char)
896
+ handle_buf = self.str_to_char_p(handle)
897
+
898
+ self._log_execution(f"GET_ENTITY_PERMISSIONS \"{self.escape_double_quotes(handle)}\"")
899
+ result = self.char_p_to_bytes(self.amlg.GetEntityPermissions(handle_buf))
900
+ self._log_reply(result)
901
+
902
+ del handle_buf
903
+ self.gc()
904
+
905
+ return result
906
+
907
+
908
+ def set_entity_permissions(
909
+ self,
910
+ handle: str,
911
+ json_permissions: str | bytes
912
+ ) -> bool:
913
+ """
914
+ Set the entity permissions to the object in json_permissions.
915
+ See Amalgam language documentation for details of valid permissions.
916
+
917
+ Parameters
918
+ ----------
919
+ handle : str
920
+ The handle of the entity.
921
+ json_permissions : str or bytes
922
+ A JSON object representing the entity permissions.
923
+
924
+ Returns
925
+ -------
926
+ bool
927
+ True if the set was successful, false if not.
928
+ """
929
+ self.amlg.SetEntityPermissions.argtypes = [c_char_p, c_char_p]
930
+ self.amlg.SetEntityPermissions.restype = c_bool
931
+ handle_buf = self.str_to_char_p(handle)
932
+ json_permissions_buf = self.str_to_char_p(json_permissions)
933
+
934
+ set_permissions_log_entry = (
935
+ f"SET_ENTITY_PERMISSIONS \"{self.escape_double_quotes(handle)}\" "
936
+ f"{json_permissions}"
937
+ )
938
+ self._log_execution(set_permissions_log_entry)
939
+ result = self.amlg.SetEntityPermissions(handle_buf, json_permissions_buf)
940
+ self._log_reply(result)
941
+
942
+ del handle_buf
943
+ del json_permissions_buf
944
+ self.gc()
945
+
946
+ return result
947
+
877
948
  def clone_entity(
878
949
  self,
879
950
  handle: str,
@@ -1053,9 +1124,9 @@ class Amalgam:
1053
1124
  handle_buf = self.str_to_char_p(handle)
1054
1125
  rand_seed_buf = self.str_to_char_p(rand_seed)
1055
1126
 
1056
- self._log_execution(f'SET_RANDOM_SEED "{self.escape_double_quotes(handle)}"'
1127
+ self._log_execution(f'SET_RANDOM_SEED "{self.escape_double_quotes(handle)}" '
1057
1128
  f'"{self.escape_double_quotes(rand_seed)}"')
1058
- result = self.amlg.SetRandomSeed(handle_buf, rand_seed)
1129
+ result = self.amlg.SetRandomSeed(handle_buf, rand_seed_buf)
1059
1130
  self._log_reply(None)
1060
1131
 
1061
1132
  del handle_buf
Binary file
Binary file
Binary file
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "62.1.1"
2
+ "version": "63.0.1"
3
3
  }
amalgam/lib/version.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "version": {
3
- "amalgam": "62.1.1",
4
- "amalgam_sha": "02405094faaaf3e2dbc233e391f8eb9f656f9fee",
5
- "amalgam_url": "https://github.com/howsoai/amalgam/releases/tag/62.1.1",
3
+ "amalgam": "63.0.1",
4
+ "amalgam_sha": "e58eefabb6f5ef5ec946dc15e9fecd6e8e4ee548",
5
+ "amalgam_url": "https://github.com/howsoai/amalgam/releases/tag/63.0.1",
6
6
  "amalgam_build_date": "",
7
7
  "amalgam_display_title": ""
8
8
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amalgam-lang
3
- Version: 19.1.1
3
+ Version: 20.0.1
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=zS2h1oKrNmXNERicQt6dcpjrOQ9XVm5PTf37AIDlMTI,44799
3
+ amalgam/lib/version.json,sha256=Ehva-dzn-4rAjkFTaBud0YSL_0QTZh46zLwbxpkGGjs,250
4
+ amalgam/lib/darwin/arm64/amalgam-mt.dylib,sha256=k7JofJYAi17hZ7czH2TaXsRRqeNrCrKfRacYZqWzEho,2951696
5
+ amalgam/lib/darwin/arm64/amalgam-omp.dylib,sha256=HCkSqzHrVvY13PWdEqAaSd5qNX2E-4A7KlFROCkfvLc,3313728
6
+ amalgam/lib/darwin/arm64/amalgam-st.dylib,sha256=-NNdFyrNl0ZGsitW4DD7MmDoB_XGbqGSPWNiPNNcJvw,2783280
7
+ amalgam/lib/darwin/arm64/docs/version.json,sha256=h86SR_2jLZvZjHBLFDC_q5Gg3AG5ej8E8iDGUMGVtDY,25
8
+ amalgam_lang-20.0.1.dist-info/licenses/LICENSE.txt,sha256=2xqHuoHohba7gpcZZKtOICRjzeKsQANXG8WoV9V35KM,33893
9
+ amalgam_lang-20.0.1.dist-info/METADATA,sha256=i38k1kYbU_AzwcgeHkp3VpwDW9VInWTF5nmpt-52rKY,43886
10
+ amalgam_lang-20.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
+ amalgam_lang-20.0.1.dist-info/top_level.txt,sha256=rmPHU144SyaB25u5-FAQyECAQnJ39NvuJEcKXMRcdBo,8
12
+ amalgam_lang-20.0.1.dist-info/RECORD,,
@@ -1,12 +0,0 @@
1
- amalgam/__init__.py,sha256=oHu7Zr4eGDUqj93pLwz8t7gLa8lpAx6Q-xbGiJ3nJx0,18
2
- amalgam/api.py,sha256=RJrJVNFg3-MJqfrGfdAr6p_eCYt2hoCQHypYuMnvcoY,42709
3
- amalgam/lib/version.json,sha256=Z3X8JKcJtqkK-9lLmoQMYnlDHRrtWtk3Zb23AtQJl90,250
4
- amalgam/lib/darwin/arm64/amalgam-mt.dylib,sha256=q-j76ebfltn-OioYuL0EeQTB8JVUmE9gKtQgXgVxQ_c,2932912
5
- amalgam/lib/darwin/arm64/amalgam-omp.dylib,sha256=ir2DMz4aUGMA3e5rkQjcMU8QBptH6PVS90e9jlYVgnQ,3311536
6
- amalgam/lib/darwin/arm64/amalgam-st.dylib,sha256=VScLdl6gctcAavZJO2r6p5V_GRwZybhV7Ypi-_ZsVxs,2781072
7
- amalgam/lib/darwin/arm64/docs/version.json,sha256=EVhPtQKyGrqQXEBB_NAepefAQjRm6JSQPR0ItyqEfRo,25
8
- amalgam_lang-19.1.1.dist-info/licenses/LICENSE.txt,sha256=2xqHuoHohba7gpcZZKtOICRjzeKsQANXG8WoV9V35KM,33893
9
- amalgam_lang-19.1.1.dist-info/METADATA,sha256=EpkT77p6wnUZnjH6ArukuQVIuNTs5kDLxT-eZ0RmbiY,43886
10
- amalgam_lang-19.1.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
- amalgam_lang-19.1.1.dist-info/top_level.txt,sha256=rmPHU144SyaB25u5-FAQyECAQnJ39NvuJEcKXMRcdBo,8
12
- amalgam_lang-19.1.1.dist-info/RECORD,,