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.4.0.tar.gz (85.7 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.4.0-py3-none-win_amd64.whl (6.0 MB view details)

Uploaded Python 3Windows x86-64

amalgam_lang-34.4.0-py3-none-manylinux_2_29_x86_64.whl (68.0 MB view details)

Uploaded Python 3manylinux: glibc 2.29+ x86-64

amalgam_lang-34.4.0-py3-none-manylinux_2_29_aarch64.whl (7.8 MB view details)

Uploaded Python 3manylinux: glibc 2.29+ ARM64

amalgam_lang-34.4.0-py3-none-manylinux_2_28_x86_64.whl (71.1 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

amalgam_lang-34.4.0-py3-none-macosx_12_0_arm64.whl (4.4 MB view details)

Uploaded Python 3macOS 12.0+ ARM64

amalgam_lang-34.4.0-py3-none-any.whl (86.1 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: amalgam_lang-34.4.0.tar.gz
  • Upload date:
  • Size: 85.7 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.4.0.tar.gz
Algorithm Hash digest
SHA256 d9ac807decaad038c1de59280141994438095cab2ecde96a0fa5edc1a059ed09
MD5 ab1becf563c9fc4c1759fd7de96809b4
BLAKE2b-256 e372802ba1022cb6af1da32d56ba668de4cd5dc6e4fefbc07b822ebc3b1354fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for amalgam_lang-34.4.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 a80385366b7f02c7a9811bd5cf0331b605547e216c1677bc6a409fb0fc431585
MD5 5ad370903e0868b54b384c5d83b81de8
BLAKE2b-256 132f011b21208beb8b7a20c2ee44718f9d87e7d255b9af0d7465b839ec820216

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for amalgam_lang-34.4.0-py3-none-manylinux_2_29_x86_64.whl
Algorithm Hash digest
SHA256 f6d286b2d6b0d8ca2e7401fac726512702ab4fc54f48f895d6a1c195f7eb2fa7
MD5 975f46dcf9e245d12e205d39b953114f
BLAKE2b-256 04671ed9c2cf0ae8f1e90ad66d508962691e74722974fff8aa4d953e64687eb2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for amalgam_lang-34.4.0-py3-none-manylinux_2_29_aarch64.whl
Algorithm Hash digest
SHA256 a55d8d6bbaf974f42efc2901c0e6876cf650a5eb0d5cb0eb714c0a77a6331239
MD5 6adbed79b976660eb7e05895abe2b0d8
BLAKE2b-256 0cb4cc11c7130399d1ab169648ca7b50a22712d39e43cd2c443b35c7fcd7f0e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for amalgam_lang-34.4.0-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 69b10e88937b1786ebe14ee5b7dd876900d20d4bcbafe794202e74dfef7629ea
MD5 32d1e8537e26e76c74e69f3f5d94f6b4
BLAKE2b-256 7c983b800ee42a21a705d2252407bf73b7bf0675d3048b0061643185a4541729

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for amalgam_lang-34.4.0-py3-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 6ae67f5d2f21e044d519208a04a26a33b9f3c405a7bf79534b93c191901573b8
MD5 4441d408b105efc33287aaa430db4150
BLAKE2b-256 0c804c6172fc7352bbc77fa17381720a99a4f9072327263f2f572e5f8e96cc41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: amalgam_lang-34.4.0-py3-none-any.whl
  • Upload date:
  • Size: 86.1 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cc548bf1ce06ac17a27d762e161a142afdc3641f65c7c12194d2ddad018d5c6a
MD5 09b0a7dc07127f7ffe63e6c2fc0e3400
BLAKE2b-256 42e26c989e01f10fa96a831ccacc4ee8821d4b0c6037d106e244ed67ea3bbe25

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

34.4.0 This release

7 files

34.3.1

7 files

34.3.0

7 files

34.2.6

7 files

34.2.5

7 files

34.2.4

7 files

34.2.3

7 files

34.2.2

7 files

34.2.1

7 files

34.2.0

7 files

34.1.2

7 files

34.1.1

7 files

34.1.0

7 files

34.0.0

7 files

33.0.1

7 files

33.0.0

7 files

32.0.1

7 files

32.0.0

7 files

31.0.1

7 files

31.0.0

7 files

30.1.1

7 files

30.1.0

7 files

30.0.0

7 files

29.0.1

7 files

29.0.0

7 files

28.0.0

7 files

27.4.0

7 files

27.3.1

7 files

27.3.0

7 files

27.2.0

7 files

27.1.0

7 files

27.0.3

7 files

27.0.2

7 files

27.0.1

7 files

27.0.0

7 files

26.0.0

8 files

25.3.0

8 files

25.2.12

8 files

25.2.11

8 files

25.2.10

8 files

25.2.9

8 files

25.2.8

8 files

25.2.7

8 files

25.2.6

8 files

25.2.5

8 files

25.2.4

8 files

25.2.3

8 files

25.2.2

8 files

25.2.1

8 files

25.2.0

8 files

25.1.0

8 files

25.0.2

8 files

25.0.1

3 files

25.0.0

8 files

24.1.1

8 files

24.1.0

8 files

24.0.7

8 files

24.0.6

8 files

24.0.5

8 files

24.0.4

8 files

24.0.3

8 files

24.0.2

8 files

24.0.1

8 files

24.0.0

8 files

23.0.0

8 files

22.0.3

8 files

22.0.2

8 files

22.0.1

8 files

22.0.0

8 files

21.1.1

8 files

21.1.0

8 files

21.0.0

8 files

20.1.1

8 files

20.1.0

8 files

20.0.4

8 files

20.0.3

8 files

20.0.2

8 files

20.0.1

8 files

20.0.0

8 files

19.1.1

8 files

19.1.0

8 files

19.0.4

8 files

19.0.3

8 files

19.0.2

8 files

19.0.1

8 files

19.0.0

8 files

18.1.5

8 files

18.1.4

8 files

18.1.3

8 files

18.1.2

8 files

18.1.1

8 files

18.1.0

8 files

18.0.5

8 files

18.0.4

8 files

18.0.3

8 files

18.0.2

8 files

18.0.1

8 files

18.0.0

8 files

17.0.0

8 files

16.1.2

8 files

16.1.1

8 files

16.1.0

8 files

16.0.0

8 files

15.0.7

8 files

15.0.6

8 files

15.0.5

5 files

15.0.4

8 files

15.0.3

8 files

15.0.2

8 files

15.0.1

8 files

15.0.0

8 files

14.0.0

7 files

13.0.4

8 files

13.0.3

8 files

13.0.2

7 files

13.0.1

7 files

13.0.0

7 files

12.4.4

7 files

12.4.3

7 files

12.4.2

7 files

12.4.1

7 files

12.4.0

7 files

12.3.16

7 files

12.3.15

7 files

12.3.14

7 files

12.3.13

7 files

12.3.12

7 files

12.3.11

7 files

12.3.10

7 files

12.3.9

7 files

12.3.8

7 files

12.3.7

7 files

12.3.6

7 files

12.3.5

7 files

12.3.4

7 files

12.3.0

7 files

12.2.0

7 files

12.1.0

7 files

12.0.0

7 files

11.0.0

7 files

10.4.1

7 files

10.4.0

7 files

10.3.1

7 files

10.3.0

7 files

10.2.2

7 files

10.0.0

7 files

9.0.1

7 files

9.0.0

7 files

8.2.0

7 files

8.1.0

7 files

8.0.0

7 files

7.2.0

7 files

7.1.0

7 files

6.2.0

7 files

6.1.0

7 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page