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
Write and run a flow
from prefect import flow
from prefect_azure import BlobStorageAzureCredentials
from prefect_azure.blob_storage import blob_storage_download
@flow
def example_blob_storage_download_flow():
connection_string = "connection_string"
blob_storage_credentials = BlobStorageAzureCredentials(
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
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
Built Distribution
Hashes for prefect_azure-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6598d0df63cfc115f0eaf2473100822d74f0c969ada1990ab7a3fffa952582ba |
|
MD5 | 93eaa4cc6f74d2354abc4dacd5dd4111 |
|
BLAKE2b-256 | d4cf1cec66d84dbc148a3f7171c49f6627a5f568b5b228392862e182707d4ac6 |