Miss any of our Open RFC calls?Watch the recordings here! »

metacall

0.2.2 • Public • Published
M E T A C A L L

M E T A C A L L

A library for providing inter-language foreign function interface calls

Abstract

METACALL is a library that allows calling functions, methods or procedures between programming languages. With METACALL you can transparently execute code from / to any programming language, for example, call Python code from NodeJS.

Install

Install MetaCall binaries first (click here for additional info about the install script):

bash <(curl -sL https://raw.githubusercontent.com/metacall/install/master/install.sh)

Then install MetaCall NodeJS package through MetaCall:

metacall npm install metacall

Example

sum.py

def sum(a, b):
  return a + b

main.js

require('metacall'); // Import MetaCall
 
const { sum } = require('sum.py'); // Import Python script
 
sum(3, 4); // 7
metacall main.js

Install

npm i metacall

DownloadsWeekly Downloads

9

Version

0.2.2

License

Apache-2.0

Unpacked Size

29.5 kB

Total Files

7

Homepage

metacall.io

Last publish

Collaborators

  • avatar