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.5.0.tar.gz
(13.6 kB
view details)
Built Distribution
File details
Details for the file metacall-0.5.0.tar.gz
.
File metadata
- Download URL: metacall-0.5.0.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68910f2cb66e1d4ffadd8bcd15212baf13259ceaf6e153afffb6536635a67cbe |
|
MD5 | e920a60674bcd93a1bd870a64ad62a49 |
|
BLAKE2b-256 | 8476d3f343250adf203990ce30b09dc572dbd4f976a6736ab9f4377af9382907 |
File details
Details for the file metacall-0.5.0-py2.py3-none-any.whl
.
File metadata
- Download URL: metacall-0.5.0-py2.py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f4917a08d044597add384c3018e28dac97c144f289986c3628531f8dfc3707a |
|
MD5 | 70c2652b8fc915fe8f304a9e389bd8e1 |
|
BLAKE2b-256 | 4713967fe8e1dadd9b7ee19b20d09b6777f7e3840759ea48a92bc3c0a4dc4b70 |