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-1.0.1.1.tar.gz
(2.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file luatables-1.0.1.1.tar.gz.
File metadata
- Download URL: luatables-1.0.1.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5a6ac40b3b8d58aec594aa4eff0e6908db872cff6f85a36e952918f53397f83
|
|
| MD5 |
9b26bd8e15d244ce1b0d514d3a81fc05
|
|
| BLAKE2b-256 |
6990b067ef7e8cafe7785fa67f7c987c3436457c27b03a36cd522dd8dc52ebb9
|
File details
Details for the file luatables-1.0.1.1-py3-none-any.whl.
File metadata
- Download URL: luatables-1.0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93a228c2212d29c611905beb5a2ae907b1b5fa8ec52ee9a848d922d7eff61ac8
|
|
| MD5 |
870708147d1dddfe80602af80b05bbe3
|
|
| BLAKE2b-256 |
4fc78095e42023930f1ca0003a7b0457793fdd32249a6447f2ddc6d83642c774
|