Metadata-Version: 2.1
Name: liteflow.providers.azure
Version: 0.3.1
Summary: Azure queue and distributed lock providers for LiteFlow
Home-page: https://github.com/danielgerlag/liteflow
Author: Daniel Gerlag
Author-email: daniel@gerlag.ca
License: MIT
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.6
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: liteflow.core (>=0.3)
Requires-Dist: azure-storage-blob (>=1.1.0)
Requires-Dist: azure-storage-queue (>=1.1.0)
Requires-Dist: python-interface (>=1.4.0)

# Azure synchronization providers for LiteFlow

Provides support to use Azure storage as a shared work queue and distributed lock service for LiteFlow 

## Installing

Install the "liteflow.providers.azure" package

```
> pip install liteflow.providers.azure
```

## Usage

Pass an instances of AzureQueueProvider and AzureLockProvider to `configure_workflow_host` when configuring your workflow node host.

```python
from azure.storage.common import CloudStorageAccount
from liteflow.core import *
from liteflow.providers.azure import AzureQueueProvider, AzureLockProvider


azure_storage_account = CloudStorageAccount(account_name='my account', account_key='my key')
azure_queue_service = AzureQueueProvider(azure_storage_account)
azure_lock_service = AzureLockProvider(azure_storage_account)

host = configure_workflow_host(queue_service=azure_queue_service,
                               lock_service=azure_lock_service)
host.start()

```


