Skip to content

cootshk/Python-Tables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"))