d-led / pyrlang-elixir-example

A Pyrlang and Elixir interop example

Repository from Github https://github.comd-led/pyrlang-elixir-exampleRepository from Github https://github.comd-led/pyrlang-elixir-example

Pyrlang Elixir Example

Structure

Run the Demo in Docker

  • docker compose up --build --force-recreate
  • observe the output

Run the Demo With all Dependencies Locally

Prerequisites

  • a working Python environment (e.g. virtualenv) is assumed
  • install Rust: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh vis rustup to compile pyrlang-term
  • install Poetry
  • install Python dependencies poetry install
  • install Elixir

Demo

  • in one window: elixir --name erl@127.0.0.1 --cookie COOKIE example.exs
  • in another: python example.py
  • observe the output in both

About

A Pyrlang and Elixir interop example

License:The Unlicense


Languages

Language:Python 57.6%Language:Elixir 37.1%Language:Shell 5.3%