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.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.1.1
File Size Uploaded
amalgam_lang-35.1.1.tar.gz 98.5 MB Details

Built distributions (wheels)

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

Total release size: 379.7 MB

Release files / amalgam_lang-35.1.1.tar.gz

Download URL amalgam_lang-35.1.1.tar.gz
Size 98.5 MB
Tags Source
SHA-256 checksum
How to use checksums
ac57af9ab78f067ad9db0f0427077cf818f426643957f72faf5229f685412b0a
BLAKE2b-256 checksum
How to use checksums
3307f10c2d80140687b8987e9f4c9f9577b588d1e8dc70ab2448a7e16a621095
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.1-py3-none-win_amd64.whl

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

Download URL amalgam_lang-35.1.1-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
ed27f33756fa0fd33a04ada18263569cab0ef192c0e53e1e13e67f72ed0370ff
BLAKE2b-256 checksum
How to use checksums
071a7c2d96f75c3b1d76231bbf4bfd5914b7dd6b8e3101a07b99554433fc490a
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.1-py3-none-manylinux_2_29_aarch64.whl

Download URL amalgam_lang-35.1.1-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
1cab8f2837a988c8b21e4a70fcd9523f02defd04209337f3e423260dda9bcbae
BLAKE2b-256 checksum
How to use checksums
323326d9e165c507e8190b85e74943eeea7eb03a7b2edef133fa21c8d324a361
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.1-py3-none-manylinux_2_28_x86_64.whl

Download URL amalgam_lang-35.1.1-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
0c5c403665a1e9f9d4e617e678517685f2e809e4e1251c8bdd4eb93379e76a54
BLAKE2b-256 checksum
How to use checksums
81bc15d69f7f70bf99ec3754d73ef4a291befd71a7e493f358f5335d37493a6f
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.1-py3-none-macosx_12_0_arm64.whl

Download URL amalgam_lang-35.1.1-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
44b42b320e48224f2427ff9d2d87688c12b5c7675489f0528e46ed81dedfb389
BLAKE2b-256 checksum
How to use checksums
ef70f663419cc865443ed1b340b0dc104610f4f7faa14a47c8d62d8889cd9022
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.1-py3-none-any.whl

Download URL amalgam_lang-35.1.1-py3-none-any.whl
Size 98.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ea61dd1276ad10b52e5743c9cac9ba1d01c0e90e62e9fdcf8146d25ab01b4070
BLAKE2b-256 checksum
How to use checksums
359a6b9cf407ed1735a837029a61c86a9c3b0967e5aafeb650e9cda27c5c85ae
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.1 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