A library for providing inter-language foreign function interface calls
Project description
Abstract
METACALL Python Port is the port of METACALL to Python Programming Language. With METACALL Python Port you can transparently execute code from Python to any programming language, for example, calling JavaScript, NodeJS, Ruby or C# code from Python.
Install
Install MetaCall binaries first:
curl -sL https://raw.githubusercontent.com/metacall/install/master/install.sh | bash
Then install MetaCall Python package through MetaCall:
metacall pip3 install metacall
Example
multiply.rb
def multiply(left, right)
return left * right
end
main.py
from metacall import metacall_load_from_file, metacall
metacall_load_from_file('rb', [ 'multiply.rb' ]);
metacall('multiply', 3, 4); # 12
Running the example:
metacall main.py
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
metacall-0.3.0.tar.gz
(10.6 kB
view hashes)
Built Distribution
Close
Hashes for metacall-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de34cdc99459eaa5edf63ce4723c48b10daf498715fc601cb482b08b129aaa7d |
|
MD5 | 5bdb75068b0e83999a187f207e5e927d |
|
BLAKE2b-256 | 09bf171f8a8a444ab65efbbbb7bb385caafae9882146780679140750285c2c54 |