Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 382 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 382 Bytes

Python-Tables

Implementing tables from Lua into Python 3.12

Usage

pip install -U python-tables
from tables import Table

tbl = Table()
print(tbl) # <>
tbl.append(1)
tbl["foo"] = "bar"
print(tbl) # <1, foo: 'bar'>

print(repr(tbl)) # Table([1]; {"foo": "bar"})
tbl += [2,3,4]
print(tbl) # <1, 2, 3, 4, foo: 'bar'>
print(tbl == Table(1,2,3,4,foo="bar"))