ERPY
This library wraps around the Python version of the Term library to provide a simple mechanism for communicating between an Erlang process and a Python process.
Installation
As always, use pip, preferably within a virtual environment.
pip install erpy
Usage
Encoding and Decoding Erlang Terms
Use the term library. Their documentation is here,
and the python version of their library is bundled with this library. If you
want to get the Rust one working with PyPi, I'm sure that they would apprecate
it :).
Basic Communication over STDIO
Sending Messages From Python
from erpy import stdio_port_connection
inbox, port = stdio_port_connection()
for i in range(100):
port.send(i)
Receiving Messages In Python
from erpy import stdio_port_connection
from term import Atom
inbox, port = stdio_port_connection()
for msg in inbox:
if msg == Atom("close"):
break
with open("output.txt", "a") as f:
print(f"got {msg}", file=f)
Release files for erpy 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| erpy-0.1.1.tar.gz | 23.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| erpy-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 45.4 kB
Release files / erpy-0.1.1.tar.gz
| Download URL | erpy-0.1.1.tar.gz |
|---|---|
| Size | 23.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c5a5a0f5a1fa885b920c03b38273c38a90c7a50ccf2f8194659fd68842a03b40
|
|
BLAKE2b-256 checksum How to use checksums |
bd71874de434110db7023755fce5d8696c8490687f9a01b4770f12dbf971040e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.8
|
Release files / erpy-0.1.1-py3-none-any.whl
| Download URL | erpy-0.1.1-py3-none-any.whl |
|---|---|
| Size | 21.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aa6816770bda65dcc7b032c8223ede36595d4e9e66e1c3e47c1cb7f526ec764d
|
|
BLAKE2b-256 checksum How to use checksums |
2d835b49b54fe6e438ccb4699e14e22137752ecec1c1d47287866720a60c3979
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.8
|