sqlian

A good SQLian like a good shepherd.


Keywords
SQL
License
ISC
Install
pip install sqlian==0.1.0.dev0

Documentation

SQLian

Project Build Status Documentation Status

A good SQLian like a good shepherd. I handle SQL strings so you don’t have to.

Sneak Peek

Connect to a database:

import sqlian
db = sqlian.connect('postgresql:://user:pa55@localhost/contactbook')

Perform a query:

rows = db.select(
    'name', 'occupation',
    from_='person',
    where={'main_language': 'Python'},
)

Access the data directly:

>>> rows[0]
<Record {"name": "Mosky", "occupation": "Pinkoi"}>

Or iterate over them:

for r in rows:
    print('{} works at {}'.format(r.name, r.occupation))

Want more? Read the documentation.