/pyrlang-elixir-example

A Pyrlang and Elixir interop example

Primary LanguagePythonThe UnlicenseUnlicense

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