semvec/pypi-packages huggingface dataset:
liteflow.providers.mongo 0.3.1
MongoDB persistence provider for LiteFlow
License: MIT
Requires Python: >=3.6

# MongoDB Persistence provider for LiteFlow

Provides support to persist workflows running on LiteFlow to a MongoDB database.

## Installing

Install the "liteflow.providers.mongo" package

```
> pip install liteflow.providers.mongo
```

## Usage

Pass an instance of MongoPersistenceProvider to `configure_workflow_host` when configuring your workflow node host.

```python
from liteflow.core import *
from liteflow.providers.mongo import MongoPersistenceProvider

mongodb = MongoPersistenceProvider('mongodb://localhost:27017/', 'liteflow')

host = configure_workflow_host(persistence_service=mongodb)
host.start()

```
liteflow.providers.azure 0.3.1
Azure queue and distributed lock providers for LiteFlow
License: MIT
Requires Python: >=3.6

# 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()

```