You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kiwanami/emacs-epc
(Client and server implementation in Emacs Lisp and Perl.)
tkf/emacs-jedi
(Python completion for Emacs using EPC server.)
What is this?
EPC is an RPC stack for Emacs Lisp and Python-EPC is its server side
and client side implementation in Python. Using Python-EPC, you can
easily call Emacs Lisp functions from Python and Python functions from
Emacs. For example, you can use Python GUI module to build widgets
for Emacs (see examples/gtk/server.py for example).
Python-EPC is tested against Python 2.6, 2.7, 3.2 and 3.3.
Install
To install Python-EPC and its dependency sexpdata, run the following
command.:
pip install epc
Usage
Save the following code as my-server.py.
(You can find functionally the same code in examples/echo/server.py):
from epc.server import EPCServer
server = EPCServer(('localhost', 0))
@server.register_function
def echo(*a):
return a
server.print_port()
server.serve_forever()
And then run the following code from Emacs.
This is a stripped version of examples/echo/client.el included in
Python-EPC repository.: