Skip to main content

python client for clapdb

Project description

clapdb-python-client

A basic database driver for connection ClapDB to Python, Superset

  • SQLAlchemy 1.4 (limited feature set)
  • Superset Connector

Installation

pip install clapdb

clapdb client need Python 3.11 or higher

Superset Connectivity

for ClapDB instance

clapdb+http://{user}.{tenant}:{password}@{host}:{port}/{database}?{timeout=30}

The timeout is a floating point number in seconds.

for ClapDB lambda

clapdb+https://{user}.{tenant}:{password}@{data_api_url_endpoint}/{database}?stage=production&{timeout=30}

The parameters can be found from ClapDB credentials [https://clapdb.com/docs/#configure-your-aws-credentials]

SQLAlchemy

ClapDB incorporates a minimal SQLAlchemy implementation (without any ORM features) for compatibility with Superset. It has only been tested against SQLAlchemy versions 1.4.x, and is unlikely to work with more complex SQLAlchemy applications.

The interval type in ClapDB is implemented based on PostgreSQL, which calculation rule is special. Converting it to Python timedelta may result in information loss. Therefore, we return interval as string type.

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

clapdb-1.0.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clapdb-1.0.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file clapdb-1.0.0.tar.gz.

File metadata

  • Download URL: clapdb-1.0.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for clapdb-1.0.0.tar.gz
Algorithm Hash digest
SHA256 23f17759ebaa060bd8db4c24458261ec63aa5cb2a58ca6643dc240c42d1a6b95
MD5 684426f7309035822c0529da367fadfb
BLAKE2b-256 5613ffad0e77fdbfd78ee90aac3ec75f784ceaf1d02ec5ba1a2d799e5ded0eb0

See more details on using hashes here.

File details

Details for the file clapdb-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: clapdb-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for clapdb-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 150184b271c44b675462919659cf083c5d06e2adf37fe604780d2e9a4625a202
MD5 bb5fd79264cb14d55e0fbd460e41d551
BLAKE2b-256 bc3ae56ac5f99f243fdd1d2f187c470700105eac786b64afda637a439edb1f8f

See more details on using hashes here.

Supported by

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