Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

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

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page