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

Metadata

Release files for amalgam-lang 35.1.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.1.0
File Size Uploaded
amalgam_lang-35.1.0.tar.gz 98.5 MB Details

Built distributions (wheels)

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

Total release size: 379.7 MB

Release files / amalgam_lang-35.1.0.tar.gz

Download URL amalgam_lang-35.1.0.tar.gz
Size 98.5 MB
Tags Source
SHA-256 checksum
How to use checksums
b8cdb5330301128878ce091986fa65e46c820714c2542d9c3a3bd9911f22720c
BLAKE2b-256 checksum
How to use checksums
fe50714d1981544c22ff5a87654e882e89dc65d19dcf8fa14ca88672cbef06ad
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.1.0-py3-none-win_amd64.whl

Download URL amalgam_lang-35.1.0-py3-none-win_amd64.whl
Size 6.1 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
a933a025214c5a461a05a65f027e99d6300042065b55353127325fa195235738
BLAKE2b-256 checksum
How to use checksums
08a330af7a71533a1f4f55eca7772b530859596e5689a55beed4a81c9ca97f03
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.1.0-py3-none-manylinux_2_29_x86_64.whl

Download URL amalgam_lang-35.1.0-py3-none-manylinux_2_29_x86_64.whl
Size 80.3 MB
Tags Linux glibc 2.29+ x86-64 Python 3
SHA-256 checksum
How to use checksums
db5ab6037df429cf85dc94a189a9030ae12f92a4e6687e66876bc3066fea8885
BLAKE2b-256 checksum
How to use checksums
0d0ac6469edacbbbd56e694adfb3864d968afe10716f74cdebd7b8f9016e0857
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.1.0-py3-none-manylinux_2_29_aarch64.whl

Download URL amalgam_lang-35.1.0-py3-none-manylinux_2_29_aarch64.whl
Size 8.2 MB
Tags Linux glibc 2.29+ ARM64 Python 3
SHA-256 checksum
How to use checksums
a1588201997ff24dbafa6bf1560dd68cb88ef4e9f9e6afbbe0f80c550a479d19
BLAKE2b-256 checksum
How to use checksums
63dcf9d31629afe1016d10593f40c26a47e8d40780a52de60aa99db1e995f925
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.1.0-py3-none-manylinux_2_28_x86_64.whl

Download URL amalgam_lang-35.1.0-py3-none-manylinux_2_28_x86_64.whl
Size 83.2 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
4917d0d9e535c57e36d02d7ca76659963bb3ccf3ed45b5e04e7ac3033f055e1d
BLAKE2b-256 checksum
How to use checksums
991887a7302c7957ffc87f1e97d7b19925b7ca2be47f6e192b745bff9b6bf415
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.1.0-py3-none-macosx_12_0_arm64.whl

Download URL amalgam_lang-35.1.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
d7a74b13f613bea414de6b2eaac5059ced5e0ffc99fedb42ce9a506b7a9080de
BLAKE2b-256 checksum
How to use checksums
dcaef8bf65fed78537dbfdfa637ddcc447cd86d041f1d9b26019c563bb588aff
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.1.0-py3-none-any.whl

Download URL amalgam_lang-35.1.0-py3-none-any.whl
Size 98.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
e7d3725f36cec9f5098f520a123f90a39bd0c2b234627a0d2ab09e7c063050ed
BLAKE2b-256 checksum
How to use checksums
7fc053acb792b274e4f36a59f10b7ed3b8064ced42f98c3c50719a4d2a19f021
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.1.0 This release

7 release files

35.0.1

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