Skip to main content

prefect-firebolt

PyPI

Welcome!

prefect-firebolt is a collection of Prefect integrations for working with Firebolt data warehouses.

Firebolt is a Cloud Data Warehousing solution that helps its users streamline their Data Analytics and access to insights. For more information about getting started with Firebolt, read Firebolt's getting started guide.

Getting Started

Python setup

Requires an installation of Python 3.7+.

We recommend using a Python virtual environment manager such as pipenv, conda or virtualenv.

These tasks are designed to work with Prefect 2.0. For more information about how to use Prefect, please refer to the Prefect documentation.

Installation

Install prefect-firebolt with pip:

pip install prefect-firebolt

Then, register to view the Firebolt blocks on Prefect Cloud:

prefect block register -m prefect_firebolt

Note, to use the load method on Blocks, you must already have a block document saved through code or saved through the UI.

Write and run a flow

Execute a query against a Firebolt database:

from prefect import flow

from prefect_firebolt import FireboltCredentials, FireboltDatabase, query_firebolt


@flow
def run_firebolt_query():
    firebolt_database_block = FireboltDatabase(
        database="travel",
        credentials=FireboltCredentials(
            username="arthur.dent@hitchhikers.com", password="dont42panic"
        ),
    )

    results = query_firebolt(
        database=firebolt_database_block,
        query="SELECT * FROM ex_intergalactic_trips LIMIT 100",
    )

    return results


run_firebolt_query()        

Resources

If you encounter any bugs while using prefect-firebolt, feel free to open an issue in the prefect-firebolt repository.

If you have any questions or issues while using prefect-firebolt, you can find help in either the Prefect Discourse forum or the Prefect Slack community.

Feel free to ⭐️ or watch prefect-firebolt for updates too!

Development

If you'd like to install a version of prefect-firebolt for development, clone the repository and perform an editable install with pip:

git clone https://github.com/PrefectHQ/prefect-firebolt.git

cd prefect-firebolt/

pip install -e ".[dev]"

# Install linting pre-commit hooks
pre-commit install

Metadata

Release files for prefect-firebolt 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for prefect-firebolt 0.2.2
File Size Uploaded
prefect-firebolt-0.2.2.tar.gz 30.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for prefect-firebolt 0.2.2
File Interpreter ABI Platform
prefect_firebolt-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 41.6 kB

Release files / prefect-firebolt-0.2.2.tar.gz

Download URL prefect-firebolt-0.2.2.tar.gz
Size 30.0 kB
Tags Source
SHA-256 checksum
How to use checksums
36e0967058745aa15fdf808e8d6171710670757a6b7e81c86c2ed6898e829f5e
BLAKE2b-256 checksum
How to use checksums
157b3efe72c1f4df1e34fd41ada0c141ca4369d4a6b7501208314da813f18356
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / prefect_firebolt-0.2.2-py3-none-any.whl

Download URL prefect_firebolt-0.2.2-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
413ca260b7e6038a5b870532b42c874146fe6c14c683b066cda2ae87fe6ced39
BLAKE2b-256 checksum
How to use checksums
3b328b8c09e3793893ee1afc32da1560e6172b6708b3573103e2a240cbf6f30a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page