prefect-firebolt


Nameprefect-firebolt JSON
Version 0.2.2 PyPI version JSON
download
home_pagehttps://github.com/PrefectHQ/prefect-firebolt
SummaryPrefect integrations for working with Firebolt data warehouses.
upload_time2023-11-29 19:53:34
maintainer
docs_urlNone
authorPrefect Technologies, Inc.
requires_python>=3.7
licenseApache License 2.0
keywords prefect
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # prefect-firebolt

<p align="center">
    <a href="https://pypi.python.org/pypi/prefect-firebolt/" alt="PyPI version">
        <img alt="PyPI" src="https://img.shields.io/pypi/v/prefect-firebolt?color=0052FF&labelColor=090422"></a>
    <a href="https://github.com/PrefectHQ/prefect-firebolt/" alt="Stars">
        <img src="https://img.shields.io/github/stars/PrefectHQ/prefect-firebolt?color=0052FF&labelColor=090422" /></a>
    <a href="https://pepy.tech/badge/prefect-firebolt/" alt="Downloads">
        <img src="https://img.shields.io/pypi/dm/prefect-firebolt?color=0052FF&labelColor=090422" /></a>
    <a href="https://github.com/PrefectHQ/prefect-firebolt/pulse" alt="Activity">
        <img src="https://img.shields.io/github/commit-activity/m/PrefectHQ/prefect-firebolt?color=0052FF&labelColor=090422" /></a>
    <br>
    <a href="https://prefect-community.slack.com" alt="Slack">
        <img src="https://img.shields.io/badge/slack-join_community-red.svg?color=0052FF&labelColor=090422&logo=slack" /></a>
    <a href="https://discourse.prefect.io/" alt="Discourse">
        <img src="https://img.shields.io/badge/discourse-browse_forum-red.svg?color=0052FF&labelColor=090422&logo=discourse" /></a>
</p>

## Welcome!

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

[Firebolt](https://www.firebolt.io/) 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](https://docs.firebolt.io/getting-started.html).

## 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](https://orion-docs.prefect.io/).

### Installation

Install `prefect-firebolt` with `pip`:

```bash
pip install prefect-firebolt
```

Then, register to [view the Firebolt blocks](https://orion-docs.prefect.io/ui/blocks/) on Prefect Cloud:

```bash
prefect block register -m prefect_firebolt
```

Note, to use the `load` method on Blocks, you must already have a block document [saved through code](https://orion-docs.prefect.io/concepts/blocks/#saving-blocks) or [saved through the UI](https://orion-docs.prefect.io/ui/blocks/).

### Write and run a flow

Execute a query against a Firebolt database:
```python
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](https://github.com/PrefectHQ/prefect-firebolt) repository.

If you have any questions or issues while using `prefect-firebolt`, you can find help in either the [Prefect Discourse forum](https://discourse.prefect.io/) or the [Prefect Slack community](https://prefect.io/slack).

Feel free to ⭐️ or watch [`prefect-firebolt`](https://github.com/PrefectHQ/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`:

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

cd prefect-firebolt/

pip install -e ".[dev]"

# Install linting pre-commit hooks
pre-commit install
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/PrefectHQ/prefect-firebolt",
    "name": "prefect-firebolt",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "prefect",
    "author": "Prefect Technologies, Inc.",
    "author_email": "help@prefect.io",
    "download_url": "https://files.pythonhosted.org/packages/15/7b/3efe72c1f4df1e34fd41ada0c141ca4369d4a6b7501208314da813f18356/prefect-firebolt-0.2.2.tar.gz",
    "platform": null,
    "description": "# prefect-firebolt\n\n<p align=\"center\">\n    <a href=\"https://pypi.python.org/pypi/prefect-firebolt/\" alt=\"PyPI version\">\n        <img alt=\"PyPI\" src=\"https://img.shields.io/pypi/v/prefect-firebolt?color=0052FF&labelColor=090422\"></a>\n    <a href=\"https://github.com/PrefectHQ/prefect-firebolt/\" alt=\"Stars\">\n        <img src=\"https://img.shields.io/github/stars/PrefectHQ/prefect-firebolt?color=0052FF&labelColor=090422\" /></a>\n    <a href=\"https://pepy.tech/badge/prefect-firebolt/\" alt=\"Downloads\">\n        <img src=\"https://img.shields.io/pypi/dm/prefect-firebolt?color=0052FF&labelColor=090422\" /></a>\n    <a href=\"https://github.com/PrefectHQ/prefect-firebolt/pulse\" alt=\"Activity\">\n        <img src=\"https://img.shields.io/github/commit-activity/m/PrefectHQ/prefect-firebolt?color=0052FF&labelColor=090422\" /></a>\n    <br>\n    <a href=\"https://prefect-community.slack.com\" alt=\"Slack\">\n        <img src=\"https://img.shields.io/badge/slack-join_community-red.svg?color=0052FF&labelColor=090422&logo=slack\" /></a>\n    <a href=\"https://discourse.prefect.io/\" alt=\"Discourse\">\n        <img src=\"https://img.shields.io/badge/discourse-browse_forum-red.svg?color=0052FF&labelColor=090422&logo=discourse\" /></a>\n</p>\n\n## Welcome!\n\n`prefect-firebolt` is a collection of Prefect integrations for working with Firebolt data warehouses.\n\n[Firebolt](https://www.firebolt.io/) 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](https://docs.firebolt.io/getting-started.html).\n\n## Getting Started\n\n### Python setup\n\nRequires an installation of Python 3.7+.\n\nWe recommend using a Python virtual environment manager such as pipenv, conda or virtualenv.\n\nThese tasks are designed to work with Prefect 2.0. For more information about how to use Prefect, please refer to the [Prefect documentation](https://orion-docs.prefect.io/).\n\n### Installation\n\nInstall `prefect-firebolt` with `pip`:\n\n```bash\npip install prefect-firebolt\n```\n\nThen, register to [view the Firebolt blocks](https://orion-docs.prefect.io/ui/blocks/) on Prefect Cloud:\n\n```bash\nprefect block register -m prefect_firebolt\n```\n\nNote, to use the `load` method on Blocks, you must already have a block document [saved through code](https://orion-docs.prefect.io/concepts/blocks/#saving-blocks) or [saved through the UI](https://orion-docs.prefect.io/ui/blocks/).\n\n### Write and run a flow\n\nExecute a query against a Firebolt database:\n```python\nfrom prefect import flow\n\nfrom prefect_firebolt import FireboltCredentials, FireboltDatabase, query_firebolt\n\n\n@flow\ndef run_firebolt_query():\n    firebolt_database_block = FireboltDatabase(\n        database=\"travel\",\n        credentials=FireboltCredentials(\n            username=\"arthur.dent@hitchhikers.com\", password=\"dont42panic\"\n        ),\n    )\n\n    results = query_firebolt(\n        database=firebolt_database_block,\n        query=\"SELECT * FROM ex_intergalactic_trips LIMIT 100\",\n    )\n\n    return results\n\n\nrun_firebolt_query()        \n```\n\n## Resources\n\nIf you encounter any bugs while using `prefect-firebolt`, feel free to open an issue in the [prefect-firebolt](https://github.com/PrefectHQ/prefect-firebolt) repository.\n\nIf you have any questions or issues while using `prefect-firebolt`, you can find help in either the [Prefect Discourse forum](https://discourse.prefect.io/) or the [Prefect Slack community](https://prefect.io/slack).\n\nFeel free to \u2b50\ufe0f or watch [`prefect-firebolt`](https://github.com/PrefectHQ/prefect-firebolt) for updates too!\n\n## Development\n\nIf you'd like to install a version of `prefect-firebolt` for development, clone the repository and perform an editable install with `pip`:\n\n```bash\ngit clone https://github.com/PrefectHQ/prefect-firebolt.git\n\ncd prefect-firebolt/\n\npip install -e \".[dev]\"\n\n# Install linting pre-commit hooks\npre-commit install\n```\n",
    "bugtrack_url": null,
    "license": "Apache License 2.0",
    "summary": "Prefect integrations for working with Firebolt data warehouses.",
    "version": "0.2.2",
    "project_urls": {
        "Homepage": "https://github.com/PrefectHQ/prefect-firebolt"
    },
    "split_keywords": [
        "prefect"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3b328b8c09e3793893ee1afc32da1560e6172b6708b3573103e2a240cbf6f30a",
                "md5": "6f60f258f40211d7210d9a8808edb42b",
                "sha256": "413ca260b7e6038a5b870532b42c874146fe6c14c683b066cda2ae87fe6ced39"
            },
            "downloads": -1,
            "filename": "prefect_firebolt-0.2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6f60f258f40211d7210d9a8808edb42b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 11605,
            "upload_time": "2023-11-29T19:53:33",
            "upload_time_iso_8601": "2023-11-29T19:53:33.888321Z",
            "url": "https://files.pythonhosted.org/packages/3b/32/8b8c09e3793893ee1afc32da1560e6172b6708b3573103e2a240cbf6f30a/prefect_firebolt-0.2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "157b3efe72c1f4df1e34fd41ada0c141ca4369d4a6b7501208314da813f18356",
                "md5": "85d53c02076a4e30a006dd9a7d0c87c3",
                "sha256": "36e0967058745aa15fdf808e8d6171710670757a6b7e81c86c2ed6898e829f5e"
            },
            "downloads": -1,
            "filename": "prefect-firebolt-0.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "85d53c02076a4e30a006dd9a7d0c87c3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 29992,
            "upload_time": "2023-11-29T19:53:34",
            "upload_time_iso_8601": "2023-11-29T19:53:34.927576Z",
            "url": "https://files.pythonhosted.org/packages/15/7b/3efe72c1f4df1e34fd41ada0c141ca4369d4a6b7501208314da813f18356/prefect-firebolt-0.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-29 19:53:34",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "PrefectHQ",
    "github_project": "prefect-firebolt",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "prefect-firebolt"
}
        
Elapsed time: 0.14118s