Skip to content

Commit

Permalink
Merge pull request #10 from Unstructured-IO/speakeasy-sdk-regen-16993…
Browse files Browse the repository at this point in the history
…16313

chore: 🐝 Update SDK - Generate
  • Loading branch information
awalker4 authored Nov 9, 2023
2 parents 0ab27cf + 9353e41 commit 1ecb837
Show file tree
Hide file tree
Showing 22 changed files with 115 additions and 82 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ s = unstructured_client.UnstructuredClient(
The Python SDK makes API calls using the (requests)[https://pypi.org/project/requests/] HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `requests.Session` object.


For example, you could specify a header for every request that your sdk makes as follows:
For example, you could specify a header for every request that this sdk makes as follows:

```python
import unstructured_client
Expand All @@ -116,6 +116,9 @@ s = unstructured_client.UnstructuredClient(client: http_client)
```
<!-- End Custom HTTP Client -->

<!-- No Retries -->
<!-- No Authentication -->

<!-- Placeholder for Future Speakeasy SDK Sections -->

### Maturity
Expand Down
22 changes: 21 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,4 +234,24 @@ Based on:
### Generated
- [python v0.12.2] .
### Releases
- [PyPI v0.12.2] https://pypi.org/project/unstructured-client/0.12.2 - .
- [PyPI v0.12.2] https://pypi.org/project/unstructured-client/0.12.2 - .

## 2023-11-07 00:18:31
### Changes
Based on:
- OpenAPI Doc 0.0.1
- Speakeasy CLI 1.114.1 (2.181.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.13.0] .
### Releases
- [PyPI v0.13.0] https://pypi.org/project/unstructured-client/0.13.0 - .

## 2023-11-09 00:18:03
### Changes
Based on:
- OpenAPI Doc 0.0.1
- Speakeasy CLI 1.116.0 (2.185.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.14.0] .
### Releases
- [PyPI v0.14.0] https://pypi.org/project/unstructured-client/0.14.0 - .
6 changes: 3 additions & 3 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ req = shared.PartitionParameters(
chunking_strategy='by_title',
combine_under_n_chars=500,
encoding='utf-8',
files=shared.PartitionParametersFiles(
content='+WmI5Q)|yy'.encode(),
files='string',
files=shared.Files(
content='0x2cC94b2FEF'.encode(),
file_name='um.shtml',
),
gz_uncompressed_content_type='application/pdf',
hi_res_model_name='yolox',
Expand Down
6 changes: 3 additions & 3 deletions docs/models/errors/httpvalidationerror.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

## Fields

| Field | Type | Required | Description |
| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- |
| `detail` | List[[ValidationError](../../models/errors/validationerror.md)] | :heavy_minus_sign: | N/A |
| Field | Type | Required | Description |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| `detail` | List[[errors.ValidationError](../../models/errors/validationerror.md)] | :heavy_minus_sign: | N/A |
17 changes: 17 additions & 0 deletions docs/models/errors/loc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Loc


## Supported Types

###

```python
loc: str = /* values here */
```

###

```python
loc: int = /* values here */
```

10 changes: 5 additions & 5 deletions docs/models/errors/validationerror.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ |
| `loc` | List[[Union[str, int]](../../models/errors/validationerrorloc.md)] | :heavy_check_mark: | N/A |
| `msg` | *str* | :heavy_check_mark: | N/A |
| `type` | *str* | :heavy_check_mark: | N/A |
| Field | Type | Required | Description |
| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- |
| `loc` | List[[Union[str, int]](../../models/errors/loc.md)] | :heavy_check_mark: | N/A |
| `msg` | *str* | :heavy_check_mark: | N/A |
| `type` | *str* | :heavy_check_mark: | N/A |
17 changes: 0 additions & 17 deletions docs/models/errors/validationerrorloc.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# PartitionParametersFiles
# Files


## Fields

| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `content` | *bytes* | :heavy_check_mark: | N/A |
| `files` | *str* | :heavy_check_mark: | N/A |
| `file_name` | *str* | :heavy_check_mark: | N/A |
2 changes: 1 addition & 1 deletion docs/models/shared/partitionparameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
| `combine_under_n_chars` | *Optional[int]* | :heavy_minus_sign: | If chunking strategy is set, combine elements until a section reaches a length of n chars. Default: 500 | 500 |
| `coordinates` | *Optional[bool]* | :heavy_minus_sign: | If true, return coordinates for each element. Default: false | |
| `encoding` | *Optional[str]* | :heavy_minus_sign: | The encoding method used to decode the text input. Default: utf-8 | utf-8 |
| `files` | [Optional[PartitionParametersFiles]](../../models/shared/partitionparametersfiles.md) | :heavy_minus_sign: | The file to extract | |
| `files` | [Optional[shared.Files]](../../models/shared/files.md) | :heavy_minus_sign: | The file to extract | |
| `gz_uncompressed_content_type` | *Optional[str]* | :heavy_minus_sign: | If file is gzipped, use this content type after unzipping | application/pdf |
| `hi_res_model_name` | *Optional[str]* | :heavy_minus_sign: | The name of the inference model used when strategy is hi_res | yolox |
| `include_page_breaks` | *Optional[bool]* | :heavy_minus_sign: | If True, the output will include page breaks if the filetype supports it. Default: false | |
Expand Down
11 changes: 8 additions & 3 deletions docs/sdks/general/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ req = shared.PartitionParameters(
chunking_strategy='by_title',
combine_under_n_chars=500,
encoding='utf-8',
files=shared.PartitionParametersFiles(
content='+WmI5Q)|yy'.encode(),
files='string',
files=shared.Files(
content='0x2cC94b2FEF'.encode(),
file_name='um.shtml',
),
gz_uncompressed_content_type='application/pdf',
hi_res_model_name='yolox',
Expand Down Expand Up @@ -65,4 +65,9 @@ if res.elements is not None:
### Response

**[operations.PartitionResponse](../../models/operations/partitionresponse.md)**
### Errors

| Error Object | Status Code | Content Type |
| -------------------------- | -------------------------- | -------------------------- |
| errors.HTTPValidationError | 422 | application/json |
| errors.SDKError | 400-600 | */* |
12 changes: 6 additions & 6 deletions files.gen
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,25 @@ src/unstructured_client/sdk.py
pylintrc
setup.py
src/unstructured_client/__init__.py
src/unstructured_client/models/__init__.py
src/unstructured_client/models/errors/sdkerror.py
src/unstructured_client/utils/__init__.py
src/unstructured_client/utils/retries.py
src/unstructured_client/utils/utils.py
src/unstructured_client/models/errors/sdkerror.py
src/unstructured_client/models/operations/partition.py
src/unstructured_client/models/operations/__init__.py
src/unstructured_client/models/errors/httpvalidationerror.py
src/unstructured_client/models/errors/validationerror.py
src/unstructured_client/models/errors/__init__.py
src/unstructured_client/models/shared/partition_parameters.py
src/unstructured_client/models/shared/security.py
src/unstructured_client/models/__init__.py
src/unstructured_client/models/errors/__init__.py
src/unstructured_client/models/operations/__init__.py
src/unstructured_client/models/shared/__init__.py
USAGE.md
docs/models/operations/partitionresponse.md
docs/models/errors/httpvalidationerror.md
docs/models/errors/validationerrorloc.md
docs/models/errors/loc.md
docs/models/errors/validationerror.md
docs/models/shared/partitionparametersfiles.md
docs/models/shared/files.md
docs/models/shared/partitionparameters.md
docs/models/shared/security.md
docs/sdks/unstructuredclient/README.md
Expand Down
29 changes: 17 additions & 12 deletions gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,39 @@ configVersion: 1.0.0
management:
docChecksum: bf57420eebd40f2b1d166092f01e3927
docVersion: 0.0.1
speakeasyVersion: 1.109.2
generationVersion: 2.173.0
speakeasyVersion: 1.116.0
generationVersion: 2.185.0
generation:
comments:
disableComments: false
omitDescriptionIfSummaryPresent: false
baseServerURL: ""
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
comments: {}
sdkClassName: unstructured_client
singleTagPerOp: false
tagNamespacingDisabled: false
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
features:
python:
core: 3.3.1
core: 4.1.2
examples: 2.81.3
globalSecurity: 2.82.0
globalSecurity: 2.83.0
globalServerURLs: 2.82.0
nameOverrides: 2.81.1
retries: 2.82.0
serverIDs: 2.81.1
python:
version: 0.12.2
version: 0.14.0
author: Unstructured
clientServerStatusCodesAsErrors: true
description: Python Client SDK for Unstructured API
flattenGlobalSecurity: true
imports:
option: openapi
paths:
callbacks: models/callbacks
errors: models/errors
operations: models/operations
shared: models/shared
webhooks: models/webhooks
inputModelSuffix: input
installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git
maxMethodParams: 0
outputModelSuffix: output
packageName: unstructured-client
published: true
repoSubDirectory: .
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setuptools.setup(
name="unstructured-client",
version="0.12.2",
version="0.14.0",
author="Unstructured",
description="Python Client SDK for Unstructured API",
long_description=long_description,
Expand Down
Loading

0 comments on commit 1ecb837

Please sign in to comment.