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 34.5.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 34.5.0
File Size Uploaded
amalgam_lang-34.5.0.tar.gz 85.8 MB Details

Built distributions (wheels)

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

Total release size: 329.2 MB

Release files / amalgam_lang-34.5.0.tar.gz

Download URL amalgam_lang-34.5.0.tar.gz
Size 85.8 MB
Tags Source
SHA-256 checksum
How to use checksums
1eeb1d04590fc69a1601ccdcca3a4449b0806974f9d19e53020f73c7b164534f
BLAKE2b-256 checksum
How to use checksums
e72d8d79a76dbcea66a11de2bd9605f1e4ebce5a354243e3fa90f924fd491fcd
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-34.5.0-py3-none-win_amd64.whl

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

Download URL amalgam_lang-34.5.0-py3-none-manylinux_2_29_x86_64.whl
Size 68.1 MB
Tags Linux glibc 2.29+ x86-64 Python 3
SHA-256 checksum
How to use checksums
61354762587d648104d7c2735d2771cd55d7db07cd8fbdc70eb8a2b4b0c95f7e
BLAKE2b-256 checksum
How to use checksums
34c0ca39229be5905fc97200aeb63ace5c06f68d0eb4b300c33b4ff155657ceb
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-34.5.0-py3-none-manylinux_2_29_aarch64.whl

Download URL amalgam_lang-34.5.0-py3-none-manylinux_2_29_aarch64.whl
Size 7.8 MB
Tags Linux glibc 2.29+ ARM64 Python 3
SHA-256 checksum
How to use checksums
c9470a8f076ed0bda062f50065b196e1b9820a214c6399e3ddbf4923d7ba2d9e
BLAKE2b-256 checksum
How to use checksums
c2125c434ebace0ee4e5874cb5f76b1203ece6ca4bba32e2c2b707588c7f9493
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-34.5.0-py3-none-manylinux_2_28_x86_64.whl

Download URL amalgam_lang-34.5.0-py3-none-manylinux_2_28_x86_64.whl
Size 71.1 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
f22ff4a2971ae351438132521e12864b312f3d7250ba5cae09e4a52926737da6
BLAKE2b-256 checksum
How to use checksums
60f245c08b7703d6f82fd2ed6112545aa01718111219ea6bdf10c1657f8914a0
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-34.5.0-py3-none-macosx_12_0_arm64.whl

Download URL amalgam_lang-34.5.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
06d5d18bde1e0ea1af30a19c0a8def680e6a85b133af1f4c87cd7ee23fba7717
BLAKE2b-256 checksum
How to use checksums
03cb72574e3b69683727ed81143c29973f98bf51d67a7cc078c310472b89967f
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-34.5.0-py3-none-any.whl

Download URL amalgam_lang-34.5.0-py3-none-any.whl
Size 86.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
2c5429f6b23cfef7b7a2677195a730b1654c26be848fee4fc368690bb549d54c
BLAKE2b-256 checksum
How to use checksums
bb738ec7bb111319f3e39705d12d1a38aa941afe5aa7aaa1b76e0292d73833b3
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

35.0.0

7 release files

This release

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