skillfed

amalgam-lang

A direct interface with Amalgam compiled DLL, dylib, or so.

amalgam-lang v34.2.6 85.3K downloads/30d#13,930 on PyPI3
AGPL 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) Active released

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-lang

uv

uv add amalgam-lang

poetry

poetry add amalgam-lang

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: Science/ResearchLicense :: OSI Approved :: GNU Affero General Public License v3Operating System :: MacOSOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: Microsoft :: Windows :: Windows 10Operating System :: Microsoft :: Windows :: Windows 11Operating System :: POSIX :: LinuxProgramming Language :: Python :: 3Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Scientific/Engineering :: Artificial Intelligence

Tags

tree-structured language wrappersandboxed code generationLLM-ready language interfacegenetic programming frameworkinstance-based machine learninginformation theory computationsafe code executionagent-based modeling
sandboxed-executiongenetic-programmingagent-modeling

More Artificial Intelligence packages