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.4.0.tar.gz
(27.0 MB
view hashes)
Built Distributions
Close
Hashes for amalgam_lang-2.4.0-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68a763f70f7201e5176b23eb53e418c927420d479ec0878d1b656e1d1af21e3d |
|
MD5 | 9878e7176ad3cb5cf4c09750bf8d57ee |
|
BLAKE2b-256 | c42356a6824ffbc3ff0eee33ebefe26b5b23ba775cc7e327246d56133523a3e9 |
Close
Hashes for amalgam_lang-2.4.0-py3-none-manylinux_2_29_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 258f8dc7853f0d78e128b42902a064b1f8baa2c8485b80493300beb41124ae64 |
|
MD5 | 6846499f115091f530402ef769441597 |
|
BLAKE2b-256 | 78719a83c63e9800f9bb9aa56b63a2cb5f6532f3844352517e49a9f9aaae3804 |
Close
Hashes for amalgam_lang-2.4.0-py3-none-manylinux_2_29_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e78542ba92fd641d24f61a0b64acf95a97f5fcca06b97b8e6c3d03d9392a5b79 |
|
MD5 | cd3613a817be95eba84c71dc462b7243 |
|
BLAKE2b-256 | f34b50c46b6e84817cd5663579606b09fdabe6af3832cd743e6d9dacd478a826 |
Close
Hashes for amalgam_lang-2.4.0-py3-none-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a8fc87b71cf468450f4f8bd0cf679e0f3f144939f86acf6c9b9ea4de074e88a |
|
MD5 | 9780f609bcff57a5770f2440acf5fc83 |
|
BLAKE2b-256 | 6d25d9b7ac0fd0cf867303f1db102f38599cbcfea9404cd774a4cce406b2fbe1 |
Close
Hashes for amalgam_lang-2.4.0-py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13b63dc4455fa2dcb0720f30d07d76ed2d90035800b52a29e7c989c36a8e383c |
|
MD5 | 9a1128b077020eb3437afcc7513e1e57 |
|
BLAKE2b-256 | f00b6df7e7abf06b17f1c651839bee26fc35dab88336cb5c16d9d1786215ec99 |
Close
Hashes for amalgam_lang-2.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67c2a8f51da52a6edeebaded345e15ab193755fffafb865f1c6638c90d8aaf53 |
|
MD5 | a74b43545d9270f0af15538cc77a7858 |
|
BLAKE2b-256 | a4a40f2c377d0ddf2c7faa09f4c1c1b025297e8489c4bc84b2baf66c55d2af9a |