Export
Erlport wrapper for Elixir
Install / Use
/learn @fazibear/ExportREADME
Export

Erlport wrapper for Elixir.
Installation
Add export to your list of dependencies in mix.exs:
def application do
[applications: [:export]]
end
def deps do
[
{:export, "~> 0.1.0"},
]
end
Usage
Ruby
defmodule SomeRubyCall do
use Export.Ruby
def call_ruby_method do
# path to ruby files
{:ok, ruby} = Ruby.start(ruby_lib: Path.expand("lib/ruby"))
# call "upcase" method from "test" file with "hello" argument
ruby |> Ruby.call("test", "upcase", ["hello"])
# same as above but prettier
ruby |> Ruby.call(upcase("hello"), from_file: "test")
end
end
Python
defmodule SomePythonCall do
use Export.Python
def call_python_method do
# path to our python files
{:ok, py} = Python.start(python_path: Path.expand("lib/python"))
# call "upcase" method from "test" file with "hello" argument
py |> Python.call("test", "upcase", ["hello"])
# same as above but prettier
val = py |> Python.call(upcase("hello"), from_file: "test")
# close the Python process
py |> Python.close()
val
end
end
Thank you!
Related Skills
node-connect
342.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.7kCommit, push, and open a PR

