Serialize and unserialize Python list & dictionary between Lua table.
Project description
luadata
This is a Python package that can serialize Python
list & dictionary to Lua
table, or unserialize Lua
table to Python
list & dictionary.
Install
Binary installers for the latest released version are available at the Pypi
.
python -m pip install --upgrade luadata
Use
You can use write
to output your Python data into a Lua file on path.
luadata.write(data, path, encoding='utf-8', form=False, prefix='return ')
Or use read
to input your Python data from a Lua file on path.
data = luadata.read(path, encoding='utf-8')
If only want to serialize or unserialize string data, You can try serialize
and unserialize
.
luadata.serialize(data, form=False)
luadata.unserialize(src_data)
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
luadata-0.2.0.tar.gz
(3.7 kB
view hashes)