semvec/pypi-packages huggingface dataset:
talksql 1.2
A utility package for sql work
License: MIT License

# talksql

## Examples

```python 
ipcfg = {
    'user': '',
    'password': '',
    'host': '',
	'db':'' }

cfg = { 'socket':"/tmp/mysql.sock",
    'user': '',
    'password': '',
    'host': '',
	'db':'' }

from talksql import *
con = ipconnect(ipcfg) #or
con = sockconnect(cfg)
#con is mysql connector connection object
```

## Get a resultset
```python 
from talksql import *
sql="select * from table where .." 
rs,c = xecrs(con,sql)
#rs is array for rows and columns of resultset
#c is cursor mysql connection 
# - go to mysql connector if you have to use the cursor to iterate
#this works unless you need to deal with large datasets
```

## Sub data and get a resultset
```python 
from talksql import *
sql="select * from table where column=%s"
data=(value,)
#data is %s sub-ed  
rs,c = xecrs(con,sql,data)
```

```python 
from talksql import *
sql="delete from table"
#data is %s sub-ed if given like resultset  
c = xec(con,sql)
#c is the cursor
```

## Few more 
sqlaofa, sqlaofd are experimental and only works as string data
talkweb 1.3
A html to object framework
License: MIT License

## Talkweb

Assemble pages.

Talkweb makes a Object tree of html and allows addition, insertion and deletion to the tree like DOM.  

```python
from talkweb import *
roots = h2o(htmlfile)
#assuming htmlfile has &lt;!Doctype html&gt;&lt;html&gt;&lt;div id="x"&gt;&lt;/div&gt;&lt;/html&gt;

#cell is a node
roots[1].findcellbyid("x") 
widget = h2o(widgethtmlfile)
roots[1].addcell(widget)

html=''
for root in roots:
    html += root.html()
print(html)
```

Like it, then you will like to develop with talkweb. If not, leave you to templates and it's rules.