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.3.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.3.0-py3-none-win_amd64.whl (6.0 MB view details)

Uploaded Python 3Windows x86-64

amalgam_lang-34.3.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.3.0-py3-none-manylinux_2_29_aarch64.whl (7.8 MB view details)

Uploaded Python 3manylinux: glibc 2.29+ ARM64

amalgam_lang-34.3.0-py3-none-manylinux_2_28_x86_64.whl (71.0 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

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

Uploaded Python 3macOS 12.0+ ARM64

amalgam_lang-34.3.0-py3-none-any.whl (86.0 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: amalgam_lang-34.3.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.3.0.tar.gz
Algorithm Hash digest
SHA256 84d2f843291775d83d82b5d5a187086935c6d085fc3549253c8e97faf3432701
MD5 a40e70fbe6d4f6113a7bdad8ad9c13b2
BLAKE2b-256 057c4f121b05e73319dc6e40828fb80dff0577f555d2d7d5dcfe732da32b5006

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for amalgam_lang-34.3.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 fb8e6e39a315bd6f169ef245667c2784d2c3c7cf6586d7396885a3332bdcc2a5
MD5 8492651e9cd83235b73fba8bd1efcd6f
BLAKE2b-256 9c87203cc03d081de27d56108d0592313fd157708a4258f344440569b1da57b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for amalgam_lang-34.3.0-py3-none-manylinux_2_29_x86_64.whl
Algorithm Hash digest
SHA256 853f201fa9ee392dfe5d15f278d98c6c0187da4bdd37a64ce82356fcd86a0cb1
MD5 3f673bcdf62250bbbdbdeb64cbc1daa5
BLAKE2b-256 183d91ee0dd936c5c49ddb9ef3e24f285e7a760f17f2e7b7f1c24ef027133a50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for amalgam_lang-34.3.0-py3-none-manylinux_2_29_aarch64.whl
Algorithm Hash digest
SHA256 f7e4d1517d330fb391bb12d408f7b74cb2f9302f95b53e716146d20d526166ea
MD5 83fa95ef1d7c616d63af0da382a1eb67
BLAKE2b-256 5df27cd68626c7ad37c030a917f2af1e9647ddb3ce59d3b4ad4030eb5ccc017e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for amalgam_lang-34.3.0-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0e1f4e161f56d9eb0b83a970e2eda82ee8ebd3125b515d71c2d9f047b601a63b
MD5 d81b89b94ba21fdcbf1f78c3aae39d88
BLAKE2b-256 827758ed06d3f520fcc32b997c52db839e0f8e8c0837b36eba439c7b8090f979

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for amalgam_lang-34.3.0-py3-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 33b532c805ef64ab522ae069bb9eba1f129bff3e187c6a420af88069da4bfc6d
MD5 4aed57521fca20a821df77a5e6e42014
BLAKE2b-256 475f6bab98d44dc3e793ea3ee8b7084177a0bc1a4f522bdb1353288e41d1e7f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: amalgam_lang-34.3.0-py3-none-any.whl
  • Upload date:
  • Size: 86.0 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24647c7bd098f37e6f09ba016f8ffd24694b6176851130606355c96babe035d0
MD5 7a32b8c2baa6ff93d4151fd44f8232e4
BLAKE2b-256 31d95d33175e7bf2048dca88b347500ff33232095ff4a7a590489ebca927e3ba

See more details on using hashes here.

Release history Release notifications | RSS feed

34.4.0

7 files

34.3.1

7 files

This release

34.3.0 This release

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