amalgam-lang 7.2.0__py3-none-any.whl → 8.0.0__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 amalgam-lang might be problematic. Click here for more details.
- amalgam/api.py +103 -2
- amalgam/lib/darwin/amd64/amalgam-mt-noavx.dylib +0 -0
- amalgam/lib/darwin/amd64/amalgam-mt.dylib +0 -0
- amalgam/lib/darwin/amd64/amalgam-omp.dylib +0 -0
- amalgam/lib/darwin/amd64/amalgam-st.dylib +0 -0
- amalgam/lib/darwin/amd64/docs/version.json +1 -1
- amalgam/lib/darwin/arm64/amalgam-mt.dylib +0 -0
- amalgam/lib/darwin/arm64/amalgam-omp.dylib +0 -0
- amalgam/lib/darwin/arm64/amalgam-st.dylib +0 -0
- amalgam/lib/darwin/arm64/docs/version.json +1 -1
- amalgam/lib/linux/amd64/amalgam-mt-noavx.so +0 -0
- amalgam/lib/linux/amd64/amalgam-mt.so +0 -0
- amalgam/lib/linux/amd64/amalgam-omp.so +0 -0
- amalgam/lib/linux/amd64/amalgam-st.so +0 -0
- amalgam/lib/linux/amd64/docs/version.json +1 -1
- amalgam/lib/linux/arm64/amalgam-mt.so +0 -0
- amalgam/lib/linux/arm64/amalgam-omp.so +0 -0
- amalgam/lib/linux/arm64/amalgam-st.so +0 -0
- amalgam/lib/linux/arm64/docs/version.json +1 -1
- amalgam/lib/linux/arm64_8a/amalgam-st.so +0 -0
- amalgam/lib/linux/arm64_8a/docs/version.json +1 -1
- amalgam/lib/version.json +3 -3
- amalgam/lib/windows/amd64/amalgam-mt-noavx.dll +0 -0
- amalgam/lib/windows/amd64/amalgam-mt.dll +0 -0
- amalgam/lib/windows/amd64/amalgam-omp.dll +0 -0
- amalgam/lib/windows/amd64/amalgam-st.dll +0 -0
- amalgam/lib/windows/amd64/docs/version.json +1 -1
- {amalgam_lang-7.2.0.dist-info → amalgam_lang-8.0.0.dist-info}/METADATA +1 -1
- amalgam_lang-8.0.0.dist-info/RECORD +33 -0
- amalgam_lang-7.2.0.dist-info/RECORD +0 -33
- {amalgam_lang-7.2.0.dist-info → amalgam_lang-8.0.0.dist-info}/LICENSE.txt +0 -0
- {amalgam_lang-7.2.0.dist-info → amalgam_lang-8.0.0.dist-info}/WHEEL +0 -0
- {amalgam_lang-7.2.0.dist-info → amalgam_lang-8.0.0.dist-info}/top_level.txt +0 -0
amalgam/api.py
CHANGED
|
@@ -664,10 +664,10 @@ class Amalgam:
|
|
|
664
664
|
The handle to assign the entity.
|
|
665
665
|
amlg_path : str
|
|
666
666
|
The path to the filename.amlg/caml file.
|
|
667
|
-
persist : bool
|
|
667
|
+
persist : bool, default False
|
|
668
668
|
If set to true, all transactions will trigger the entity to be
|
|
669
669
|
saved over the original source.
|
|
670
|
-
load_contained : bool
|
|
670
|
+
load_contained : bool, default False
|
|
671
671
|
If set to true, contained entities will be loaded.
|
|
672
672
|
write_log : str, default ""
|
|
673
673
|
Path to the write log. If empty string, the write log is
|
|
@@ -737,6 +737,71 @@ class Amalgam:
|
|
|
737
737
|
self.gc()
|
|
738
738
|
|
|
739
739
|
return result
|
|
740
|
+
|
|
741
|
+
def clone_entity(
|
|
742
|
+
self,
|
|
743
|
+
handle: str,
|
|
744
|
+
clone_handle: str,
|
|
745
|
+
amlg_path: str = "",
|
|
746
|
+
persist: bool = False,
|
|
747
|
+
write_log: str = "",
|
|
748
|
+
print_log: str = ""
|
|
749
|
+
) -> bool:
|
|
750
|
+
"""
|
|
751
|
+
Clones entity specified by handle into a new entity specified by clone_handle.
|
|
752
|
+
|
|
753
|
+
Parameters
|
|
754
|
+
----------
|
|
755
|
+
handle : str
|
|
756
|
+
The handle of the amalgam entity to clone.
|
|
757
|
+
clone_handle : str
|
|
758
|
+
The handle to clone the entity into.
|
|
759
|
+
amlg_path : str, default ""
|
|
760
|
+
The path to store the filename.amlg/caml file. Only relevant if persist is True.
|
|
761
|
+
persist : bool, default False
|
|
762
|
+
If set to true, all transactions will trigger the entity to be
|
|
763
|
+
saved over the original source.
|
|
764
|
+
write_log : str, default ""
|
|
765
|
+
Path to the write log. If empty string, the write log is
|
|
766
|
+
not generated.
|
|
767
|
+
print_log : str, default ""
|
|
768
|
+
Path to the print log. If empty string, the print log is
|
|
769
|
+
not generated.
|
|
770
|
+
|
|
771
|
+
Returns
|
|
772
|
+
-------
|
|
773
|
+
bool
|
|
774
|
+
True if cloned successfully, False if not.
|
|
775
|
+
"""
|
|
776
|
+
self.amlg.CloneEntity.argtype = [
|
|
777
|
+
c_char_p, c_char_p, c_char_p, c_bool, c_char_p, c_char_p]
|
|
778
|
+
handle_buf = self.str_to_char_p(handle)
|
|
779
|
+
clone_handle_buf = self.str_to_char_p(clone_handle)
|
|
780
|
+
amlg_path_buf = self.str_to_char_p(amlg_path)
|
|
781
|
+
write_log_buf = self.str_to_char_p(write_log)
|
|
782
|
+
print_log_buf = self.str_to_char_p(print_log)
|
|
783
|
+
|
|
784
|
+
clone_command_log_entry = (
|
|
785
|
+
f'CLONE_ENTITY "{self.escape_double_quotes(handle)}" '
|
|
786
|
+
f'"{self.escape_double_quotes(clone_handle)}" '
|
|
787
|
+
f'"{self.escape_double_quotes(amlg_path)}" {str(persist).lower()} '
|
|
788
|
+
f'"{write_log}" "{print_log}"'
|
|
789
|
+
)
|
|
790
|
+
self._log_execution(clone_command_log_entry)
|
|
791
|
+
result = self.amlg.LoadEntity(
|
|
792
|
+
handle_buf, amlg_path_buf, persist,
|
|
793
|
+
write_log_buf, print_log_buf)
|
|
794
|
+
self._log_reply(result)
|
|
795
|
+
|
|
796
|
+
del handle_buf
|
|
797
|
+
del clone_handle_buf
|
|
798
|
+
del amlg_path_buf
|
|
799
|
+
del write_log_buf
|
|
800
|
+
del print_log_buf
|
|
801
|
+
self.gc()
|
|
802
|
+
|
|
803
|
+
return result
|
|
804
|
+
|
|
740
805
|
|
|
741
806
|
def store_entity(
|
|
742
807
|
self,
|
|
@@ -801,6 +866,42 @@ class Amalgam:
|
|
|
801
866
|
del handle_buf
|
|
802
867
|
self.gc()
|
|
803
868
|
|
|
869
|
+
def set_random_seed(
|
|
870
|
+
self,
|
|
871
|
+
handle: str,
|
|
872
|
+
rand_seed: str
|
|
873
|
+
) -> bool:
|
|
874
|
+
"""
|
|
875
|
+
Sets an entity's random seed.
|
|
876
|
+
|
|
877
|
+
Parameters
|
|
878
|
+
----------
|
|
879
|
+
handle : str
|
|
880
|
+
The handle of the amalgam entity.
|
|
881
|
+
rand_seed : str
|
|
882
|
+
A string representing the random seed to set.
|
|
883
|
+
|
|
884
|
+
Returns
|
|
885
|
+
-------
|
|
886
|
+
bool
|
|
887
|
+
True if the set was successful, false if not.
|
|
888
|
+
"""
|
|
889
|
+
self.amlg.SetRandomSeed.argtype = [c_char_p, c_char_p]
|
|
890
|
+
self.amlg.SetRandomSeed.restype = c_bool
|
|
891
|
+
|
|
892
|
+
handle_buf = self.str_to_char_p(handle)
|
|
893
|
+
rand_seed_buf = self.str_to_char_p(rand_seed)
|
|
894
|
+
|
|
895
|
+
self._log_execution(f'SET_RANDOM_SEED "{self.escape_double_quotes(handle)}"'
|
|
896
|
+
f'"{self.escape_double_quotes(rand_seed)}"')
|
|
897
|
+
result = self.amlg.SetRandomSeed(handle_buf, rand_seed)
|
|
898
|
+
self._log_reply(None)
|
|
899
|
+
|
|
900
|
+
del handle_buf
|
|
901
|
+
del rand_seed_buf
|
|
902
|
+
self.gc()
|
|
903
|
+
return result
|
|
904
|
+
|
|
804
905
|
def get_entities(self) -> List[str]:
|
|
805
906
|
"""
|
|
806
907
|
Get loaded top level entities.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
amalgam/lib/version.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": {
|
|
3
|
-
"amalgam": "
|
|
4
|
-
"amalgam_sha": "
|
|
5
|
-
"amalgam_url": "https://github.com/howsoai/amalgam/releases/tag/
|
|
3
|
+
"amalgam": "49.0.0",
|
|
4
|
+
"amalgam_sha": "af48bc36a3a041676746ec7359f89af828aab494",
|
|
5
|
+
"amalgam_url": "https://github.com/howsoai/amalgam/releases/tag/49.0.0",
|
|
6
6
|
"amalgam_build_date": "",
|
|
7
7
|
"amalgam_display_title": ""
|
|
8
8
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
amalgam/__init__.py,sha256=oHu7Zr4eGDUqj93pLwz8t7gLa8lpAx6Q-xbGiJ3nJx0,18
|
|
2
|
+
amalgam/api.py,sha256=10BFeXShtVxzacxfjBUoZzJBYS0vMf5qlle3jN4DD3M,40396
|
|
3
|
+
amalgam/lib/version.json,sha256=D_0dEnv4QZ64AvvfAi9YRnVz-IwTFK1v3AQLcUbbdv0,250
|
|
4
|
+
amalgam/lib/darwin/amd64/amalgam-mt-noavx.dylib,sha256=IMZs8Op58dBfsbz452osdKefWC4Pv7D23R95JnQDAI4,2656400
|
|
5
|
+
amalgam/lib/darwin/amd64/amalgam-mt.dylib,sha256=NX2-QsyDtE1Y6paE9MArIomXD7fGTTpgs-25i-M-3Ew,2602888
|
|
6
|
+
amalgam/lib/darwin/amd64/amalgam-omp.dylib,sha256=0iJKiVJOjlGYQk8vwChzBdwW06wOaeYLh2V6-Xtt6dI,3002600
|
|
7
|
+
amalgam/lib/darwin/amd64/amalgam-st.dylib,sha256=-Ah2_4ZXybmENAYgmaP4laSSkR2uJRSNQPjctzSvaqA,2500816
|
|
8
|
+
amalgam/lib/darwin/amd64/docs/version.json,sha256=AUaRC3XrMH3Fl223D9jqoFXuGw6DSlp2mmk7cI44c6A,25
|
|
9
|
+
amalgam/lib/darwin/arm64/amalgam-mt.dylib,sha256=Xt0bQZbqmwQXfuUKDBWs36s1auHblt6RihsP1zgSE8E,2197936
|
|
10
|
+
amalgam/lib/darwin/arm64/amalgam-omp.dylib,sha256=eORUq75REhJc8iRgBYuFbds82i1ExBKzK4RXQyKrcSE,2639520
|
|
11
|
+
amalgam/lib/darwin/arm64/amalgam-st.dylib,sha256=T_bHD5m5854IrzyVV3cKJmiywWhCSFTy_YbluqIM8a4,2142432
|
|
12
|
+
amalgam/lib/darwin/arm64/docs/version.json,sha256=AUaRC3XrMH3Fl223D9jqoFXuGw6DSlp2mmk7cI44c6A,25
|
|
13
|
+
amalgam/lib/linux/amd64/amalgam-mt-noavx.so,sha256=Y9ZY5J2kcBAJipRC9-xzfDC35qtEGfGC1GbYRJWFX-k,3238040
|
|
14
|
+
amalgam/lib/linux/amd64/amalgam-mt.so,sha256=5_YIFFqRPd9l6j5ydpFFay3GDbVXQQM90OVgr61DqCE,3266680
|
|
15
|
+
amalgam/lib/linux/amd64/amalgam-omp.so,sha256=w7QmbbsY45g9Uw2K63aB2Q_GB1lafri1NE5k3rfNUvA,3057272
|
|
16
|
+
amalgam/lib/linux/amd64/amalgam-st.so,sha256=un3EK3GfxFjEAJ6TzY0l61n7ha0qW7Ipx90mJ_X14DI,3053080
|
|
17
|
+
amalgam/lib/linux/amd64/docs/version.json,sha256=AUaRC3XrMH3Fl223D9jqoFXuGw6DSlp2mmk7cI44c6A,25
|
|
18
|
+
amalgam/lib/linux/arm64/amalgam-mt.so,sha256=QxlUuudTIA01iib0ftPQGjh-Pw53orDiBngtDoLY8e4,2803200
|
|
19
|
+
amalgam/lib/linux/arm64/amalgam-omp.so,sha256=dYDnlI3Z91khK21s1rPl96NjGT4phcvpCjYJikAVJKA,2622456
|
|
20
|
+
amalgam/lib/linux/arm64/amalgam-st.so,sha256=5Ajw28-a2nooHHTY3kNR-A940qOQygvMjjoXj7dZwyE,2605976
|
|
21
|
+
amalgam/lib/linux/arm64/docs/version.json,sha256=AUaRC3XrMH3Fl223D9jqoFXuGw6DSlp2mmk7cI44c6A,25
|
|
22
|
+
amalgam/lib/linux/arm64_8a/amalgam-st.so,sha256=YPymTzYOTLWs81FK2ZEYvNpKATIGgN-H3Vy5DFXz2K8,2552248
|
|
23
|
+
amalgam/lib/linux/arm64_8a/docs/version.json,sha256=AUaRC3XrMH3Fl223D9jqoFXuGw6DSlp2mmk7cI44c6A,25
|
|
24
|
+
amalgam/lib/windows/amd64/amalgam-mt-noavx.dll,sha256=5uQ_CQn5ZD3GzbXASSmDR6UbazWz_xm5SkuzUJiMBfc,2564096
|
|
25
|
+
amalgam/lib/windows/amd64/amalgam-mt.dll,sha256=nY85SzwS5kbHdEvgeJDPh4rRtNYS5zVwR7GboSUjOHQ,2505216
|
|
26
|
+
amalgam/lib/windows/amd64/amalgam-omp.dll,sha256=EskNLcWaRm2CnHFLOrXyraerCF1nFu000Xq3ZjcARFs,2419712
|
|
27
|
+
amalgam/lib/windows/amd64/amalgam-st.dll,sha256=HgXAsFVmlR-VHCriI5gOsn2sNK8x7xpJf4-u_20FLfY,2418176
|
|
28
|
+
amalgam/lib/windows/amd64/docs/version.json,sha256=cLcYqDfglyi16NQHydIWYUMvKuCEHG3q6HNw7SvWMKI,27
|
|
29
|
+
amalgam_lang-8.0.0.dist-info/LICENSE.txt,sha256=2xqHuoHohba7gpcZZKtOICRjzeKsQANXG8WoV9V35KM,33893
|
|
30
|
+
amalgam_lang-8.0.0.dist-info/METADATA,sha256=3Q5bn9YQNF4dKv_VNVjSYfeJdxH64lWxAYc2T_i_UHM,43351
|
|
31
|
+
amalgam_lang-8.0.0.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
|
32
|
+
amalgam_lang-8.0.0.dist-info/top_level.txt,sha256=rmPHU144SyaB25u5-FAQyECAQnJ39NvuJEcKXMRcdBo,8
|
|
33
|
+
amalgam_lang-8.0.0.dist-info/RECORD,,
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
amalgam/__init__.py,sha256=oHu7Zr4eGDUqj93pLwz8t7gLa8lpAx6Q-xbGiJ3nJx0,18
|
|
2
|
-
amalgam/api.py,sha256=EKH3yK0Agpy6HtqtvzYvS5yVsNo7ICwrIwf31q2xM8w,37106
|
|
3
|
-
amalgam/lib/version.json,sha256=W8_nxG0KMVlaoO6ghUkU5iWbxNlJlGPv5s550on0tmg,250
|
|
4
|
-
amalgam/lib/darwin/amd64/amalgam-mt-noavx.dylib,sha256=cFMAxFm1bLUY3bUpa9PLzTfAb4Tw-ND00ZXkYKJ0DTw,2639616
|
|
5
|
-
amalgam/lib/darwin/amd64/amalgam-mt.dylib,sha256=MGw5cZr6BiHwe_VixxB0YO8uB6npmEuHsJT5RCibSmE,2586104
|
|
6
|
-
amalgam/lib/darwin/amd64/amalgam-omp.dylib,sha256=T9QJzmQtYyQ8Y8iqWKGwKoy_euGc6x8UTNVVh5tm2Mo,2985760
|
|
7
|
-
amalgam/lib/darwin/amd64/amalgam-st.dylib,sha256=3L1AsAuBOyDWg8hr34vvFgmTXMB13cdYbtKXIONzX30,2500440
|
|
8
|
-
amalgam/lib/darwin/amd64/docs/version.json,sha256=HMvgd1VMII7hT28C2HHSQuZhghv_a8PRz_8Trf1HjjI,25
|
|
9
|
-
amalgam/lib/darwin/arm64/amalgam-mt.dylib,sha256=kxFxEs5hpO2GleaxVyAEV1Qrj2MkasrQYmSQ-j1Vibs,2197552
|
|
10
|
-
amalgam/lib/darwin/arm64/amalgam-omp.dylib,sha256=_3OGnGP9F6TFIJUqHcvKu3CZHK9g72T0Jt2mwGhpi1s,2639152
|
|
11
|
-
amalgam/lib/darwin/arm64/amalgam-st.dylib,sha256=Xrqom3HON9OhFOSWh2fOc-TkWAP-8FqT0-tnGT3fgok,2125520
|
|
12
|
-
amalgam/lib/darwin/arm64/docs/version.json,sha256=HMvgd1VMII7hT28C2HHSQuZhghv_a8PRz_8Trf1HjjI,25
|
|
13
|
-
amalgam/lib/linux/amd64/amalgam-mt-noavx.so,sha256=3-rccbdlQ4RHEV4Ftqo9wArkfY9V8sSh6shxsjTbyDI,3229816
|
|
14
|
-
amalgam/lib/linux/amd64/amalgam-mt.so,sha256=Ur4FSZG4o_3Qn552XU4F0sOBta6WuV62uj0DFbAlJCA,3258456
|
|
15
|
-
amalgam/lib/linux/amd64/amalgam-omp.so,sha256=ZwFm9EUmfH1Hf3uQmpsd6bbLparCU3f87HO7rO2xIDc,3057240
|
|
16
|
-
amalgam/lib/linux/amd64/amalgam-st.so,sha256=CW_5LvVR93RXTXbjdV5v7DJNse2n1gsxLVMeeEIi_Jk,3053048
|
|
17
|
-
amalgam/lib/linux/amd64/docs/version.json,sha256=HMvgd1VMII7hT28C2HHSQuZhghv_a8PRz_8Trf1HjjI,25
|
|
18
|
-
amalgam/lib/linux/arm64/amalgam-mt.so,sha256=u8z-xDUFiFqYm9ntptk9OYept1mguyS9-KQ2Y1LuUpI,2803176
|
|
19
|
-
amalgam/lib/linux/arm64/amalgam-omp.so,sha256=_TvXT4jpHn7gfRFpCd3lEDZUFDC51rLn8igI9W_CSJk,2610136
|
|
20
|
-
amalgam/lib/linux/arm64/amalgam-st.so,sha256=DXaT1lZwmpb2oFUXXlRZy_U8dLxiEMOhyz_K80WjdVo,2610040
|
|
21
|
-
amalgam/lib/linux/arm64/docs/version.json,sha256=HMvgd1VMII7hT28C2HHSQuZhghv_a8PRz_8Trf1HjjI,25
|
|
22
|
-
amalgam/lib/linux/arm64_8a/amalgam-st.so,sha256=r5hDBsd4QZeL2S5934a5jMWjBppXCfJW3K58q_GboX0,2552224
|
|
23
|
-
amalgam/lib/linux/arm64_8a/docs/version.json,sha256=HMvgd1VMII7hT28C2HHSQuZhghv_a8PRz_8Trf1HjjI,25
|
|
24
|
-
amalgam/lib/windows/amd64/amalgam-mt-noavx.dll,sha256=cyxqMgYPnKHd3UmPbnFEwkqKBF5RZKUhKEA3CuHtSOY,2562560
|
|
25
|
-
amalgam/lib/windows/amd64/amalgam-mt.dll,sha256=1YlhbJjXMdcyEH2LnMmhL-5eVV8l_hSsXg2pryxFBKs,2504192
|
|
26
|
-
amalgam/lib/windows/amd64/amalgam-omp.dll,sha256=3ydyO1QyYa2RHZyj6JSuQCzpTisDFSPdYX4UYW_Jk0Q,2417664
|
|
27
|
-
amalgam/lib/windows/amd64/amalgam-st.dll,sha256=OGqXNDe8HIEK7cuyl7ENcyOS4EooeDNBNV1apqXhSEc,2416640
|
|
28
|
-
amalgam/lib/windows/amd64/docs/version.json,sha256=Sv3ShUvvQE-bPVCuBZ__2ryg4zcmJ7EIef2OgSQ5tdc,27
|
|
29
|
-
amalgam_lang-7.2.0.dist-info/LICENSE.txt,sha256=2xqHuoHohba7gpcZZKtOICRjzeKsQANXG8WoV9V35KM,33893
|
|
30
|
-
amalgam_lang-7.2.0.dist-info/METADATA,sha256=ZZXB3klw6L3c5OqnVTyHNmidKLJTqje7AqgNXKb_IIk,43351
|
|
31
|
-
amalgam_lang-7.2.0.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
|
32
|
-
amalgam_lang-7.2.0.dist-info/top_level.txt,sha256=rmPHU144SyaB25u5-FAQyECAQnJ39NvuJEcKXMRcdBo,8
|
|
33
|
-
amalgam_lang-7.2.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|