Skip to main content

Open source SQL Query Assistant for Databases/Warehouses

Project description

PyPI version Test Status DockerPulls GitHub contributors Code coverage Status License

Compose

Query Editor component

Compose is the open source module powering the Hue SQL Editor. It comes as a Web service API for querying any Databases & Data Warehouses or building your own Cloud SQL Editor.

Start

Hello World query

curl -u hue:hue -X POST http://localhost:8005/editor/v1/query/sqlite --data 'statement=SELECT 100, 200'

Docker

docker run -it -p 8005:8005 gethue/compose:latest

Pypi

pip install gethue

compose-admin migrate
compose-admin createsuperuser
compose-admin start

compose auth
compose query
compose storage list s3a://demo-gethue

Dev

One time

git clone https://github.com/gethue/compose.git
cd compose
./install.sh  # If you want a Python virtual-env
pre-commit install

Start API

source python_env/bin/activate
python compose/manage.py runserver 0.0.0.0:8005

Config

compose/conf/local_settings.py

Checks

pre-commit run --all-files
python compose/manage.py test

Hue

npm run webpack-npm

API

Live

Query

curl -u hue:hue -X POST http://localhost:8005/api/editor/execute/sqlite --data 'statement=SELECT 100, 200'

curl -u hue:hue -X POST http://localhost:8005/api/editor/execute/sqlite --data 'statement=SELECT 100, 200'
curl -u hue:hue -X POST http://localhost:8005/api/editor/check_status --data 'qid=abc'
curl -u hue:hue -X POST http://localhost:8005/api/editor/fetch_result_data --data 'qid=abc'

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

gethue-0.26.tar.gz (25.9 kB view details)

Uploaded Source

Built Distribution

gethue-0.26-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file gethue-0.26.tar.gz.

File metadata

  • Download URL: gethue-0.26.tar.gz
  • Upload date:
  • Size: 25.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.10

File hashes

Hashes for gethue-0.26.tar.gz
Algorithm Hash digest
SHA256 81b0868a404cb21d4c6a337474c75a46e5ec664e1ed65fcdafa13e9451e2e6e6
MD5 2e221eeac3cd5a42cc6df553c9f4d054
BLAKE2b-256 8ebc40a99c6f0842636971323a0b65831d292c704c45155c0996221c182227bc

See more details on using hashes here.

File details

Details for the file gethue-0.26-py3-none-any.whl.

File metadata

  • Download URL: gethue-0.26-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.10

File hashes

Hashes for gethue-0.26-py3-none-any.whl
Algorithm Hash digest
SHA256 c3d1d9c5ab40c39d5e2184cd12e2070fc55ee9caa2d5c111014089542869ab4f
MD5 a30b0dc1c7e8d56236497851c4bda594
BLAKE2b-256 04ddbb18fe7f1b1f64e7ff650b3f6c2db5a9502363fd7d3524aca2a874bda19c

See more details on using hashes here.

Supported by

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