mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-07-09 01:55:55 +00:00

Improves the documentation code. Standardizes unstructured api key Replaces misc hard coded values Replaces `azureunstructured1` with a generic value
31 lines
825 B
Python
31 lines
825 B
Python
import os
|
|
|
|
from unstructured.ingest.connector.fsspec.azure import (
|
|
AzureAccessConfig,
|
|
SimpleAzureBlobStorageConfig,
|
|
)
|
|
from unstructured.ingest.interfaces import (
|
|
PartitionConfig,
|
|
ProcessorConfig,
|
|
ReadConfig,
|
|
)
|
|
from unstructured.ingest.runner import AzureRunner
|
|
|
|
if __name__ == "__main__":
|
|
runner = AzureRunner(
|
|
processor_config=ProcessorConfig(
|
|
verbose=True,
|
|
output_dir="azure-ingest-output",
|
|
num_processes=2,
|
|
),
|
|
read_config=ReadConfig(),
|
|
partition_config=PartitionConfig(),
|
|
connector_config=SimpleAzureBlobStorageConfig(
|
|
access_config=AzureAccessConfig(
|
|
account_name=os.getenv("AZURE_ACCOUNT_NAME"),
|
|
),
|
|
remote_url="abfs://container1/",
|
|
),
|
|
)
|
|
runner.run()
|