Skip to main content

A good SQLian like a good shepherd.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sqlian, version 0.1.0.dev0
Filename, size File type Python version Upload date Hashes
Filename, size sqlian-0.1.0.dev0-py2.py3-none-any.whl (24.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size sqlian-0.1.0.dev0.tar.gz (16.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page