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
- Host: GitHub
- URL: https://github.com/d-led/pyrlang-elixir-example
- Owner: d-led
- License: unlicense
- Created: 2024-12-19T17:10:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-20T14:56:39.000Z (over 1 year ago)
- Last Synced: 2025-02-15T23:44:23.391Z (over 1 year ago)
- Language: Python
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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