mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-07-03 23:20:35 +00:00
27 lines
780 B
Python
27 lines
780 B
Python
import os
|
|
|
|
from unstructured.ingest.connector.fsspec.box import BoxAccessConfig, SimpleBoxConfig
|
|
from unstructured.ingest.interfaces import (
|
|
PartitionConfig,
|
|
ProcessorConfig,
|
|
ReadConfig,
|
|
)
|
|
from unstructured.ingest.runner import BoxRunner
|
|
|
|
if __name__ == "__main__":
|
|
runner = BoxRunner(
|
|
processor_config=ProcessorConfig(
|
|
verbose=True,
|
|
output_dir="box-output",
|
|
num_processes=2,
|
|
),
|
|
read_config=ReadConfig(),
|
|
partition_config=PartitionConfig(),
|
|
connector_config=SimpleBoxConfig(
|
|
remote_url="box://utic-test-ingest-fixtures",
|
|
recursive=True,
|
|
access_config=BoxAccessConfig(box_app_config=os.getenv("BOX_APP_CONFIG_PATH")),
|
|
),
|
|
)
|
|
runner.run()
|