### Install Source: https://github.com/leafvmaple/luadata/blob/master/README.md Install the luadata package using pip. ```bash python -m pip install --upgrade luadata ``` -------------------------------- ### write Source: https://github.com/leafvmaple/luadata/blob/master/README.md Serialize a Python variable to a Lua data string and save it to a specified path. ```python import luadata luadata.write(path, data, encoding="utf-8", indent="\t", prefix="return ") ``` -------------------------------- ### read Source: https://github.com/leafvmaple/luadata/blob/master/README.md Unserialize a Lua data string from a file into a Python variable. ```python import luadata data = luadata.read(path, encoding="utf-8") ``` -------------------------------- ### serialize Source: https://github.com/leafvmaple/luadata/blob/master/README.md Serialize a Python variable to a Lua data string. ```python import luadata luadata.serialize(var, encoding="utf-8", indent="\t", indent_level=0) ``` -------------------------------- ### unserialize Source: https://github.com/leafvmaple/luadata/blob/master/README.md Unserialize a Lua data string into a Python variable. ```python import luadata luadata.unserialize(luadata_str, encoding="utf-8", multival=False) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.