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

Built distributions (wheels)

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

Total release size: 379.9 MB

Release files / amalgam_lang-36.0.0.tar.gz

Download URL amalgam_lang-36.0.0.tar.gz
Size 98.6 MB
Tags Source
SHA-256 checksum
How to use checksums
aaf03618167f01d2b1358612af922318dc8947a9665889c6b59d0667066b7dba
BLAKE2b-256 checksum
How to use checksums
c8fad360131641425a5da1e34d778dbe310ebb5b71bc152ac67dda4a65fad85f
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.0-py3-none-win_amd64.whl

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

Download URL amalgam_lang-36.0.0-py3-none-manylinux_2_29_x86_64.whl
Size 80.4 MB
Tags Linux glibc 2.29+ x86-64 Python 3
SHA-256 checksum
How to use checksums
51f5ca3d6628c34b59fb6dbb42703eb5b102b7f3f321c51e354b34d72c2c6a65
BLAKE2b-256 checksum
How to use checksums
7092b5cb3ad3185ceb6fffbe3c7e64f41783ae40241b89d05c40a075487274e8
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.0-py3-none-manylinux_2_29_aarch64.whl

Download URL amalgam_lang-36.0.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
8482491ff487ebb2ed61ebb23e8fb82d1d9d166200ee50bcbe4fc41881dda732
BLAKE2b-256 checksum
How to use checksums
91ec48a6485d73cda0ac45e9ad4f2e9bc51f58a919f5560076dc717c36ec1f7b
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.0-py3-none-manylinux_2_28_x86_64.whl

Download URL amalgam_lang-36.0.0-py3-none-manylinux_2_28_x86_64.whl
Size 83.3 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
e91e2177ba9a681bb7454b97e621ac5047bbdffffa5535ac16f4995c9c690c11
BLAKE2b-256 checksum
How to use checksums
7ebf2c398099617490c0546443a2e0fddfc342ca44f8779210078e270d48c0d6
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.0-py3-none-macosx_12_0_arm64.whl

Download URL amalgam_lang-36.0.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
5b1f1f640d9e0a186f9abba76c786d85a3cfaa1e1ef11340bb9f36c00de2976f
BLAKE2b-256 checksum
How to use checksums
1741b4e1167fc1352cc0ddad863fe8f96fc822f5f41040580f575ea55b0740be
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.0-py3-none-any.whl

Download URL amalgam_lang-36.0.0-py3-none-any.whl
Size 99.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
aa1a44d0ac59a53e2165ca0be49d9648f5344278499f15fd0d3ec48c0c7410f7
BLAKE2b-256 checksum
How to use checksums
a52307658b9531b9a4b33d08d380604b0b83a4eb20becff8699ee75d8d136e79
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.0

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