An open API service indexing awesome lists of open source software.

https://github.com/d-led/pyrlang-elixir-example

A Pyrlang and Elixir interop example
https://github.com/d-led/pyrlang-elixir-example

Last synced: about 1 year ago
JSON representation

A Pyrlang and Elixir interop example

Awesome Lists containing this project

README

          

# Pyrlang Elixir Example

## Structure

- Elixir node source: [`example.exs`](example.exs)
- Python node source: [`example.py`](example.py)

## 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](https://virtualenv.pypa.io/en/latest/)) is assumed
- install Rust: `curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh` vis [rustup](https://rustup.rs/)
to compile [pyrlang-term](https://github.com/Pyrlang/Term)
- install [Poetry](https://python-poetry.org/docs/#installation)
- install Python dependencies `poetry install`
- install [Elixir](https://elixir-lang.org/install.html)

### 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