Quest
===========
---------------------------------
Query Engine for Selecting Tables
---------------------------------
Installation
------------
Easy enough::
easy_install quest
or::
pip install quest
Intro
-----
Quest implements a simple DSL (domain-specific language) on top of MySQL.
It can connect to any MySQL database. It can be used at the command line,
which provides a simple REPL, or through an HTML GUI.
For a guide, type "help" at the prompt or in the GUI.
Configuration
-------------
Quest must have access to a username and password of a MySQL account in
order to connect to the MySQL database. You should set these in your script
by doing (e.g.)::
import quest.config
quest.config.db_host = localhost # default
quest.config.db_user = root # default
quest.config.db_password = puppies
# Quest only connects to 1 table
quest.config.table_name = employees
quest.config.db_name = company
To create a hierarchy for ROLLUP (which goes up the hierarchy) and DRILLDOWN
(which goes down the hierarchy), use quest.config.create_hierarchy::
# Parents come before children.
quest.config.create_hierarchy(['ceo', 'manager', 'employee'])
quest.config.create_hierarchy(['python', 'cpp', 'c'])
Usage
-----
Typical usage of the command-line REPL::
#!/usr/bin/env python
import quest
import quest.config
from quest.prompt import Prompt
quest.config.db_host = localhost # default
quest.config.db_user = root # default
quest.config.db_password = puppies
# Quest only connects to 1 table
quest.config.table_name = employees
quest.config.db_name = company
p = Prompt()
p.interact()
Typical usage of the HTML GUI::
#!/usr/bin/env python
import quest
import quest.config
from quest.web import quest_app
quest.config.db_host = localhost # default
quest.config.db_user = root # default
quest.config.db_password = puppies
# Quest only connects to 1 table
quest.config.table_name = employees
quest.config.db_name = company
quest_app.run()
# Now navigate to http://localhost:8080
Metadata
Release files for Quest 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Quest-0.1.1.tar.gz | 19.5 kB | Without provenance | Details for Quest-0.1.1.tar.gz |
Release files / Quest-0.1.1.tar.gz
| Download URL | Quest-0.1.1.tar.gz |
|---|---|
| Size | 19.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f5a6998416629ff5fdc3cb24151b0035e401050c39e5a005ba20396fa9dc79f
|
|
BLAKE2b-256 checksum How to use checksums |
8ad802daba04cc65c486eda56b9fb16c6cf9c867df332c1cddda939d5b8370ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Quest 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.