Skip to content
Erlang Interface for Python
C Python Erlang Makefile
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
tests update tests
.gitignore release 0.2
.travis.yml added rpc test
Makefile update README
eterm.c fixed typo
eterm.h added Eterm class
pyerl.c added pyerl_term_len Search for erlang first in ERL_HOME and ERLANG_HOME env variables, if…


PyPI Build Status GitHub license

PyErl is Erlang Interface for Python. which help you integrate programs written in Python and Erlang.


This module requires these other modules and libraries:

Erlang/OTP R12 or later

In debian:

apt-get install erlang-dev


python build
python install


  • make erlang terms
import pyerl
atom = pyerl.mk_atom("hello")
string = pyerl.mk_string("world")
int = pyerl.mk_int(-1)
list = pyerl.mk_list([atom, string, int])
print list
  • call rpc
# just call pingpong:ping() in node2@localhost
import pyerl
host = "localhost"
name = "node1"
node = name + "@" + host
cookie = "TESTCOOKIE"
pyerl.connect_xinit(host, name, node, "", cookie, 1)
pyerl.xconnect("", "node2")
atom = pyerl.mk_atom("ping")
args = pyerl.mk_list([atom]);
eterm = pyerl.rpc(sock, "pingpong", "ping", args);
print eterm


Tsukasa Hamano

Something went wrong with that request. Please try again.