Python SDK for Firebolt
Project description
firebolt-sdk
Installation & Usage
- Requires Python
>=3.9
- Clone this repo
- From the cloned directory:
pip install .
- See examples.ipynb for usage
Configuration
To use the client, you generally will want to set the following environment variables:
FIREBOLT_USER='email@domain.com'
FIREBOLT_PASSWORD='*****'
FIREBOLT_SERVER='api.app.firebolt.io'
FIREBOLT_DEFAULT_REGION='us-east-1'
- You can store these in a
.env
file - environment variables on your system always take precedence over those in
.env
Once the environment variables are defined (either on your system or in .env
),
you can initialize a ResourceManager with:
from firebolt.service.manager import ResourceManager
with ResourceManager() as rm:
print(rm.regions.default_region) # see your default region
Or you can configure settings manually:
from firebolt.service.manager import ResourceManager
from firebolt.common.settings import Settings
from pydantic import SecretStr
with ResourceManager(settings=Settings(
server="api.app.firebolt.io",
user="email@domain.com",
password=SecretStr("*****"),
default_region="us-east-1",
)) as rm:
print(rm.client.account_id) # see your account id
Under the hood, configuration works via Pydantic, see here.
Contributing
See: CONTRIBUTING.MD
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
firebolt_sdk-0.0.1.tar.gz
(24.1 kB
view hashes)
Built Distribution
Close
Hashes for firebolt_sdk-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66accc55980468a134e88f3efce59d2fad4055be671a48bb5849da5a95eed095 |
|
MD5 | 6137ae58e31e73229f4395a3d60d7bfc |
|
BLAKE2b-256 | e505f2dc4a1ebb4ccc154442060808e2dac2d42b652246d9a17907ed9404e7f5 |