Maxximiliann

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

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

mindok

This is a great article showing exactly what it means to use ports to connect Elixir & Python (for a different use case): Real-time Object Detection with Phoenix and Python

hauleth

hauleth

You can use regular ports (Erlport is just wrapper on top of that) or C-Nodes.

Last Post!

Maxximiliann

Maxximiliann

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)

Where Next?

Popular in Questions Top

vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New

Other popular topics Top

hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
AstonJ
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 44167 214
New
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New

We're in Beta

About us Mission Statement