A direct interface with Amalgam compiled DLL or so.
Project description
Amalgam™ Wrapper - Python
This Python module allows running programs written in the Amalgam language through the Amalgam dynamic library.
Supported Platforms
Compatible with Python versions: 3.8, 3.9, 3.10, and 3.11
Operating Systems
OS | x86_64 | arm64 |
---|---|---|
Windows | Yes | No |
Linux | Yes | Yes |
MacOS | Yes | Yes |
Installing
pip install amalgam-lang
Getting Started
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 path to the Amalgam language binary (so/dll/dylib) can be overridden using the library_path
parameter.
amlg = Amalgam(library_path="/path/to/amalgam-mt.so")
Development
- Install development dependencies
pip install -r requirements-dev.in
- Run tests:
python -m pytest amalgam
License
Contributing
Project details
Release history Release notifications | RSS feed
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-2.5.0.tar.gz
(26.9 MB
view hashes)
Built Distributions
Close
Hashes for amalgam_lang-2.5.0-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | edba501a5a660520e6e050fbecc3955869736fbee8e7d83477f3a818c3874527 |
|
MD5 | b275d519705d1c3e64d7681afa9c115e |
|
BLAKE2b-256 | 4402e0f79562e438045b66bb77f8963f60e0ccaf6fe18a20c25a739a1062cf5f |
Close
Hashes for amalgam_lang-2.5.0-py3-none-manylinux_2_29_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ec0c0abda829b56fad5747dcdf5605c9ef0589c00cc14817aa0b5a652db1d3e |
|
MD5 | 4932c3f1f3762ded034f300ef64f1437 |
|
BLAKE2b-256 | 65d692786adca9fa0ed45514add829e9c89381574724966e1439571c889dc479 |
Close
Hashes for amalgam_lang-2.5.0-py3-none-manylinux_2_29_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c1c1bc0956006e33cdcb10e9fdc08124effc9a1d0ae3779ceb1bcf1bf85f4b0 |
|
MD5 | eba3604fdb6c5d0c959915d744557ced |
|
BLAKE2b-256 | 1722e57d16b1a3d9bb93c0835805c2056f6e91b7ae2402c57f1261427ec9d403 |
Close
Hashes for amalgam_lang-2.5.0-py3-none-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97d33eff81aceb6a0df59fabca54af576181c89283927b06d2ce46210191d179 |
|
MD5 | 47e1db757d9a7b81a4403f4002e6fda5 |
|
BLAKE2b-256 | 4e8ec65b98b2b1df555496cb33afb711db168ecab304b6a67db4b4fe5c5fd631 |
Close
Hashes for amalgam_lang-2.5.0-py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c998f5ab3eee80e6a6069c3553dfdfc56461c23eb5a3719a8eea82e03b3a6b3 |
|
MD5 | 4f862d8905640aa34a847b7ee06c2ad4 |
|
BLAKE2b-256 | c7aadc216c565689ee5e383d6156df888c5d89471097c78fa73e9696425e9213 |
Close
Hashes for amalgam_lang-2.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c80ba86a2a5468601d039bf7ad0cb822fd1d54151d195b270e3e4837fba3253a |
|
MD5 | faa78dc8cd840295bbbc120d7e5c6fea |
|
BLAKE2b-256 | c41260811a7f1e4868c9fb4f4a6065330b60dfb20e7862a5956744bafd76d3da |