Lua tables in Python
Project description
luatables
Lua tables in Python
Example usage:
from luatable import Table
tbl = Table()
tbl["x"] = 5
tbl.y = 45
print(tbl) #> {'x': 5, 'y': 45}
print(tbl.x) #> 5
tbl.z = {}
tbl.z.hi = "Hi!"
print(tbl) #> {'x': 5, 'y': 45, 'z': {'hi': 'Hi!'}}
print(tbl.z.hi) #> "Hi!"
print(tbl["z"]["hi"]) #> "Hi!"
These function identically to Lua tables, except that metatables are not supported.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
luatables-0.0.1.tar.gz
(14.0 kB
view hashes)
Built Distribution
luatables-0.0.1-py3-none-any.whl
(14.3 kB
view hashes)
Close
Hashes for luatables-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bfc9fe7d00cfeed3ca18d93f4fad432dd42d4e05867dd7860a11b6e45be6996 |
|
MD5 | 550a14d814788b8bb5193b1e2a0ab2d8 |
|
BLAKE2b-256 | 1041c05b4f0f162d837a574b28cf1c4e8ead77d4dd9c0de90945c5e2754c2ab1 |