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

Release files for amalgam-lang 35.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for amalgam-lang 35.0.0
File Size Uploaded
amalgam_lang-35.0.0.tar.gz 88.7 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for amalgam-lang 35.0.0
File
amalgam_lang-35.0.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
amalgam_lang-35.0.0-py3-none-manylinux_2_29_x86_64.whl Python 3 none Linux glibc 2.29+ x86-64 Details
amalgam_lang-35.0.0-py3-none-manylinux_2_29_aarch64.whl Python 3 none Linux glibc 2.29+ ARM64 Details
amalgam_lang-35.0.0-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details
amalgam_lang-35.0.0-py3-none-macosx_12_0_arm64.whl Python 3 none macOS 12.0+ ARM64 Details
amalgam_lang-35.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 340.6 MB

Release files / amalgam_lang-35.0.0.tar.gz

Download URL amalgam_lang-35.0.0.tar.gz
Size 88.7 MB
Tags Source
SHA-256 checksum
How to use checksums
94fac97dae5611dca9c61048a84be1c398515cd14ae5be82e09da0901352bc7e
BLAKE2b-256 checksum
How to use checksums
eee4ff294cadb81bf59be4eba806b4e5c85e6bf30ee431c2da30c4beef6e91af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / amalgam_lang-35.0.0-py3-none-win_amd64.whl

Download URL amalgam_lang-35.0.0-py3-none-win_amd64.whl
Size 6.0 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
48ee849fb6b78fa968033bd65f7a8c4908f0063b81302e57fe79791401cf230c
BLAKE2b-256 checksum
How to use checksums
520eaa47cd9812540de0e69f6f856321b4bcff0481bb71e068b11fd2ba6770ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / amalgam_lang-35.0.0-py3-none-manylinux_2_29_x86_64.whl

Download URL amalgam_lang-35.0.0-py3-none-manylinux_2_29_x86_64.whl
Size 70.7 MB
Tags Linux glibc 2.29+ x86-64 Python 3
SHA-256 checksum
How to use checksums
f40ea0a724229d34e8199791c7d68c3d8d7287c5eb22c9e33b5b797abf927651
BLAKE2b-256 checksum
How to use checksums
ab92fb07f3d75e15806b062c5db7139fa3af6cdfd5fdf7cb8afe6a492b269886
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / amalgam_lang-35.0.0-py3-none-manylinux_2_29_aarch64.whl

Download URL amalgam_lang-35.0.0-py3-none-manylinux_2_29_aarch64.whl
Size 8.1 MB
Tags Linux glibc 2.29+ ARM64 Python 3
SHA-256 checksum
How to use checksums
9a28e464b0788022c4eef120492797a88109b465a9c52486d686b45ab8e09134
BLAKE2b-256 checksum
How to use checksums
8a89ced14f0613581b7b211ad9e4db5667b74d2ca89dad4363cf62ce4418d020
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / amalgam_lang-35.0.0-py3-none-manylinux_2_28_x86_64.whl

Download URL amalgam_lang-35.0.0-py3-none-manylinux_2_28_x86_64.whl
Size 73.7 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
0f02c98b7be96bafb59525d758e229b232dd92be22f4b9958ed92115f682a15c
BLAKE2b-256 checksum
How to use checksums
d8cc5a7f7383b5ffa2ad3fabdef3632359da4a0c2b788f71bee48421e7ba27ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / amalgam_lang-35.0.0-py3-none-macosx_12_0_arm64.whl

Download URL amalgam_lang-35.0.0-py3-none-macosx_12_0_arm64.whl
Size 4.4 MB
Tags Python 3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
660ca3d302d277faaed246c8d89cacc32703fe4e8fc9c96a52e16cb16a732ecb
BLAKE2b-256 checksum
How to use checksums
0d10d975350a33194a9e561cfaa892cb5f341eb55a221d4e23eb898b6e302ea6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / amalgam_lang-35.0.0-py3-none-any.whl

Download URL amalgam_lang-35.0.0-py3-none-any.whl
Size 89.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
6220315e4c46dae95a2b229367117a8ede8016804804c0d0cc50b12f5021c91c
BLAKE2b-256 checksum
How to use checksums
3628eac9b9db2087542d3b49fbff1e02f4c74a4cc821bde544e3f8e1e36ab092
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

35.0.1

7 release files

This release

35.0.0 This release

7 release files

34.4.0

7 release files

34.3.1

7 release files

34.3.0

7 release files

34.2.3

7 release files

34.2.2

7 release files

34.2.1

7 release files

34.2.0

7 release files

34.0.0

7 release files

33.0.1

7 release files

33.0.0

7 release files

32.0.1

7 release files

32.0.0

7 release files

31.0.1

7 release files

31.0.0

7 release files

30.1.1

7 release files

29.0.1

7 release files

29.0.0

7 release files

28.0.0

7 release files

27.2.0

7 release files

27.0.2

7 release files

27.0.1

7 release files

27.0.0

7 release files

25.3.0

8 release files

25.2.9

8 release files

25.2.8

8 release files

25.2.7

8 release files

25.2.6

8 release files

25.2.5

8 release files

25.2.4

8 release files

25.2.3

8 release files

25.2.2

8 release files

25.2.1

8 release files

25.1.0

8 release files

25.0.2

8 release files

24.0.7

8 release files

24.0.6

8 release files

24.0.5

8 release files

24.0.1

8 release files

24.0.0

8 release files

23.0.0

8 release files

22.0.3

8 release files

21.1.1

8 release files

21.1.0

8 release files

21.0.0

8 release files

20.1.1

8 release files

20.0.4

8 release files

20.0.3

8 release files

20.0.2

8 release files

20.0.1

8 release files

19.1.1

8 release files

19.1.0

8 release files

19.0.4

8 release files

19.0.0

8 release files

18.1.5

8 release files

18.1.4

8 release files

18.1.2

8 release files

18.1.1

8 release files

18.1.0

8 release files

18.0.3

8 release files

18.0.2

8 release files

18.0.1

8 release files

18.0.0

8 release files

17.0.0

8 release files

16.1.1

8 release files

16.1.0

8 release files

16.0.0

8 release files

15.0.7

8 release files

15.0.1

8 release files

15.0.0

8 release files

13.0.4

8 release files

13.0.3

8 release files

13.0.2

7 release files

13.0.1

7 release files

13.0.0

7 release files

12.4.4

7 release files

12.4.2

7 release files

12.4.1

7 release files

12.4.0

7 release files

12.3.9

7 release files

12.3.8

7 release files

12.3.7

7 release files

12.3.6

7 release files

12.3.5

7 release files

12.3.4

7 release files

12.2.0

7 release files

12.0.0

7 release files

11.0.0

7 release files

10.4.1

7 release files

10.4.0

7 release files

10.3.1

7 release files

10.3.0

7 release files

10.2.2

7 release files

10.0.0

7 release files

9.0.1

7 release files

9.0.0

7 release files

8.2.0

7 release files

8.1.0

7 release files

8.0.0

7 release files

7.2.0

7 release files

7.1.0

7 release files

6.2.0

7 release files

6.1.0

7 release 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