Skip to main content

Python SDK for Firebolt

Project description

firebolt-sdk

Nightly code check Unit tests Code quality checks Firebolt Security Scan Integration tests Coverage

Installation

  • Requires Python >=3.8
  • pip install "firebolt-sdk>=1.0.0a1"

Documentation

For reference and tutorials, see the Firebolt Python SDK reference.

Connection parameters

These parameters are used to connect to a Firebolt database:

  • account_name - name of firebolt account
  • client_id - credentials client id
  • cliend_secret - credentials client secret
  • database [Optional] - name of the database to connect to
  • engine_name [Optional] - name of the engine to connect to

Examples

See PEP-249 for the DB API reference and specifications. An example jupyter notebook is included to illustrate the use of the Firebolt API.

Special considerations

Cursor objects should not be shared between threads

Cursor is not thread-safe and should not be shared across threads. In a multi-threaded environment you can share a Connection, but each thread would need to keep its own Cursor. This corresponds to a thread safety 2 in the DBApi specification.

Some keywords are not allowed as SET parameters

cursor.execute("SET parameter=value")

This will error out if you try to set account_id, output_format, database, engine. These are special keywords that should not be set directly. To switch between databases and engines use USE DATABASE/ENGINE.

Optional features

Faster datetime with ciso8601

By default, firebolt-sdk uses datetime module to parse date and datetime values, which might be slow for a large amount of operations. In order to speed up datetime operations, it's possible to use ciso8601 package. In order to install firebolt-sdk with ciso8601 support, run pip install "firebolt-sdk[ciso8601]"

Contributing

See: CONTRIBUTING.MD

License

The Firebolt DB API is licensed under the Apache License Version 2.0 software license.

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

firebolt_sdk-1.18.6.tar.gz (90.4 kB view details)

Uploaded Source

Built Distribution

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

firebolt_sdk-1.18.6-py3-none-any.whl (120.8 kB view details)

Uploaded Python 3

File details

Details for the file firebolt_sdk-1.18.6.tar.gz.

File metadata

  • Download URL: firebolt_sdk-1.18.6.tar.gz
  • Upload date:
  • Size: 90.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for firebolt_sdk-1.18.6.tar.gz
Algorithm Hash digest
SHA256 48b9a66f06736439a0a81afb04b7e3777742693ba54aef969315e48f6d9b4bb5
MD5 1f3c3c2d3db8569917919a7459a7ba84
BLAKE2b-256 6e7a64c06cc7cbac5974378c06bc000a84b482f88847f20aea7524b2cee8a3e2

See more details on using hashes here.

File details

Details for the file firebolt_sdk-1.18.6-py3-none-any.whl.

File metadata

  • Download URL: firebolt_sdk-1.18.6-py3-none-any.whl
  • Upload date:
  • Size: 120.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for firebolt_sdk-1.18.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a67d6a2ff2f35f07b1eb085905a095872ff08d8ba60e6b1a3144e0f4dd041fe7
MD5 2ee9443120c21be9a8de8b25eba375d4
BLAKE2b-256 b30be170b8d03c3bb3b4c4263e1d4babcb591284725b27860f184cf7d249d9c4

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