Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Parsing Erlang Config file with Python

I want to parse an erlang config file in python. Is there a module for it? This config file contains;

[{webmachine, [
 {bind_address, "12.34.56.78"},
 {port, 12345},
 {document_root, "foo/bar"}
]}].
like image 321
Alperen Elhan Avatar asked Feb 19 '23 06:02

Alperen Elhan


1 Answers

You could use etf library to parse erlang terms in python https://github.com/machinezone/python_etf

like image 185
Andrey Vasenin Avatar answered Feb 21 '23 20:02

Andrey Vasenin