David Potter 00f544f100
fix: improve doc code (#2920)
Improves the documentation code.
Standardizes unstructured api key
Replaces misc hard coded values
Replaces `azureunstructured1` with a generic value
2024-04-25 17:55:15 +00:00

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