Compose
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'
Metadata
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)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| gethue-0.26.tar.gz | 25.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|
Security for gethue 0.26
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.