Maxximiliann
Supervising Python processes from Elixir
My Elixir project must rely on PyWaves, a Python library, to execute trades. Erlport and Pyrlang looked like attractive solutions for reliable connectivity between the two but, after further inspection, it appears both projects have been abandoned.
gRPC seems to be a viable alternative but before going down that rabbit hole I have to ask, are there any actively maintained libraries that offer simple, featherweight, direct solutions to establishing, maintaining and monitoring communications between Elixir and Python codebases running on the same machine?
Most Liked
skosch
Shameless plug: there is a small Python library called erlastic that handles the conversion between Erlang’s and Python’s internal encoding of strings, numbers, objects etc. It’s not mine but I maintain a fork here which AFAIK is the most up-to-date version. I’ve been using this thing with ports for years – I outsource numerical computation jobs to Python scripts, and it works great.
mindok
This is a great article showing exactly what it means to use ports to connect Elixir & Python (for a different use case): https://www.poeticoding.com/real-time-object-detection-with-phoenix-and-python/
hauleth
You can use regular ports (Erlport is just wrapper on top of that) or C-Nodes.







