FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
unstructured-python-client/codeSamples.yaml at main · ranade1/unstructured-python-client · GitHub
ranade1
/
unstructured-python-client
Public
forked from
Unstructured-IO/unstructured-python-client
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
unstructured-python-client
/
codeSamples.yaml
Copy path
More file actions
More file actions
Latest commit
History
History
History
11 lines (11 loc) · 866 Bytes
Breadcrumbs
unstructured-python-client
/
codeSamples.yaml
Copy path
File metadata and controls
11 lines (11 loc) · 866 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
overlay
:
1.0.0
info
:
title
:
CodeSamples overlay for python target
version
:
0.0.0
actions
:
-
target
:
$["paths"]["/general/v0/general"]["post"]
update
:
"
x-codeSamples
"
:
-
"
lang
"
:
"
python
"
"
label
"
:
"
partition
"
"
source
"
:
"
from unstructured_client import UnstructuredClient
\n
from unstructured_client.models import shared
\n\n
s = UnstructuredClient()
\n\n
res = s.general.partition(request={
\n
\"
partition_parameters
\"
: {
\n
\"
files
\"
: {
\n
\"
file_name
\"
:
\"
example.file
\"
,
\n
\"
content
\"
: open(
\"
example.file
\"
,
\"
rb
\"
),
\n
},
\n
\"
strategy
\"
: shared.Strategy.AUTO,
\n
\"
chunking_strategy
\"
: shared.ChunkingStrategy.BASIC,
\n
\"
split_pdf_page_range
\"
: [
\n
1,
\n
10,
\n
],
\n
},
\n
})
\n\n
if res.elements is not None:
\n
# handle response
\n
pass
"
Back
|
FazBrowse Home
|
New Git URL