MetaCall allows calling functions, methods or procedures between multiple programming languages.
sum.py
def sum(a, b):
return a + bmain.js
const { sum } = require('./sum.py');
sum(3, 4); // 7shell
metacall main.jsMetaCall is a extensible, embeddable and interoperable cross-platform polyglot runtime. It supports NodeJS, Vanilla JavaScript, TypeScript, Python, Ruby, C#, Java, WASM, Go, C, C++, Rust, D, Cobol and more.
The easiest way to install MetaCall is the following:
curl -sL https://raw.githubusercontent.com/metacall/install/master/install.sh | shFor more information about other install methodologies and platforms or Docker, check the install documentation.
You can find a complete list of examples in the documentation. If you are interested in submitting new examples, please contact us in our chats.