Skip to main content

Amalgam®

Amalgam® is an LLM-ready, tree-structured language for safe, sandboxed code generation, manipulation, and advanced information-theoretic inference. Unlike traditional languages that prioritize developer shorthand, Amalgam focuses on code-data symmetry and semantic consistency. These properties give it unique strengths in a wide variety of domains, including genetic programming, instance-based machine learning, simulation, agent-based modeling, data storage and retrieval, the mathematics of probability theory and information theory, and game content and AI. This package supports directly calling the language via Python.

Coding in Amalgam can be done natively as demonstrated in the Amalgam User Guide or through this Python wrapper.

Supported Platforms

Compatible with Python versions: 3.11, 3.12, 3.13, and 3.14.

Operating Systems

Binaries are built for the following operating systems, though in theory they could be built for virtually any modern system.

OS x86_64 arm64
Windows Yes No
Linux Yes Yes
MacOS No Yes

Install

To install the current release:

pip install amalgam-lang

Usage

This wrapper allows the user to write and execute Amalgam™ code in Python, just like any other Python program. Once the wrapper is imported, the code handles like native Python code as shown below:

from amalgam.api import Amalgam
import json

amlg = Amalgam()
# Load entity .amlg or .caml file
amlg.load_entity("handle_name", "/path/to/file.amlg")
# Execute a label in the loaded entity, passing parameters as JSON
response = amlg.execute_entity_json("handle_name", "label_name", json.dumps({ "abc": 123 }))
result = json.loads(response)

The wrapper handles the Amalgam language binary (so/dll/dylib) automatically for the user, however the default binary can be overridden using the library_path parameter.

amlg = Amalgam(library_path="/path/to/amalgam-mt.so")

Testing

There is a Pytest unit test suite located in amalgam/test. The tests in test_standalone.py will only execute if an Amalgam binary is located in the default expected path of amalgam/lib/{os}/{architecture}.

To specify whether test_standalone.py should use single-threaded or multi-threaded Amalgam (assuming the appropriate binary is in the above path), set the AMALGAM_LIBRARY_POSTFIX environment variable to the desired postfix, e.g., -st or -mt.

License

License

Contributing

Contributing

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

amalgam_lang-34.3.1.tar.gz (85.7 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

amalgam_lang-34.3.1-py3-none-win_amd64.whl (6.0 MB view details)

Uploaded Python 3Windows x86-64

amalgam_lang-34.3.1-py3-none-manylinux_2_29_x86_64.whl (68.0 MB view details)

Uploaded Python 3manylinux: glibc 2.29+ x86-64

amalgam_lang-34.3.1-py3-none-manylinux_2_29_aarch64.whl (7.8 MB view details)

Uploaded Python 3manylinux: glibc 2.29+ ARM64

amalgam_lang-34.3.1-py3-none-manylinux_2_28_x86_64.whl (71.1 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

amalgam_lang-34.3.1-py3-none-macosx_12_0_arm64.whl (4.4 MB view details)

Uploaded Python 3macOS 12.0+ ARM64

amalgam_lang-34.3.1-py3-none-any.whl (86.1 MB view details)

Uploaded Python 3

File details

Details for the file amalgam_lang-34.3.1.tar.gz.

File metadata

  • Download URL: amalgam_lang-34.3.1.tar.gz
  • Upload date:
  • Size: 85.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for amalgam_lang-34.3.1.tar.gz
Algorithm Hash digest
SHA256 fa7adc3dd6b52978ffe45b7a5b3626ac018e7fff2b84006ade4750758002d929
MD5 92b9055db39ccd3fc6b6265f1b8a8761
BLAKE2b-256 589326481ad35446e9dfb9ebf4297e953fc3d20946bcd488b4000c85f727b846

See more details on using hashes here.

File details

Details for the file amalgam_lang-34.3.1-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for amalgam_lang-34.3.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 b237fa423331fc57b8148df7c618f3aa965bfd8f5f9a086ee1bd3165f4d284bd
MD5 ae50606d2deaa4a28deeea61727b577f
BLAKE2b-256 4f1423a630429d7fe9baa09a0a331c41e4f49f8cf4b6a8c773beaef3c1f2c76f

See more details on using hashes here.

File details

Details for the file amalgam_lang-34.3.1-py3-none-manylinux_2_29_x86_64.whl.

File metadata

File hashes

Hashes for amalgam_lang-34.3.1-py3-none-manylinux_2_29_x86_64.whl
Algorithm Hash digest
SHA256 c2a67ca565cc071d261771324dc5fba2f2530136de43f6334aca6e9c68707d91
MD5 9f6de8aa353a3b094e11b11ddfdfa1ae
BLAKE2b-256 fba9cc3989dbcdcefc1c202a777c1dd7c603d0ff372ed27d293e45fb995ab4f1

See more details on using hashes here.

File details

Details for the file amalgam_lang-34.3.1-py3-none-manylinux_2_29_aarch64.whl.

File metadata

File hashes

Hashes for amalgam_lang-34.3.1-py3-none-manylinux_2_29_aarch64.whl
Algorithm Hash digest
SHA256 972007b4c65d250047a61353546a02a2e1c4ae8a1a8d4c31e592c45186c08a7b
MD5 a963ce63c51b27e571c35f78378b9dab
BLAKE2b-256 9251f83eab26fdca8107251f0085b04d014546760b86aee9ebb9491ac66bf002

See more details on using hashes here.

File details

Details for the file amalgam_lang-34.3.1-py3-none-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for amalgam_lang-34.3.1-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 195f24555f57f71ba2080e06e7e27f20f154b8a65bc4f1d2c4687f3a9f188648
MD5 40f4c641e35202ddf3cb0dd3cbcf6669
BLAKE2b-256 ab422abccaf04e03e352c9f1d93d0dd9603272cb490b3987151b299aa6760698

See more details on using hashes here.

File details

Details for the file amalgam_lang-34.3.1-py3-none-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for amalgam_lang-34.3.1-py3-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 776e8e7f43fd5c68d6784e7e6c0cdf397a219390678f2ba16d72664fb17641e3
MD5 d2e8f124aa3efc9f7a3c120eee3ed1bc
BLAKE2b-256 9396b7146004431bcdd4bb03fc4a26f918a38168a8f4171c0fb96f14073e9b98

See more details on using hashes here.

File details

Details for the file amalgam_lang-34.3.1-py3-none-any.whl.

File metadata

  • Download URL: amalgam_lang-34.3.1-py3-none-any.whl
  • Upload date:
  • Size: 86.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for amalgam_lang-34.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 57a54ef908bca70d7203bd12f06574d8f35843446c162f774b892604ef7ce701
MD5 67ca7796d07a1ab62cb959fdc6a3d680
BLAKE2b-256 9e237f71cd97120854b13b4dc80273921e1993b1c1d05cbeb30412f419cf1fde

See more details on using hashes here.

Release history Release notifications | RSS feed

34.4.0

7 files

This release

34.3.1 This release

7 files

34.3.0

7 files

34.2.6

7 files

34.2.5

7 files

34.2.4

7 files

34.2.3

7 files

34.2.2

7 files

34.2.1

7 files

34.2.0

7 files

34.1.2

7 files

34.1.1

7 files

34.1.0

7 files

34.0.0

7 files

33.0.1

7 files

33.0.0

7 files

32.0.1

7 files

32.0.0

7 files

31.0.1

7 files

31.0.0

7 files

30.1.1

7 files

30.1.0

7 files

30.0.0

7 files

29.0.1

7 files

29.0.0

7 files

28.0.0

7 files

27.4.0

7 files

27.3.1

7 files

27.3.0

7 files

27.2.0

7 files

27.1.0

7 files

27.0.3

7 files

27.0.2

7 files

27.0.1

7 files

27.0.0

7 files

26.0.0

8 files

25.3.0

8 files

25.2.12

8 files

25.2.11

8 files

25.2.10

8 files

25.2.9

8 files

25.2.8

8 files

25.2.7

8 files

25.2.6

8 files

25.2.5

8 files

25.2.4

8 files

25.2.3

8 files

25.2.2

8 files

25.2.1

8 files

25.2.0

8 files

25.1.0

8 files

25.0.2

8 files

25.0.1

3 files

25.0.0

8 files

24.1.1

8 files

24.1.0

8 files

24.0.7

8 files

24.0.6

8 files

24.0.5

8 files

24.0.4

8 files

24.0.3

8 files

24.0.2

8 files

24.0.1

8 files

24.0.0

8 files

23.0.0

8 files

22.0.3

8 files

22.0.2

8 files

22.0.1

8 files

22.0.0

8 files

21.1.1

8 files

21.1.0

8 files

21.0.0

8 files

20.1.1

8 files

20.1.0

8 files

20.0.4

8 files

20.0.3

8 files

20.0.2

8 files

20.0.1

8 files

20.0.0

8 files

19.1.1

8 files

19.1.0

8 files

19.0.4

8 files

19.0.3

8 files

19.0.2

8 files

19.0.1

8 files

19.0.0

8 files

18.1.5

8 files

18.1.4

8 files

18.1.3

8 files

18.1.2

8 files

18.1.1

8 files

18.1.0

8 files

18.0.5

8 files

18.0.4

8 files

18.0.3

8 files

18.0.2

8 files

18.0.1

8 files

18.0.0

8 files

17.0.0

8 files

16.1.2

8 files

16.1.1

8 files

16.1.0

8 files

16.0.0

8 files

15.0.7

8 files

15.0.6

8 files

15.0.5

5 files

15.0.4

8 files

15.0.3

8 files

15.0.2

8 files

15.0.1

8 files

15.0.0

8 files

14.0.0

7 files

13.0.4

8 files

13.0.3

8 files

13.0.2

7 files

13.0.1

7 files

13.0.0

7 files

12.4.4

7 files

12.4.3

7 files

12.4.2

7 files

12.4.1

7 files

12.4.0

7 files

12.3.16

7 files

12.3.15

7 files

12.3.14

7 files

12.3.13

7 files

12.3.12

7 files

12.3.11

7 files

12.3.10

7 files

12.3.9

7 files

12.3.8

7 files

12.3.7

7 files

12.3.6

7 files

12.3.5

7 files

12.3.4

7 files

12.3.0

7 files

12.2.0

7 files

12.1.0

7 files

12.0.0

7 files

11.0.0

7 files

10.4.1

7 files

10.4.0

7 files

10.3.1

7 files

10.3.0

7 files

10.2.2

7 files

10.0.0

7 files

9.0.1

7 files

9.0.0

7 files

8.2.0

7 files

8.1.0

7 files

8.0.0

7 files

7.2.0

7 files

7.1.0

7 files

6.2.0

7 files

6.1.0

7 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page