Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

170
Visualizações
Communication between Electron Frontend and Python Backend

After developing a Python CLI app, I realized that it's time for it to have an Electron frontend.

How can the Electron app communicate with the Python app in response to a user action on the UI?

Update: Is it typical for the Python CLI app to be converted into a long-running server using like asyncio, and is Kafka for IPC an overkill?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

It depends, but in general it should be possible to use the existing CLI for IPC. You can spawn the CLI app as a subprocess from Electron and communicate with it through standard text streams. Of course, this method is simplistic and works properly only if GUI "owns" a CLI instance and CLI does't need to live longer than the GUI. Also, things become more complicated if either app must be a singleton (e.g. a second GUI instance must connect to the same one CLI instance). In such cases, a server makes sense.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda