{"id":15360568,"url":"https://github.com/tkf/python-epc","last_synced_at":"2025-07-15T21:48:53.751Z","repository":{"id":4635738,"uuid":"5780382","full_name":"tkf/python-epc","owner":"tkf","description":"EPC (RPC stack for Emacs Lisp) for Python","archived":false,"fork":false,"pushed_at":"2023-02-25T20:17:00.000Z","size":328,"stargazers_count":96,"open_issues_count":3,"forks_count":16,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-06-23T09:57:14.306Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://python-epc.readthedocs.org","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tkf.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2012-09-12T13:47:40.000Z","updated_at":"2025-06-16T17:13:12.000Z","dependencies_parsed_at":"2023-07-06T08:47:48.595Z","dependency_job_id":null,"html_url":"https://github.com/tkf/python-epc","commit_stats":{"total_commits":357,"total_committers":3,"mean_commits":119.0,"dds":0.01680672268907568,"last_synced_commit":"f3673ae5c35f20a0f71546ab34c28e3dde3595c1"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/tkf/python-epc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkf%2Fpython-epc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkf%2Fpython-epc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkf%2Fpython-epc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkf%2Fpython-epc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tkf","download_url":"https://codeload.github.com/tkf/python-epc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkf%2Fpython-epc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265462579,"owners_count":23770054,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T12:50:43.075Z","updated_at":"2025-07-15T21:48:53.707Z","avatar_url":"https://github.com/tkf.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"EPC (RPC stack for Emacs Lisp) for Python\n=========================================\n\nLinks:\n\n* `Documentation \u003chttp://python-epc.readthedocs.org/\u003e`_ (at Read the Docs)\n* `Repository \u003chttps://github.com/tkf/python-epc\u003e`_ (at GitHub)\n* `Issue tracker \u003chttps://github.com/tkf/python-epc/issues\u003e`_ (at GitHub)\n* `PyPI \u003chttp://pypi.python.org/pypi/epc\u003e`_\n* `Travis CI \u003chttps://travis-ci.org/#!/tkf/python-epc\u003e`_ |build-status|\n\nOther resources:\n\n* `kiwanami/emacs-epc \u003chttps://github.com/kiwanami/emacs-epc\u003e`_\n  (Client and server implementation in Emacs Lisp and Perl.)\n* `tkf/emacs-jedi \u003chttps://github.com/tkf/emacs-jedi\u003e`_\n  (Python completion for Emacs using EPC server.)\n\n.. |build-status|\n   image:: https://secure.travis-ci.org/tkf/python-epc.png\n           ?branch=master\n   :target: http://travis-ci.org/tkf/python-epc\n   :alt: Build Status\n\n\nWhat is this?\n-------------\n\nEPC is an RPC stack for Emacs Lisp and Python-EPC is its server side\nand client side implementation in Python.  Using Python-EPC, you can\neasily call Emacs Lisp functions from Python and Python functions from\nEmacs.  For example, you can use Python GUI module to build widgets\nfor Emacs (see `examples/gtk/server.py`_ for example).\n\nPython-EPC is tested against Python 2.6, 2.7, 3.2 and 3.3.\n\nInstall\n-------\n\nTo install Python-EPC and its dependency sexpdata_, run the following\ncommand.::\n\n   pip install epc\n\n.. _sexpdata: https://github.com/tkf/sexpdata\n\n\nUsage\n-----\n\nSave the following code as ``my-server.py``.\n(You can find functionally the same code in `examples/echo/server.py`_)::\n\n   from epc.server import EPCServer\n\n   server = EPCServer(('localhost', 0))\n\n   @server.register_function\n   def echo(*a):\n       return a\n\n   server.print_port()\n   server.serve_forever()\n\n\nAnd then run the following code from Emacs.\nThis is a stripped version of `examples/echo/client.el`_ included in\nPython-EPC repository_.::\n\n   (require 'epc)\n\n   (defvar my-epc (epc:start-epc \"python\" '(\"my-server.py\")))\n\n   (deferred:$\n     (epc:call-deferred my-epc 'echo '(10))\n     (deferred:nextc it\n       (lambda (x) (message \"Return : %S\" x))))\n\n   (message \"Return : %S\" (epc:call-sync my-epc 'echo '(10 40)))\n\n\n.. _examples/echo/server.py:\n   https://github.com/tkf/python-epc/blob/master/examples/echo/server.py\n.. _examples/echo/client.el:\n   https://github.com/tkf/python-epc/blob/master/examples/echo/client.el\n\nIf you have carton_ installed, you can run the above sample by\nsimply typing the following commands::\n\n   make elpa        # install EPC in a separated environment\n   make run-sample  # run examples/echo/client.el\n\n.. _carton: https://github.com/rejeep/carton\n\n\nFor example of bidirectional communication and integration with GTK,\nsee `examples/gtk/server.py`_.  You can run this example by::\n\n   make elpa\n   make run-gtk-sample  # run examples/gtk/client.el\n\n.. _examples/gtk/server.py:\n   https://github.com/tkf/python-epc/blob/master/examples/gtk/server.py\n\n\nLicense\n-------\n\nPython-EPC is licensed under GPL v3.\nSee COPYING for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkf%2Fpython-epc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftkf%2Fpython-epc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkf%2Fpython-epc/lists"}