Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for metacall, version 0.1.18
Filename, size File type Python version Upload date Hashes
Filename, size metacall-0.1.18-py2.py3-none-any.whl (7.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size metacall-0.1.18.tar.gz (8.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page