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.1

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.1
File Size Uploaded
amalgam_lang-35.0.1.tar.gz 89.2 MB Details

Built distributions (wheels)

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

Total release size: 342.6 MB

Release files / amalgam_lang-35.0.1.tar.gz

Download URL amalgam_lang-35.0.1.tar.gz
Size 89.2 MB
Tags Source
SHA-256 checksum
How to use checksums
ff3aabc39389a60781b6827e9ae41cb5e42b341752c18ca2df3481cab6007e9a
BLAKE2b-256 checksum
How to use checksums
cd178cd633ad7d0d6e4390a446a4a5718f34adb7452fcbce45b7c29e395ff292
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.1-py3-none-win_amd64.whl

Download URL amalgam_lang-35.0.1-py3-none-win_amd64.whl
Size 6.0 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
b0473246e58d27b632fbbc5ec6e059de3bad86446021c98b8bd8898b0e7dde91
BLAKE2b-256 checksum
How to use checksums
1ff9653544bd24d860d03968c84e606c45a9ac8a1d6ea67e9506a0c54d839beb
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.1-py3-none-manylinux_2_29_x86_64.whl

Download URL amalgam_lang-35.0.1-py3-none-manylinux_2_29_x86_64.whl
Size 71.3 MB
Tags Linux glibc 2.29+ x86-64 Python 3
SHA-256 checksum
How to use checksums
6eac66909489054af8b3c45c330156c70aa3204aaa17f6be25284ccfaed73081
BLAKE2b-256 checksum
How to use checksums
f9997929e028653c9ae0ccc1f8d01b8068c6bed07b39e20c609f0593af3158fa
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.1-py3-none-manylinux_2_29_aarch64.whl

Download URL amalgam_lang-35.0.1-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
e8c430b4c3d50baab81ffbcee4a5afa33490956e884b915cca6c89b572408363
BLAKE2b-256 checksum
How to use checksums
b2447973a8697700ce40cca0f4b440a2f795291849a45d7de642edd3ca8ddf97
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.1-py3-none-manylinux_2_28_x86_64.whl

Download URL amalgam_lang-35.0.1-py3-none-manylinux_2_28_x86_64.whl
Size 74.1 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
3efa8251e9f220b05b336ece83084f7ce5275e02ed1b1f31523be37615e0236f
BLAKE2b-256 checksum
How to use checksums
c66aa693433de407ab82ad7f63e3d140a9d23436b9b06df87d145320a81f5c6c
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.1-py3-none-macosx_12_0_arm64.whl

Download URL amalgam_lang-35.0.1-py3-none-macosx_12_0_arm64.whl
Size 4.3 MB
Tags Python 3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
e55f610711eac9bdc45d55abe86f206a9874b6d51b0ec9317ef8ef3cd565bcd3
BLAKE2b-256 checksum
How to use checksums
eea173e8ed24bc4f0a9cec769293f66361b5f5acbd382c5a61627ce00c77e51c
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.1-py3-none-any.whl

Download URL amalgam_lang-35.0.1-py3-none-any.whl
Size 89.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
0986bad4d59aa0549b2b523ac76d08e509f199bda17d25fcfe2363186752f037
BLAKE2b-256 checksum
How to use checksums
f1ef2c9b9ed84b331077f4e9b26db4a1faa39cb3dec05eadbb20d86e096d5483
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

This release

35.0.1 This release

7 release files

35.0.0

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