Skip to main content

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.

Please note, query requires pandas >= v0.14.

https://travis-ci.org/boydgreenfield/query.svg?branch=v0.1.3

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

https://github.com/boydgreenfield/query/raw/v0.1.2/docs/images/interactive_demo.gif?raw=True

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

query-0.1.3.tar.gz (387.2 kB view details)

Uploaded Source

File details

Details for the file query-0.1.3.tar.gz.

File metadata

  • Download URL: query-0.1.3.tar.gz
  • Upload date:
  • Size: 387.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for query-0.1.3.tar.gz
Algorithm Hash digest
SHA256 6d1016e49c0f98051802377b40334d3671c43dd3c62b19f795d979085e158745
MD5 754f1e13cfd56c1a2d824862aca0ce40
BLAKE2b-256 437e6b4b213cbbb6fd80badd621477f92518fb7cc716173a047f3ed4e2658a87

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