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.4.tar.gz (85.1 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.4-py3-none-win_amd64.whl (5.9 MB view details)

Uploaded Python 3Windows x86-64

amalgam_lang-34.2.4-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.4-py3-none-manylinux_2_29_aarch64.whl (7.2 MB view details)

Uploaded Python 3manylinux: glibc 2.29+ ARM64

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

Uploaded Python 3macOS 12.0+ ARM64

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: amalgam_lang-34.2.4.tar.gz
  • Upload date:
  • Size: 85.1 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.4.tar.gz
Algorithm Hash digest
SHA256 60ffbded2a9162d38a8a265808d6ed595f6f9993b38d6d58258deb2ebb1a0882
MD5 486b87577d12835832d2fa734e5de9bf
BLAKE2b-256 49c6b86c0507f346497f2fd84ea7c20b6efca59f216fc1ca926d6b399fe532be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for amalgam_lang-34.2.4-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 e50b11926fe2ba2af0c264bedc5ed91dbd84abf3f7401d7d64a5b0a1bd9b3c3f
MD5 04407f3e528ada8e770fe35df0fd110a
BLAKE2b-256 8cb1a03485ce36e4bf18faf6ce8ad0a52ede47d457ea0338a928216806af6a05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for amalgam_lang-34.2.4-py3-none-manylinux_2_29_x86_64.whl
Algorithm Hash digest
SHA256 0d14299f3963317b71008b5fe1c81bd6c0f47e2bb4fdfade3b7aa1b5ea34affd
MD5 1a478fc8d04641630c81d23fb31efe7c
BLAKE2b-256 c96f9c5eee63b048c783ca62bb262a0305b0d5bdf0fe6d183b77a398bc9b06bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for amalgam_lang-34.2.4-py3-none-manylinux_2_29_aarch64.whl
Algorithm Hash digest
SHA256 ccf299e941ebc98a28eb5a8284874a1425857efb99d8855bd8fa2029accb15ce
MD5 b6c9adb4e4787bf205a550c87d2e1f6b
BLAKE2b-256 b83f2668e44b47e622955501c5d5e42f349326f05f2085d7a80d3768c03b1837

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for amalgam_lang-34.2.4-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e6ed9449f39dd56370a90e03da3162ad3ab6a7c2b0c71b3b6b730515df0bdc7c
MD5 6a584a7b5496683b485d761a09f85abe
BLAKE2b-256 ddc33e68752dbfb0d0bb83e8c607a62d19a5a7a98ac2ac38758cbb36b5cb3032

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for amalgam_lang-34.2.4-py3-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 a0f7be5f0f769d174e6d99eaa5e833a4782e77ea3e423b74e5b1bc6cc194a267
MD5 af4de35e2a79107d7cbbd698e4d08206
BLAKE2b-256 b8c292d36cb51b7d930f95e2834c1ef339463b1dc0d3b7077bf98aa9e3c309f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: amalgam_lang-34.2.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 39156e300657fc294d169307d03aa3cac902c5599034a2b84c737e6aa251ee61
MD5 7ff8fa5047cd9d185b6c7986bb9b8a77
BLAKE2b-256 642a72881e9fb149446f00b7400447ec36cb5be2033d2cbf17966c1fae924ffd

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