Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Quick interactive exploration of SQL databases.

Project description

query is a simple module for quickly, interactively exploring a SQL database. Together with IPython, it supports quick tab-completion of table and column names, convenience methods for quickly looking at data (e.g., .head(), .tail()), and the ability to get a rich interactive database connection up in only 2 lines by setting a few required environmental variables.

Demo in 2 lines

Explore the included demo database:

from query import QueryDb
db = QueryDb(demo=True)

Real-world use case in 2 lines

Or set a few environmental variables (QUERY_DB_DRIVER, QUERY_DB_HOST, QUERY_DB_PORT, QUERY_DB_NAME, and QUERY_DB_PASS) and get started just as quickly:

from query import QueryDB  # capital 'B' is OK too :)
db = QueryDB()

Interactive example

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 query, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size query-0.1.4.tar.gz (387.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page