Using DocParse with the Aryn SDK
pip
:
partition_file
takes the same options as curl, except as keyword arguments. You can find a list of options here.
aryn-sdk
looks for Aryn API keys first in the environment variable ARYN_API_KEY
, and then in ~/.aryn/config.yaml
. You can override this behavior by specifying a key directly or a different path to the Aryn config file:
aryn_sdk
provides some helper functions to make working with and visualizing the output of partition_file
easier.
partition_file_async_submit
. The asynchronous API submits a file partitioning task to Aryn and returns with its task_id
.
You can use the returned task_id
to keep track of your request to partition the file using the partition_file_async_result
. To learn more check out the documentation and the tutorial.