Python SDK for Firebolt
Project description
firebolt-sdk
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file firebolt_sdk-1.5.1.tar.gz
.
File metadata
- Download URL: firebolt_sdk-1.5.1.tar.gz
- Upload date:
- Size: 62.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49ed2dda572df66f13d3897f3a3cd120a68396d782da718a3075e32756d18835 |
|
MD5 | c26936ae2bf5fbe581d11bb9206bef8e |
|
BLAKE2b-256 | 73bb368df18209bf7ab7547974b1a4fa505c368294ae107cef0a0c46b21a408b |
File details
Details for the file firebolt_sdk-1.5.1-py3-none-any.whl
.
File metadata
- Download URL: firebolt_sdk-1.5.1-py3-none-any.whl
- Upload date:
- Size: 88.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b11fa4f9dfaa6578e58878a7bc900ebdf4419c434ee059943676e04ab5135a5 |
|
MD5 | f0f904508e52d4018afdb0b4c90f1a38 |
|
BLAKE2b-256 | 2c303b5441aededb28ea766501449f83f06b2b3d09a56fe9f6fb57e10239aa10 |