Python SDK
UnstructuredClient
object’s general.partition_async
method returns a PartitionResponse
object.This PartitionResponse
object’s elements
variable contains a list of key-value dictionaries (List[Dict[str, Any]]
). For example:elements_from_dicts
function to convert the list of key-value dictionaries (Iterable[Dict[str, Any]]
) into a list of elements (Iterable[Element]
).elements_to_json
function to convert the list of elements into a JSON-formatted string and then print or save that string.JavaScript/TypeScript SDK
UnstructuredClient
object’s general.partition
method returns a Promise<PartitionResponse>
object.This PartitionResponse
object’s elements
property contains an Array
of string-value objects ({ [k: string]: any; }[]
). For example:Array
techniques such as forEach to access each object in this array. For example: