uv
, run uv add unstructured-client
venv
(or for no virtual environment), run pip install unstructured-client
<unstructured-api-key>
with your Unstructured API key.
None
for input_dir
to a string that contains the path to the directory on your local machine. This can be a relative or absolute path.
None
for input_file
to a string that contains
a comma-separated list of filepaths on your local machine, for example "./input/2507.13305v1.pdf,./input2/table-multi-row-column-cells.pdf"
. These filepaths
can be relative or absolute.
input_dir
and input_file
are both set to something other than None
, then the input_dir
setting takes precedence, and the input_file
setting is ignored.output_dir
parameter, specify a string that contains the path to the directory on your local machine that you want Unstructured to send its JSON output files. If the specified directory does not exist at that location, the code will create the missing directory for you. This path can be relative or absolute.