amalgam-lang
A direct interface with Amalgam compiled DLL, dylib, or so.
What it is and what it does
Amalgam is a Python interface to Amalgam, a specialized language built for safe, sandboxed execution and code generation. Unlike general-purpose languages, Amalgam prioritizes code-data symmetry and semantic consistency, making it suited for domains like genetic programming, instance-based machine learning, simulation, and agent-based modeling. The wrapper handles the underlying compiled binary automatically, so you load Amalgam entity files (.amlg or .caml) and execute labeled functions by passing JSON parameters and receiving JSON results.
The package ships with precompiled binaries for Windows (x86_64), Linux (x86_64 and arm64), and macOS (arm64). It has no runtime Python dependencies, making installation straightforward. You write Amalgam code natively or through this Python wrapper, and the language's design emphasizes information-theoretic properties and safe execution semantics rather than developer convenience.
Use it for:
- Genetic programming: evolve code or data structures in a sandboxed, semantically consistent environment.
- Instance-based machine learning: implement algorithms that learn from individual examples using Amalgam's data-code symmetry.
- Agent-based modeling: define and execute agent behaviors and interactions with guaranteed semantic safety.
- Simulation: build deterministic, reproducible simulations where code and data are interchangeable.
- Game AI and content generation: generate game logic and AI behaviors using Amalgam's information-theoretic inference.
- Data storage and retrieval: leverage Amalgam's tree structure for efficient, semantically consistent data operations.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Amalgam is a Python wrapper that lets you call Amalgam, a tree-structured language designed for safe, sandboxed code generation and information-theoretic inference, directly from Python code.
Yes, if you need safe, sandboxed code generation or are exploring genetic programming, instance-based learning, or agent-based modeling. The package is actively maintained, has no external dependencies, and is marked production-stable. However, verify that your OS and CPU architecture are in the supported set (Windows/Linux x86_64, Linux/macOS arm64), and be aware that the GNU Affero v3 license requires source disclosure if you deploy it as a network service. For private or non-network use, it poses no licensing friction.
Install
amalgam-lang on PyPI
pip
pip install amalgam-languv
uv add amalgam-langpoetry
poetry add amalgam-langInstalling amalgam-lang
Before you install
Installs with no runtime dependencies and has been actively maintained with a release within the past week. The package is marked production-stable and supports current Python versions (3.11–3.14).
License in practice
Licensed under GNU Affero General Public License v3, which requires that if you modify and run the package as a network service, you must make your modified source code available to users. For private use or non-network deployment, this is less restrictive.
Quickstart
pip install amalgam-lang
from amalgam.api import Amalgam
import json
amlg = Amalgam()
amlg.load_entity("handle_name", "/path/to/file.amlg")
response = amlg.execute_entity_json("handle_name", "label_name", json.dumps({"abc": 123}))
result = json.loads(response)
Requires Python 3.11 or later. The package bundles platform-specific binaries (Windows x86_64, Linux x86_64 and arm64, macOS arm64); verify your OS and architecture are supported before installing.
Verify before relying
- Whether the bundled Amalgam binary can be overridden reliably across all supported platforms and architectures.
- Performance characteristics and scalability limits for typical workloads (genetic programming, simulation, agent-based modeling).
- Maturity and stability of the Amalgam language itself beyond the wrapper's production-stable classification.
Package facts
| License | GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this… (full text in the JSON record) (agpl) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 7 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 85,334/month — #13,930 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: amalgam_lang-34.2.6-py3-none-any.whl
Keywords: machine, learning, artificial, intelligence
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
pyro-pplPyro is a deep probabilistic programming…
permissive · top 5,000 on PyPI
langchain-experimentalProvides experimental LangChain components and…
permissive · top 5,000 on PyPI
pyslangpyslang provides Python bindings to parse,…
permissive · top 15,000 on PyPI
serena-agentSerena is an MCP server that provides semantic…
permissive · top 15,000 on PyPI
nvidia-curand-cu11Provides NVIDIA CURAND native runtime libraries…
unclear · top 5,000 on PyPI
pygadPyGAD is a Python library for building and…
unclear · top 15,000 on PyPI
sglang-kernelsglang-kernel provides optimized CUDA compute…
permissive · top 15,000 on PyPI
starlark-pyo3Exposes the Starlark interpreter (a Python-like…
unclear · top 15,000 on PyPI
OpenMMOpenMM is a Python wrapper for a C++ molecular…
permissive · top 15,000 on PyPI