amalgam-lang 9.0.0__py3-none-any.whl → 10.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.

Files changed (33) hide show
  1. amalgam/api.py +17 -4
  2. amalgam/lib/darwin/amd64/amalgam-mt-noavx.dylib +0 -0
  3. amalgam/lib/darwin/amd64/amalgam-mt.dylib +0 -0
  4. amalgam/lib/darwin/amd64/amalgam-omp.dylib +0 -0
  5. amalgam/lib/darwin/amd64/amalgam-st.dylib +0 -0
  6. amalgam/lib/darwin/amd64/docs/version.json +1 -1
  7. amalgam/lib/darwin/arm64/amalgam-mt.dylib +0 -0
  8. amalgam/lib/darwin/arm64/amalgam-omp.dylib +0 -0
  9. amalgam/lib/darwin/arm64/amalgam-st.dylib +0 -0
  10. amalgam/lib/darwin/arm64/docs/version.json +1 -1
  11. amalgam/lib/linux/amd64/amalgam-mt-noavx.so +0 -0
  12. amalgam/lib/linux/amd64/amalgam-mt.so +0 -0
  13. amalgam/lib/linux/amd64/amalgam-omp.so +0 -0
  14. amalgam/lib/linux/amd64/amalgam-st.so +0 -0
  15. amalgam/lib/linux/amd64/docs/version.json +1 -1
  16. amalgam/lib/linux/arm64/amalgam-mt.so +0 -0
  17. amalgam/lib/linux/arm64/amalgam-omp.so +0 -0
  18. amalgam/lib/linux/arm64/amalgam-st.so +0 -0
  19. amalgam/lib/linux/arm64/docs/version.json +1 -1
  20. amalgam/lib/linux/arm64_8a/amalgam-st.so +0 -0
  21. amalgam/lib/linux/arm64_8a/docs/version.json +1 -1
  22. amalgam/lib/version.json +3 -3
  23. amalgam/lib/windows/amd64/amalgam-mt-noavx.dll +0 -0
  24. amalgam/lib/windows/amd64/amalgam-mt.dll +0 -0
  25. amalgam/lib/windows/amd64/amalgam-omp.dll +0 -0
  26. amalgam/lib/windows/amd64/amalgam-st.dll +0 -0
  27. amalgam/lib/windows/amd64/docs/version.json +1 -1
  28. {amalgam_lang-9.0.0.dist-info → amalgam_lang-10.0.0.dist-info}/METADATA +3 -3
  29. amalgam_lang-10.0.0.dist-info/RECORD +33 -0
  30. amalgam_lang-9.0.0.dist-info/RECORD +0 -33
  31. {amalgam_lang-9.0.0.dist-info → amalgam_lang-10.0.0.dist-info}/LICENSE.txt +0 -0
  32. {amalgam_lang-9.0.0.dist-info → amalgam_lang-10.0.0.dist-info}/WHEEL +0 -0
  33. {amalgam_lang-9.0.0.dist-info → amalgam_lang-10.0.0.dist-info}/top_level.txt +0 -0
amalgam/api.py CHANGED
@@ -650,8 +650,11 @@ class Amalgam:
650
650
  self,
651
651
  handle: str,
652
652
  amlg_path: str,
653
+ *,
653
654
  persist: bool = False,
654
655
  load_contained: bool = False,
656
+ escape_filename: bool = False,
657
+ escape_contained_filenames: bool = True,
655
658
  write_log: str = "",
656
659
  print_log: str = ""
657
660
  ) -> LoadEntityStatus:
@@ -669,6 +672,11 @@ class Amalgam:
669
672
  saved over the original source.
670
673
  load_contained : bool, default False
671
674
  If set to true, contained entities will be loaded.
675
+ escape_filename : bool, default False
676
+ If set to true, the filename will be aggressively escaped.
677
+ escape_contained_filenames : bool, default True
678
+ If set to true, the filenames of contained entities will be
679
+ aggressively escaped.
672
680
  write_log : str, default ""
673
681
  Path to the write log. If empty string, the write log is
674
682
  not generated.
@@ -682,7 +690,7 @@ class Amalgam:
682
690
  Status of LoadEntity call.
683
691
  """
684
692
  self.amlg.LoadEntity.argtype = [
685
- c_char_p, c_char_p, c_bool, c_bool, c_char_p, c_char_p]
693
+ c_char_p, c_char_p, c_bool, c_bool, c_bool, c_bool, c_char_p, c_char_p]
686
694
  self.amlg.LoadEntity.restype = _LoadEntityStatus
687
695
  handle_buf = self.str_to_char_p(handle)
688
696
  amlg_path_buf = self.str_to_char_p(amlg_path)
@@ -692,11 +700,14 @@ class Amalgam:
692
700
  load_command_log_entry = (
693
701
  f"LOAD_ENTITY \"{self.escape_double_quotes(handle)}\" "
694
702
  f"\"{self.escape_double_quotes(amlg_path)}\" {str(persist).lower()} "
695
- f"{str(load_contained).lower()} \"{write_log}\" \"{print_log}\""
703
+ f"{str(load_contained).lower()} {str(escape_filename).lower()} "
704
+ f"{str(escape_contained_filenames).lower()} \"{write_log}\" "
705
+ f"\"{print_log}\""
696
706
  )
697
707
  self._log_execution(load_command_log_entry)
698
708
  result = LoadEntityStatus(self, self.amlg.LoadEntity(
699
709
  handle_buf, amlg_path_buf, persist, load_contained,
710
+ escape_filename, escape_contained_filenames,
700
711
  write_log_buf, print_log_buf))
701
712
  self._log_reply(result)
702
713
 
@@ -742,6 +753,7 @@ class Amalgam:
742
753
  self,
743
754
  handle: str,
744
755
  clone_handle: str,
756
+ *,
745
757
  amlg_path: str = "",
746
758
  persist: bool = False,
747
759
  write_log: str = "",
@@ -788,8 +800,8 @@ class Amalgam:
788
800
  f'"{write_log}" "{print_log}"'
789
801
  )
790
802
  self._log_execution(clone_command_log_entry)
791
- result = self.amlg.LoadEntity(
792
- handle_buf, amlg_path_buf, persist,
803
+ result = self.amlg.CloneEntity(
804
+ handle_buf, clone_handle_buf, amlg_path_buf, persist,
793
805
  write_log_buf, print_log_buf)
794
806
  self._log_reply(result)
795
807
 
@@ -806,6 +818,7 @@ class Amalgam:
806
818
  self,
807
819
  handle: str,
808
820
  amlg_path: str,
821
+ *,
809
822
  update_persistence_location: bool = False,
810
823
  store_contained: bool = False
811
824
  ) -> None:
Binary file
Binary file
Binary file
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "50.0.0"
2
+ "version": "51.0.0"
3
3
  }
Binary file
Binary file
Binary file
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "50.0.0"
2
+ "version": "51.0.0"
3
3
  }
Binary file
Binary file
Binary file
Binary file
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "50.0.0"
2
+ "version": "51.0.0"
3
3
  }
Binary file
Binary file
Binary file
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "50.0.0"
2
+ "version": "51.0.0"
3
3
  }
Binary file
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "50.0.0"
2
+ "version": "51.0.0"
3
3
  }
amalgam/lib/version.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "version": {
3
- "amalgam": "50.0.0",
4
- "amalgam_sha": "6d43623c481507fd73b8c3873d140f2f41caa7c7",
5
- "amalgam_url": "https://github.com/howsoai/amalgam/releases/tag/50.0.0",
3
+ "amalgam": "51.0.0",
4
+ "amalgam_sha": "99b424f7df08950d6adecf400a720764afdfade4",
5
+ "amalgam_url": "https://github.com/howsoai/amalgam/releases/tag/51.0.0",
6
6
  "amalgam_build_date": "",
7
7
  "amalgam_display_title": ""
8
8
  }
Binary file
Binary file
Binary file
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "50.0.0"
2
+ "version": "51.0.0"
3
3
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: amalgam-lang
3
- Version: 9.0.0
3
+ Version: 10.0.0
4
4
  Summary: A direct interface with Amalgam compiled DLL or so.
5
5
  Author: Howso Incorporated
6
6
  Author-email: support@howso.com
@@ -675,17 +675,17 @@ Classifier: Intended Audience :: Science/Research
675
675
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
676
676
  Classifier: License :: OSI Approved :: GNU Affero General Public License v3
677
677
  Classifier: Programming Language :: Python :: 3
678
- Classifier: Programming Language :: Python :: 3.8
679
678
  Classifier: Programming Language :: Python :: 3.9
680
679
  Classifier: Programming Language :: Python :: 3.10
681
680
  Classifier: Programming Language :: Python :: 3.11
681
+ Classifier: Programming Language :: Python :: 3.12
682
682
  Classifier: Operating System :: MacOS
683
683
  Classifier: Operating System :: MacOS :: MacOS X
684
684
  Classifier: Operating System :: Microsoft :: Windows
685
685
  Classifier: Operating System :: Microsoft :: Windows :: Windows 10
686
686
  Classifier: Operating System :: Microsoft :: Windows :: Windows 11
687
687
  Classifier: Operating System :: POSIX :: Linux
688
- Requires-Python: >=3.8
688
+ Requires-Python: >=3.9
689
689
  Description-Content-Type: text/markdown
690
690
  License-File: LICENSE.txt
691
691
  Provides-Extra: dev
@@ -0,0 +1,33 @@
1
+ amalgam/__init__.py,sha256=oHu7Zr4eGDUqj93pLwz8t7gLa8lpAx6Q-xbGiJ3nJx0,18
2
+ amalgam/api.py,sha256=jNrmNzRdkKTym8B0QHLA-nDUFbCtjwimgDX9Uub5rUI,40993
3
+ amalgam/lib/version.json,sha256=-mFy7Urwtdr8Y2iJo7xeev_n1o_uj8iFYldbaT53yTM,250
4
+ amalgam/lib/darwin/amd64/amalgam-mt-noavx.dylib,sha256=4jZGLBeI3z73-H_ou3zrhkRD9QaAj5YlLdZrt4N6WFc,2738736
5
+ amalgam/lib/darwin/amd64/amalgam-mt.dylib,sha256=GJubDgCeVvhbgGpP_5YjHDlGfdaM4mMqNDre9FeQ7Xs,2685248
6
+ amalgam/lib/darwin/amd64/amalgam-omp.dylib,sha256=FTkbH-t_Tgwivhkxq2q3XRtM2NsJhUDx2hRTwKxqXQs,3068848
7
+ amalgam/lib/darwin/amd64/amalgam-st.dylib,sha256=UncLTYicj8vFXz3g2smp5XtP8OJ-Bduahzkbnazxlbk,2583024
8
+ amalgam/lib/darwin/amd64/docs/version.json,sha256=r8rPSuzDITH6lO_JssxBzikTGwSVHkR4D-rYxXbhlDk,25
9
+ amalgam/lib/darwin/arm64/amalgam-mt.dylib,sha256=wJhsUHa616ZM0Lu4ZsStpOJXr6rHSZG-6zdlwaHTn1c,2247872
10
+ amalgam/lib/darwin/arm64/amalgam-omp.dylib,sha256=m-cwS8_n8tcF0661B-DpQVbYQys5xV80qIzski-_NmU,2672848
11
+ amalgam/lib/darwin/arm64/amalgam-st.dylib,sha256=58ZSOhdgR4uIPknUiVQ0xbVfCnLzHD0W75r6j9PRf7o,2175696
12
+ amalgam/lib/darwin/arm64/docs/version.json,sha256=r8rPSuzDITH6lO_JssxBzikTGwSVHkR4D-rYxXbhlDk,25
13
+ amalgam/lib/linux/amd64/amalgam-mt-noavx.so,sha256=DNbTdUpWp7nF6tUaMxrzrSx2kQY5FxKFiJrqMzBzcGs,3283320
14
+ amalgam/lib/linux/amd64/amalgam-mt.so,sha256=VSflGa3QtswL4x81QZv_pDG3HgCtJLSq9xIyWAGL8-Y,3307896
15
+ amalgam/lib/linux/amd64/amalgam-omp.so,sha256=SwqjrvkOshDDhqva3-vrXyQvGKOe83ygN70YgVue27Q,3106680
16
+ amalgam/lib/linux/amd64/amalgam-st.so,sha256=9t_SihA7q61ksE-YUy0fGc1cGOGy--4HYOG12z-Pugs,3098392
17
+ amalgam/lib/linux/amd64/docs/version.json,sha256=r8rPSuzDITH6lO_JssxBzikTGwSVHkR4D-rYxXbhlDk,25
18
+ amalgam/lib/linux/arm64/amalgam-mt.so,sha256=p2HB28kwGTjsd8fKd-8PqPbzasxJSvPEgV40_BxJASk,2832080
19
+ amalgam/lib/linux/arm64/amalgam-omp.so,sha256=ZjWgfoc-y5W9tKRDr0mc0viBLuEkVFDoGtv9C4BmeYg,2626744
20
+ amalgam/lib/linux/arm64/amalgam-st.so,sha256=KdW1dk1JuAxPnCxxEfIHeJ-OTWZnzQiO8N6v46XLvps,2614360
21
+ amalgam/lib/linux/arm64/docs/version.json,sha256=r8rPSuzDITH6lO_JssxBzikTGwSVHkR4D-rYxXbhlDk,25
22
+ amalgam/lib/linux/arm64_8a/amalgam-st.so,sha256=q8uadxGksIZCjKYkx3mcwAiHNWR4FyetlijWrX-CFFU,2568816
23
+ amalgam/lib/linux/arm64_8a/docs/version.json,sha256=r8rPSuzDITH6lO_JssxBzikTGwSVHkR4D-rYxXbhlDk,25
24
+ amalgam/lib/windows/amd64/amalgam-mt-noavx.dll,sha256=G7spOR9KS9TzYcveX-oL6qHOZn6nm7fHK3gVSWzXnbA,2587136
25
+ amalgam/lib/windows/amd64/amalgam-mt.dll,sha256=TuflUzpInRnu8BGQDuYHzaf2tVT4_LNOvlPDbUVI83k,2522112
26
+ amalgam/lib/windows/amd64/amalgam-omp.dll,sha256=m4XgiYqzzhhc_sXB3D59qoudci60kONe2FlYkE60V58,2435584
27
+ amalgam/lib/windows/amd64/amalgam-st.dll,sha256=SF2GQ4wNISFzIIqO69h3g1zRNs91RKxZgFQST9L23PU,2434560
28
+ amalgam/lib/windows/amd64/docs/version.json,sha256=V8M2xjl9puKbemZiTTp6dT9O29vAC0W0hwx8FCopPWo,27
29
+ amalgam_lang-10.0.0.dist-info/LICENSE.txt,sha256=2xqHuoHohba7gpcZZKtOICRjzeKsQANXG8WoV9V35KM,33893
30
+ amalgam_lang-10.0.0.dist-info/METADATA,sha256=5jAktpQp3iXxJvIeSMZCrK-YjFBt_asUQS8MaRvnSxU,43353
31
+ amalgam_lang-10.0.0.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
32
+ amalgam_lang-10.0.0.dist-info/top_level.txt,sha256=rmPHU144SyaB25u5-FAQyECAQnJ39NvuJEcKXMRcdBo,8
33
+ amalgam_lang-10.0.0.dist-info/RECORD,,
@@ -1,33 +0,0 @@
1
- amalgam/__init__.py,sha256=oHu7Zr4eGDUqj93pLwz8t7gLa8lpAx6Q-xbGiJ3nJx0,18
2
- amalgam/api.py,sha256=3gja53jwoM6mVSkIN2Dt9QvRLSywDHixp-VRpQAn91E,40396
3
- amalgam/lib/version.json,sha256=593CC3b-oEtCtETprH2JIAw7hmYV5DUssQT1cVOxh2c,250
4
- amalgam/lib/darwin/amd64/amalgam-mt-noavx.dylib,sha256=Rt08obduqZFSn39m1e1vLmUiIPbxtetKxkjHPYWgR9E,2673032
5
- amalgam/lib/darwin/amd64/amalgam-mt.dylib,sha256=NByfwHT5YsV8NNOw1angweIVoMMazl4AwXFUJu1ao7Q,2619536
6
- amalgam/lib/darwin/amd64/amalgam-omp.dylib,sha256=5rfVnQtBG36apTPj7epekJBErcZs9IN8Yv7WM5kxOIk,3019696
7
- amalgam/lib/darwin/amd64/amalgam-st.dylib,sha256=4jARttbdCD9HvkN4sJUsrtXrcmt98DU8Lp-6uYGsIhE,2517464
8
- amalgam/lib/darwin/amd64/docs/version.json,sha256=g15G90m5rJEpXBYk5DUa_n9_7yL0gB1GqiSyQGt7Nnc,25
9
- amalgam/lib/darwin/arm64/amalgam-mt.dylib,sha256=9bH6jhTI0_YqxoAz8gCKahj6Got9j5UxOvWSPeqdNA8,2198128
10
- amalgam/lib/darwin/arm64/amalgam-omp.dylib,sha256=lmLQif9xxeQe0OwYbnuaKe4MT7Ml4_W2IkN4JNp4LzE,2639744
11
- amalgam/lib/darwin/arm64/amalgam-st.dylib,sha256=htLk2VkmMJ8STYV-RzX3dk87QzTWkocb0fbRRRp-2L0,2142656
12
- amalgam/lib/darwin/arm64/docs/version.json,sha256=g15G90m5rJEpXBYk5DUa_n9_7yL0gB1GqiSyQGt7Nnc,25
13
- amalgam/lib/linux/amd64/amalgam-mt-noavx.so,sha256=BHaeoZy3KW46mFTScIAv_7Nuv11tIUvFfu0ov5cKsqk,3242360
14
- amalgam/lib/linux/amd64/amalgam-mt.so,sha256=aIwYT9yVjF5pWhFd0OXf29Az4uHMasITuj10k51lnio,3266936
15
- amalgam/lib/linux/amd64/amalgam-omp.so,sha256=BdEwra02_2k7NxEqU2CB91SiEpg0cmwOjJQn0axgs24,3065688
16
- amalgam/lib/linux/amd64/amalgam-st.so,sha256=L-9uwwYYG58hhZwh1xdEeR46fab4FEvVoUPgvQ-X9IQ,3061496
17
- amalgam/lib/linux/amd64/docs/version.json,sha256=g15G90m5rJEpXBYk5DUa_n9_7yL0gB1GqiSyQGt7Nnc,25
18
- amalgam/lib/linux/arm64/amalgam-mt.so,sha256=NbxZP71kQAZMFActlXUEnR-R2goJQBVpBZ_6zPg4zHc,2787000
19
- amalgam/lib/linux/arm64/amalgam-omp.so,sha256=8pwu6ryYQWBihsDPVyoS-4WPnGy94pqCRKP7w3mJKdQ,2602152
20
- amalgam/lib/linux/arm64/amalgam-st.so,sha256=CKJ2qMcgeyU4mF2gJotQNbw3d03VzfUF6PJ8FrtUNu0,2589768
21
- amalgam/lib/linux/arm64/docs/version.json,sha256=g15G90m5rJEpXBYk5DUa_n9_7yL0gB1GqiSyQGt7Nnc,25
22
- amalgam/lib/linux/arm64_8a/amalgam-st.so,sha256=8XsccjYGSGuHVHOHZFgOKImVNvonA3oVwTDSdDr0Vjw,2548320
23
- amalgam/lib/linux/arm64_8a/docs/version.json,sha256=g15G90m5rJEpXBYk5DUa_n9_7yL0gB1GqiSyQGt7Nnc,25
24
- amalgam/lib/windows/amd64/amalgam-mt-noavx.dll,sha256=ycp32qbodQppsQjqunduVgQ9X8qxq-jfnnbBg5jqFe4,2561024
25
- amalgam/lib/windows/amd64/amalgam-mt.dll,sha256=AqZqzwW0nMkVZ-AHp14mzIMhu9fTzrwt-56JEMZUsKQ,2498048
26
- amalgam/lib/windows/amd64/amalgam-omp.dll,sha256=g_xxHjchWrnRGy2wAyVZ91dkmMyxIqSML2_MQ0jKFTE,2411008
27
- amalgam/lib/windows/amd64/amalgam-st.dll,sha256=bcvGbFtShWvvmGVW7PrHpNIJj-vViQ6oddkQqdcMbRA,2409984
28
- amalgam/lib/windows/amd64/docs/version.json,sha256=CJwSJ9wg6f26GcyDPZiLpvi5Lp_iyYx6W0-IXtqspUU,27
29
- amalgam_lang-9.0.0.dist-info/LICENSE.txt,sha256=2xqHuoHohba7gpcZZKtOICRjzeKsQANXG8WoV9V35KM,33893
30
- amalgam_lang-9.0.0.dist-info/METADATA,sha256=S86jwfOPMr0QY2oNYjgXkyvSZaR9_HT9WtLom9ZhWk8,43351
31
- amalgam_lang-9.0.0.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
32
- amalgam_lang-9.0.0.dist-info/top_level.txt,sha256=rmPHU144SyaB25u5-FAQyECAQnJ39NvuJEcKXMRcdBo,8
33
- amalgam_lang-9.0.0.dist-info/RECORD,,