https://github.com/skythecodemaster/python-lua-tables
Lua tables in Python
https://github.com/skythecodemaster/python-lua-tables
Last synced: about 2 months ago
JSON representation
Lua tables in Python
- Host: GitHub
- URL: https://github.com/skythecodemaster/python-lua-tables
- Owner: SkyTheCodeMaster
- License: mit
- Created: 2021-11-06T12:55:18.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-11-14T18:15:41.000Z (over 3 years ago)
- Last Synced: 2025-02-05T18:06:39.791Z (4 months ago)
- Language: Python
- Homepage:
- Size: 35.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# luatables
Lua tables in Python# Example usage:
```py
from luatable import Tabletbl = Table()
tbl["x"] = 5
tbl.y = 45print(tbl) #> {'x': 5, 'y': 45}
print(tbl.x) #> 5tbl.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.