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.3.25.tar.gz
(27.0 MB
view hashes)
Built Distributions
Close
Hashes for amalgam_lang-2.3.25-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66e71f5783b0f18a6c0d80742d9c1e3f1dae6faefdee54510549b51df01836d7 |
|
MD5 | 08f4f24b2b09b97bb5ae80d112ae2a77 |
|
BLAKE2b-256 | 14636f152123c213c68e55a2b22073c1dcdefc3860f7ee7b868c6ab17ba92e58 |
Close
Hashes for amalgam_lang-2.3.25-py3-none-manylinux_2_29_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ac94d6bd8635d98e5d99b2378ac23b2b645fe98883be9d9c53cc632ea410ec1 |
|
MD5 | 0f4b2ce24ea125efde4f7937880bd891 |
|
BLAKE2b-256 | ee94ad379a4b953cbffbb08b0b494c44af5442d4ac6dd4b494fdddcd0c4a232d |
Close
Hashes for amalgam_lang-2.3.25-py3-none-manylinux_2_29_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17f0fb22402d739ae61243e6d001e06cb8dd152ace652a94ad7a123eb9f9f024 |
|
MD5 | 349b40f23e6de9b4841a862f95e3a548 |
|
BLAKE2b-256 | 9286538c851b1b8c7e868f6e6af1ba5b88198cba7271ce5831ffdd4fc78021dd |
Close
Hashes for amalgam_lang-2.3.25-py3-none-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 281bfdab3da04968d278de3bd5bf3050abbbee7e94b739a05dab3259dad64e68 |
|
MD5 | 902a2d1ef5d82cbb2734d5d687d12011 |
|
BLAKE2b-256 | 6f2f4ffc704b03d0c03f2547d51da8bc8630dcf53f43226908d50a79157b1a39 |
Close
Hashes for amalgam_lang-2.3.25-py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a3a712ddf31c899e094b21552553f65f26b4d1d24e777cf0827a132ef262d4a |
|
MD5 | 080a287f7903a7fc794c284c980e8dba |
|
BLAKE2b-256 | 340bcb29c382b6bf762798cdb4a99cd724eab7f9eed24c3cbc8af560d0c3fbed |
Close
Hashes for amalgam_lang-2.3.25-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 521d393cc3ad024c6907333be16dbf6cf91ca1492658711e940f9cfb4f6df3c2 |
|
MD5 | eeb778a7fa4b5c904aa49e85c5e64e7c |
|
BLAKE2b-256 | 9626210f92bc2cc7e0a70a403e8b9c335afaf93bc27078882ebca41a6e846fbf |