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.

Source Distribution

sqlian-0.1.0.dev0.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

sqlian-0.1.0.dev0-py2.py3-none-any.whl (24.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file sqlian-0.1.0.dev0.tar.gz.

File metadata

  • Download URL: sqlian-0.1.0.dev0.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sqlian-0.1.0.dev0.tar.gz
Algorithm Hash digest
SHA256 b5fa0931c779c0d2be3d477e22f3c7c0e2ef9bddd10b2a0eec5194c64976183e
MD5 21b626499c2d5e83abfddc8dc098ac5a
BLAKE2b-256 a8f19c0e79c6ab73c7b6e7fcdd45113ae1c8b83d345e048ab18975a1e395ff34

See more details on using hashes here.

File details

Details for the file sqlian-0.1.0.dev0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for sqlian-0.1.0.dev0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 903d0667eece2ab52a4a662856b504bfd6cd95160f87534d4eb332b2ff751817
MD5 e1dfb17f7dc4cd750eb65e13a56cab32
BLAKE2b-256 5a001c4e58e24a5fea440220f0e018d1cbb6679a3c4f981004cdacbcd783f7b2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page