Skip to main content

Pythonic HTTP client for Cube.dev REST API

Project description

cube-http-client

Pythonic HTTP client for Cube.dev REST API.

Installation

pip install cube-http-client

Quickstart

import cube_http

cube = cube_http.Client({
  "url": "...",
  "token": "...",
})

# get metadata
meta = cube.v1.meta()

# load query results
results = cube.v1.load({
  "measures": ["..."],
  "dimensions": ["..."],
})

Support Coverage

Endpoint Description Supported?
/v1/load Get the data for a query.
/v1/sql Get the SQL Code generated by Cube to be executed in the database.
/v1/meta Get meta-information for cubes and views defined in the data model. Information about cubes and views with public: false will not be returned.
/v1/run-scheduled-refresh Trigger a scheduled refresh run to refresh pre-aggregations.
/v1/pre-aggregations/jobs Trigger pre-aggregation build jobs or retrieve statuses of such jobs.
/readyz Returns the ready state of the deployment.
/livez Returns the liveness state of the deployment. This is confirmed by testing any existing connections to dataSource. If no connections exist, it will report as successful.

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

cube_http_client-0.2.7.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

cube_http_client-0.2.7-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file cube_http_client-0.2.7.tar.gz.

File metadata

  • Download URL: cube_http_client-0.2.7.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.5.0

File hashes

Hashes for cube_http_client-0.2.7.tar.gz
Algorithm Hash digest
SHA256 8b3d327a7c1c54e1ef6b5667de8092f51757c9b043a21414129e09e31ddcb2b6
MD5 97375d402056008762b6f22847c0b565
BLAKE2b-256 9271eaf314243559c02db7a2db28d6735ecade3f07e92daa43728ad3f05075d1

See more details on using hashes here.

File details

Details for the file cube_http_client-0.2.7-py3-none-any.whl.

File metadata

File hashes

Hashes for cube_http_client-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 31f4adaa9fc6aa9f82db9ca3241c35c6a886d62bd6be93b5f4fa7e970f5bfcbe
MD5 14b7a5fa0773552e6ca85eb8bd442674
BLAKE2b-256 4ae4bef606f79beb9cc501ce2694987c8b99b1d739057e3bb73c0ff78390617f

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