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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

amalgam_lang-34.2.5.tar.gz (85.2 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

amalgam_lang-34.2.5-py3-none-win_amd64.whl (5.9 MB view details)

Uploaded Python 3Windows x86-64

amalgam_lang-34.2.5-py3-none-manylinux_2_29_x86_64.whl (68.2 MB view details)

Uploaded Python 3manylinux: glibc 2.29+ x86-64

amalgam_lang-34.2.5-py3-none-manylinux_2_29_aarch64.whl (7.3 MB view details)

Uploaded Python 3manylinux: glibc 2.29+ ARM64

amalgam_lang-34.2.5-py3-none-manylinux_2_28_x86_64.whl (68.3 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

amalgam_lang-34.2.5-py3-none-macosx_12_0_arm64.whl (4.3 MB view details)

Uploaded Python 3macOS 12.0+ ARM64

amalgam_lang-34.2.5-py3-none-any.whl (85.6 MB view details)

Uploaded Python 3

File details

Details for the file amalgam_lang-34.2.5.tar.gz.

File metadata

  • Download URL: amalgam_lang-34.2.5.tar.gz
  • Upload date:
  • Size: 85.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for amalgam_lang-34.2.5.tar.gz
Algorithm Hash digest
SHA256 9e13b2c4b14abeed196d12210068460b5f1e22cca9f56ed366aea02e1276e85a
MD5 5dcbca51878bdaf7c42713b774180b5e
BLAKE2b-256 7fdb650e93e210c05d8ae55667f6a6022eed33dd14ea9db75b964661ed35fd20

See more details on using hashes here.

File details

Details for the file amalgam_lang-34.2.5-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for amalgam_lang-34.2.5-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 4346c8f6286e36560b24e9c677e6ddad36544cdf6980da9eb74a33e3c134900f
MD5 9705cdf2982cd8cb9ade01c2c69879bb
BLAKE2b-256 104122e60e853c8f003a7df639615ab96e41922598f61048642a073df0e07602

See more details on using hashes here.

File details

Details for the file amalgam_lang-34.2.5-py3-none-manylinux_2_29_x86_64.whl.

File metadata

File hashes

Hashes for amalgam_lang-34.2.5-py3-none-manylinux_2_29_x86_64.whl
Algorithm Hash digest
SHA256 9b6cbf70cfcc6f1fe0b98d20db6228998a9ec8e886379afbf766b3969aa607df
MD5 49245d48d794aa131ca5c8b00ccb12f6
BLAKE2b-256 a50f411434ba252e2b2a0843a750c98dff13342c532c383eed99cad9679f98b8

See more details on using hashes here.

File details

Details for the file amalgam_lang-34.2.5-py3-none-manylinux_2_29_aarch64.whl.

File metadata

File hashes

Hashes for amalgam_lang-34.2.5-py3-none-manylinux_2_29_aarch64.whl
Algorithm Hash digest
SHA256 0f590748ddd97c1478dfef603b89e4c89ef05cce2fc3951ccd15fb9d04e5bb7f
MD5 c59c3c79254242112661e346d93dc790
BLAKE2b-256 524fa7331d47b7219bc9fb061fed2dcf2256380905f69da7b618a06ac7e1fd0b

See more details on using hashes here.

File details

Details for the file amalgam_lang-34.2.5-py3-none-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for amalgam_lang-34.2.5-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 422d584163d119a0f84def0de35d01eb5e07b158677014c7766baf45605c5456
MD5 5152b9e860c5106f4d90c37bd5ca3ba2
BLAKE2b-256 a75426a7d05f21778cb27fe03f51fc398148f5d5459584e8e4e9fcddc175cff0

See more details on using hashes here.

File details

Details for the file amalgam_lang-34.2.5-py3-none-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for amalgam_lang-34.2.5-py3-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 0535c092204d9e3c6c1b9f52efb243237fb10f82c9f65bde898dfc08a34496e8
MD5 ddebf4bf794b97e7d9b253f2f717c119
BLAKE2b-256 9a06ae22dec3b137deb92625530d3a4f9a63cdf79fa8abebff9f188bf964c7df

See more details on using hashes here.

File details

Details for the file amalgam_lang-34.2.5-py3-none-any.whl.

File metadata

  • Download URL: amalgam_lang-34.2.5-py3-none-any.whl
  • Upload date:
  • Size: 85.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for amalgam_lang-34.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3e8073d11a12e7ee7a8b57effc7f4ffb4635d7b88b6899519a900215423c33ca
MD5 cc062e084e7d1990760d55423c51789a
BLAKE2b-256 f9c397b9041b1324a664630d0794e030884c73d817d622b38ff616e1e81173d7

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page