Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

metacall

0.1.7 • 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:

curl -sL https://raw.githubusercontent.com/metacall/install/master/install.sh | bash

Then install NodeJS package:

npm install metacall

Example

sum.py

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

main.js

const { metacall, metacall_load_from_file } = require('metacall');
 
metacall_load_from_file('py', [ 'sum.py' ]);
 
metacall('sum', 3, 4); // 7
metacall node main.js

Install

npm i metacall

DownloadsWeekly Downloads

61

Version

0.1.7

License

Apache-2.0

Unpacked Size

90 kB

Total Files

10

Homepage

metacall.io

Last publish

Collaborators

  • avatar