Skip to main content

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'

Release files for gethue 0.26

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gethue 0.26
File Size Uploaded
gethue-0.26.tar.gz 25.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gethue 0.26
File Interpreter ABI Platform
gethue-0.26-py3-none-any.whl Python 3 none any Details

Total release size: 38.8 kB

Release files / gethue-0.26.tar.gz

Download URL gethue-0.26.tar.gz
Size 25.9 kB
Tags Source
SHA-256 checksum
How to use checksums
81b0868a404cb21d4c6a337474c75a46e5ec664e1ed65fcdafa13e9451e2e6e6
BLAKE2b-256 checksum
How to use checksums
8ebc40a99c6f0842636971323a0b65831d292c704c45155c0996221c182227bc
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / gethue-0.26-py3-none-any.whl

Download URL gethue-0.26-py3-none-any.whl
Size 12.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c3d1d9c5ab40c39d5e2184cd12e2070fc55ee9caa2d5c111014089542869ab4f
BLAKE2b-256 checksum
How to use checksums
04ddbb18fe7f1b1f64e7ff650b3f6c2db5a9502363fd7d3524aca2a874bda19c
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.26 This release

2 release files

0.22

2 release files

0.21

2 release files

0.20

2 release files

0.19

2 release files

0.13

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page