Skip to main content

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


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)

Uploaded Source

Built Distribution

firebolt_sdk-0.0.1-py3-none-any.whl (32.3 kB view hashes)

Uploaded Python 3

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