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 36.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 36.0.1
File Size Uploaded Provenance Actions
amalgam_lang-36.0.1.tar.gz 99.1 MB Without provenance Details for amalgam_lang-36.0.1.tar.gz

Built distributions (wheels)

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

Total release size: 381.9 MB

Release files / amalgam_lang-36.0.1.tar.gz

Download URL amalgam_lang-36.0.1.tar.gz
Size 99.1 MB
Tags Source
SHA-256 checksum
How to use checksums
7223b080e80435569775e64047e8d006a04afba5b10eb4edf440f85a41c629b4
BLAKE2b-256 checksum
How to use checksums
af65f8dc63813e5ca639f340be38254eacfaf13843dbd4fd77b8304c9fd81442
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-36.0.1-py3-none-win_amd64.whl

Download URL amalgam_lang-36.0.1-py3-none-win_amd64.whl
Size 6.2 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
8c6633357b6364d3314c448558be7956b8ccf125ba7a9f1c2a890d9b80029fe4
BLAKE2b-256 checksum
How to use checksums
a88759ffec6bdd3bd6c8099477876f20b52849c46effbd0e42179d829e4840a4
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-36.0.1-py3-none-manylinux_2_29_x86_64.whl

Download URL amalgam_lang-36.0.1-py3-none-manylinux_2_29_x86_64.whl
Size 80.9 MB
Tags Linux glibc 2.29+ x86-64 Python 3
SHA-256 checksum
How to use checksums
09916880f4e1209b4b49c337fd3ac8fa84aa049b2efd8ef46a2ac8e055cb3eba
BLAKE2b-256 checksum
How to use checksums
3f4ced9c7f1ea31509120756a2a0c5bbab1b6f8efaed27ebce39fd501b6a4d32
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-36.0.1-py3-none-manylinux_2_29_aarch64.whl

Download URL amalgam_lang-36.0.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
d8151e69cc550768ed3905cfc5dddae525c491f8d7cbb4dd2c9fe820cb276bb6
BLAKE2b-256 checksum
How to use checksums
6613e6320b06a7e4729a1149c7acd2ab85e8c99b78a6e6e11ed9b68331f4ba14
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-36.0.1-py3-none-manylinux_2_28_x86_64.whl

Download URL amalgam_lang-36.0.1-py3-none-manylinux_2_28_x86_64.whl
Size 83.7 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
32edd3c3f5e24ee7140e8ac3426e2cab4525dec4f152ee2f28398b6beff06ca3
BLAKE2b-256 checksum
How to use checksums
aff8208146cb16cc19f7a926c6a10eb6a312eb5394bc5e10bcdd7ea8efe9ddbc
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-36.0.1-py3-none-macosx_12_0_arm64.whl

Download URL amalgam_lang-36.0.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
80c36500f3bd9235f90d107782c6c78eae7de28f17aa2fa1414c05a351d6472b
BLAKE2b-256 checksum
How to use checksums
b34d59fe830a2f0ce7b94a90c84da072581475a6f2464ad3f33230da8bacfd5e
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-36.0.1-py3-none-any.whl

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

Security for amalgam-lang 36.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

36.0.1 This release

7 release files No provenance

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