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.6.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.6-py3-none-win_amd64.whl (5.9 MB view details)

Uploaded Python 3Windows x86-64

amalgam_lang-34.2.6-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.6-py3-none-manylinux_2_29_aarch64.whl (7.3 MB view details)

Uploaded Python 3manylinux: glibc 2.29+ ARM64

amalgam_lang-34.2.6-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.6-py3-none-macosx_12_0_arm64.whl (4.3 MB view details)

Uploaded Python 3macOS 12.0+ ARM64

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: amalgam_lang-34.2.6.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.6.tar.gz
Algorithm Hash digest
SHA256 1ec8fc7accc25e5cecd16690b2267557d2636c2ab9730be7a4f26fa99a8a602a
MD5 7c6ebd3154e17ae52083076609246e1e
BLAKE2b-256 671b8854de9cc7ffe1b5f30187a13307a96dbbb9ec7505352847d97a5596b208

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for amalgam_lang-34.2.6-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 496cf5d4fa08370cd24a6fdcc3c5202624c54d0d5e8b3a6b01207d0a514f0d2f
MD5 8ccbc038027ca4455f3f6eac8ae48e0e
BLAKE2b-256 5f0e621e31d5118b36ab918d40b4302b918785554b5a9f50d71375ba6ebba1ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for amalgam_lang-34.2.6-py3-none-manylinux_2_29_x86_64.whl
Algorithm Hash digest
SHA256 bc7b63bd26924746e4b1faa3b737c3e0198daa1cc7692dfb253215321f6a8047
MD5 f18122084d3858cc4ec99b4abcf67325
BLAKE2b-256 bee7a1889c2aee9db1ef74a4610772e91697db2d198c5ee54cf214a8ee2e8d2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for amalgam_lang-34.2.6-py3-none-manylinux_2_29_aarch64.whl
Algorithm Hash digest
SHA256 69cde5137325d54287acd214151124e80a94f60cae4363c205340133b9257125
MD5 652d6cd9b84a8961849b1c006623fb77
BLAKE2b-256 4ca7364f44a47d2625ac71536ee1382613e81e47f92892031cad6c140314183f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for amalgam_lang-34.2.6-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c9d819430a12a7c2e1215c71126f6de99a7a8f0a6f830bbec1302726ece8dbf5
MD5 33cf1a7496e05f015743089f6f3029dc
BLAKE2b-256 a9153ee5128fba5a0b7c933af0e3cdb95d8d2fe23c065f60fa5ab7cd268100ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for amalgam_lang-34.2.6-py3-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 ace9d31c54ef5e68cbd6791b60f4e5f9fba08d97da5e3d07e2eab5584d36db14
MD5 1248d9ad14deeff98ce8c490092f54e3
BLAKE2b-256 dca4648ef0fa778a4873922a79c2bfd6b42964395b6ba4b50ed273662893549e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: amalgam_lang-34.2.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 06db4d5cab9c2452466931a29cbfa2982d44a17bc782e99b22e6a94288f7c778
MD5 72d709e684eae6bd05253d336c4d96dc
BLAKE2b-256 088c8a299674652b2f14e1e77e8fc546dbc293ea523e276a822bdadf4e1faa30

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