Skip to main content

Prefect tasks and subflows for interacting with Azure

Project description

prefect-azure

Welcome!

prefect-azure is a collection of prebuilt Prefect tasks that can be used to quickly construct Prefect flows.

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-azure with pip

pip install prefect-azure

To use Blob Storage:

pip install "prefect-azure[blob_storage]"

To use Cosmos DB:

pip install "prefect-azure[cosmos_db]"

To use ML Datastore:

pip install "prefect-azure[ml_datastore]"

Write and run a flow

from prefect import flow

from prefect_azure import AzureBlobStorageCredentials
from prefect_azure.blob_storage import blob_storage_download

@flow
def example_blob_storage_download_flow():
    connection_string = "connection_string"
    blob_storage_credentials = AzureBlobStorageCredentials(
        connection_string=connection_string,
    )
    data = blob_storage_download(
        blob="prefect.txt",
        container="prefect",
        azure_credentials=blob_storage_credentials,
    )
    return data

example_blob_storage_download_flow()

Resources

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

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

Development

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

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

cd prefect-azure/

pip install -e ".[dev]"

# Install linting pre-commit hooks
pre-commit install

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

prefect_azure_dyvenia-0.1.0.tar.gz (41.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prefect_azure_dyvenia-0.1.0-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file prefect_azure_dyvenia-0.1.0.tar.gz.

File metadata

  • Download URL: prefect_azure_dyvenia-0.1.0.tar.gz
  • Upload date:
  • Size: 41.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for prefect_azure_dyvenia-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c29a2e472e016b414372658acdc589a9e6b4a125540a8dd69f0b22dc477b1a70
MD5 4c17c2e90247f63c2516825c7b9acfe3
BLAKE2b-256 d90e3cb1aaef01ec4127701e25a7e77ad8dae3bf3dbcce07203176275a74f498

See more details on using hashes here.

File details

Details for the file prefect_azure_dyvenia-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for prefect_azure_dyvenia-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b0c0a9f6636e5fdfff7d5cd04e8e71191c7e455fa6db44b83b582fe492a7b0a7
MD5 d27f5bcdedfd5e29eb75ca211983032c
BLAKE2b-256 d34f653cbea6d21d0a94942aed7017dc91ef4a0e35bd9119480b80ef02d59cd0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page