Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d9a854a

Browse files
authoredMar 25, 2025··
Chore/improve ingest imports (#46)
1 parent 7fc2601 commit d9a854a

16 files changed

+59
-49
lines changed
 

Diff for: ‎CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.0.26
2+
3+
* **Bump `unstructured-ingest` to 0.5.23**
4+
* **Change how we import FileData type for slimmer import graph at runtime**
5+
16
## 0.0.25
27

38
* **Remove message channels from input signature**

Diff for: ‎requirements/cli.txt

+27-27
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# uv pip compile ./cli.in --output-file ./cli.txt --no-strip-extras --python-version 3.10
33
annotated-types==0.7.0
44
# via pydantic
5-
anyio==4.8.0
5+
anyio==4.9.0
66
# via starlette
77
asgiref==3.8.1
88
# via opentelemetry-instrumentation-asgi
@@ -13,68 +13,68 @@ click==8.1.8
1313
# uvicorn
1414
dataclasses-json==0.6.7
1515
# via unstructured-ingest
16-
deprecated==1.2.15
16+
deprecated==1.2.18
1717
# via
1818
# opentelemetry-api
1919
# opentelemetry-exporter-otlp-proto-grpc
2020
# opentelemetry-semantic-conventions
2121
exceptiongroup==1.2.2
2222
# via anyio
23-
fastapi==0.115.6
23+
fastapi==0.115.12
2424
# via -r ./cli.in
25-
googleapis-common-protos==1.66.0
25+
googleapis-common-protos==1.69.2
2626
# via opentelemetry-exporter-otlp-proto-grpc
27-
grpcio==1.69.0
27+
grpcio==1.71.0
2828
# via opentelemetry-exporter-otlp-proto-grpc
2929
h11==0.14.0
3030
# via uvicorn
3131
idna==3.10
3232
# via anyio
33-
importlib-metadata==8.5.0
33+
importlib-metadata==8.6.1
3434
# via opentelemetry-api
35-
marshmallow==3.25.1
35+
marshmallow==3.26.1
3636
# via dataclasses-json
3737
mypy-extensions==1.0.0
3838
# via typing-inspect
39-
ndjson==0.3.1
40-
# via unstructured-ingest
41-
numpy==2.2.2
42-
# via pandas
43-
opentelemetry-api==1.29.0
39+
numpy==2.2.4
40+
# via
41+
# pandas
42+
# unstructured-ingest
43+
opentelemetry-api==1.31.1
4444
# via
4545
# opentelemetry-exporter-otlp-proto-grpc
4646
# opentelemetry-instrumentation
4747
# opentelemetry-instrumentation-asgi
4848
# opentelemetry-instrumentation-fastapi
4949
# opentelemetry-sdk
5050
# opentelemetry-semantic-conventions
51-
opentelemetry-exporter-otlp-proto-common==1.29.0
51+
opentelemetry-exporter-otlp-proto-common==1.31.1
5252
# via opentelemetry-exporter-otlp-proto-grpc
53-
opentelemetry-exporter-otlp-proto-grpc==1.29.0
53+
opentelemetry-exporter-otlp-proto-grpc==1.31.1
5454
# via -r ./cli.in
55-
opentelemetry-instrumentation==0.50b0
55+
opentelemetry-instrumentation==0.52b1
5656
# via
5757
# opentelemetry-instrumentation-asgi
5858
# opentelemetry-instrumentation-fastapi
59-
opentelemetry-instrumentation-asgi==0.50b0
59+
opentelemetry-instrumentation-asgi==0.52b1
6060
# via opentelemetry-instrumentation-fastapi
61-
opentelemetry-instrumentation-fastapi==0.50b0
61+
opentelemetry-instrumentation-fastapi==0.52b1
6262
# via -r ./cli.in
63-
opentelemetry-proto==1.29.0
63+
opentelemetry-proto==1.31.1
6464
# via
6565
# opentelemetry-exporter-otlp-proto-common
6666
# opentelemetry-exporter-otlp-proto-grpc
67-
opentelemetry-sdk==1.29.0
67+
opentelemetry-sdk==1.31.1
6868
# via
6969
# opentelemetry-exporter-otlp-proto-grpc
7070
# unstructured-ingest
71-
opentelemetry-semantic-conventions==0.50b0
71+
opentelemetry-semantic-conventions==0.52b1
7272
# via
7373
# opentelemetry-instrumentation
7474
# opentelemetry-instrumentation-asgi
7575
# opentelemetry-instrumentation-fastapi
7676
# opentelemetry-sdk
77-
opentelemetry-util-http==0.50b0
77+
opentelemetry-util-http==0.52b1
7878
# via
7979
# opentelemetry-instrumentation-asgi
8080
# opentelemetry-instrumentation-fastapi
@@ -84,11 +84,11 @@ packaging==24.2
8484
# opentelemetry-instrumentation
8585
pandas==2.2.3
8686
# via unstructured-ingest
87-
protobuf==5.29.3
87+
protobuf==5.29.4
8888
# via
8989
# googleapis-common-protos
9090
# opentelemetry-proto
91-
pydantic==2.10.5
91+
pydantic==2.10.6
9292
# via
9393
# fastapi
9494
# unstructured-ingest
@@ -98,13 +98,13 @@ python-dateutil==2.9.0.post0
9898
# via
9999
# pandas
100100
# unstructured-ingest
101-
pytz==2024.2
101+
pytz==2025.2
102102
# via pandas
103103
six==1.17.0
104104
# via python-dateutil
105105
sniffio==1.3.1
106106
# via anyio
107-
starlette==0.41.3
107+
starlette==0.46.1
108108
# via fastapi
109109
tqdm==4.67.1
110110
# via unstructured-ingest
@@ -120,9 +120,9 @@ typing-extensions==4.12.2
120120
# uvicorn
121121
typing-inspect==0.9.0
122122
# via dataclasses-json
123-
tzdata==2025.1
123+
tzdata==2025.2
124124
# via pandas
125-
unstructured-ingest==0.4.0
125+
unstructured-ingest==0.5.23
126126
# via -r ./cli.in
127127
uvicorn==0.34.0
128128
# via -r ./cli.in

Diff for: ‎requirements/constraints.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
unstructured-ingest>=0.4.0
1+
unstructured-ingest>=0.5.23

Diff for: ‎requirements/lint.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
# uv pip compile ./lint.in --output-file ./lint.txt --no-strip-extras --python-version 3.10
33
autoflake==2.3.1
44
# via -r ./lint.in
5-
black==24.10.0
5+
black==25.1.0
66
# via -r ./lint.in
77
click==8.1.8
88
# via black
9-
flake8==7.1.1
9+
flake8==7.1.2
1010
# via
1111
# -r ./lint.in
1212
# flake8-print
1313
flake8-print==5.0.0
1414
# via -r ./lint.in
1515
mccabe==0.7.0
1616
# via flake8
17-
mypy==1.14.1
17+
mypy==1.15.0
1818
# via -r ./lint.in
1919
mypy-extensions==1.0.0
2020
# via
@@ -24,7 +24,7 @@ packaging==24.2
2424
# via black
2525
pathspec==0.12.1
2626
# via black
27-
platformdirs==4.3.6
27+
platformdirs==4.3.7
2828
# via black
2929
pycodestyle==2.12.1
3030
# via
@@ -34,7 +34,7 @@ pyflakes==3.2.0
3434
# via
3535
# autoflake
3636
# flake8
37-
ruff==0.9.2
37+
ruff==0.11.2
3838
# via -r ./lint.in
3939
tomli==2.2.1
4040
# via

Diff for: ‎requirements/release.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# uv pip compile ./release.in --output-file ./release.txt --no-strip-extras --python-version 3.10
33
backports-tarfile==1.2.0
44
# via jaraco-context
5-
certifi==2024.12.14
5+
certifi==2025.1.31
66
# via requests
77
charset-normalizer==3.4.1
88
# via requests
@@ -30,7 +30,7 @@ more-itertools==10.6.0
3030
# via
3131
# jaraco-classes
3232
# jaraco-functools
33-
nh3==0.2.20
33+
nh3==0.2.21
3434
# via readme-renderer
3535
packaging==24.2
3636
# via twine

Diff for: ‎requirements/test.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# This file was autogenerated by uv via the following command:
22
# uv pip compile ./test.in --output-file ./test.txt --no-strip-extras --python-version 3.10
3-
anyio==4.8.0
3+
anyio==4.9.0
44
# via httpx
5-
certifi==2024.12.14
5+
certifi==2025.1.31
66
# via
77
# httpcore
88
# httpx
@@ -20,13 +20,13 @@ idna==3.10
2020
# via
2121
# anyio
2222
# httpx
23-
iniconfig==2.0.0
23+
iniconfig==2.1.0
2424
# via pytest
2525
packaging==24.2
2626
# via pytest
2727
pluggy==1.5.0
2828
# via pytest
29-
pytest==8.3.4
29+
pytest==8.3.5
3030
# via -r ./test.in
3131
sniffio==1.3.1
3232
# via anyio

Diff for: ‎requirements/validate.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file was autogenerated by uv via the following command:
22
# uv pip compile ./validate.in --output-file ./validate.txt --no-strip-extras --python-version 3.10
3-
certifi==2024.12.14
3+
certifi==2025.1.31
44
# via requests
55
charset-normalizer==3.4.1
66
# via requests

Diff for: ‎test/api/test_api.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
import pytest
55
from fastapi.testclient import TestClient
66
from pydantic import BaseModel
7-
from unstructured_ingest.v2.interfaces import BatchFileData, BatchItem, FileData, SourceIdentifiers
7+
from unstructured_ingest.v2.types.file_data import (
8+
BatchFileData,
9+
BatchItem,
10+
FileData,
11+
SourceIdentifiers,
12+
)
813

914
from unstructured_platform_plugins.etl_uvicorn.api_generator import (
1015
EtlApiException,

Diff for: ‎test/assets/dataclass_response.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from pathlib import Path
33
from typing import Any, Optional, TypedDict, Union
44

5-
from unstructured_ingest.v2.interfaces import BatchFileData, FileData
5+
from unstructured_ingest.v2.types.file_data import BatchFileData, FileData
66

77

88
class SampleFunctionResponse(TypedDict):

Diff for: ‎test/assets/filedata_meta.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from typing import Optional, Union
33

44
from pydantic import BaseModel
5-
from unstructured_ingest.v2.interfaces import BatchFileData, FileData, SourceIdentifiers
5+
from unstructured_ingest.v2.types.file_data import BatchFileData, FileData, SourceIdentifiers
66

77
from unstructured_platform_plugins.schema import FileDataMeta, NewRecord
88

Diff for: ‎test/test_schema.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import pytest
77
from pydantic import BaseModel
88
from typing_extensions import TypedDict
9-
from unstructured_ingest.v2.interfaces import FileData
9+
from unstructured_ingest.v2.types.file_data import FileData
1010

1111
import unstructured_platform_plugins.schema.json_schema as js
1212
from unstructured_platform_plugins.schema.model import is_valid_input_dict, is_valid_response_dict

Diff for: ‎test/test_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import pytest
66
from pydantic import BaseModel
7-
from unstructured_ingest.v2.interfaces import FileData, SourceIdentifiers
7+
from unstructured_ingest.v2.types.file_data import FileData, SourceIdentifiers
88
from uvicorn.importer import import_from_string
99

1010
from unstructured_platform_plugins.etl_uvicorn import utils

Diff for: ‎unstructured_platform_plugins/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.25" # pragma: no cover
1+
__version__ = "0.0.26" # pragma: no cover

Diff for: ‎unstructured_platform_plugins/etl_uvicorn/api_generator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from opentelemetry.instrumentation.fastapi import FastAPIInstrumentor
1212
from pydantic import BaseModel, Field, create_model
1313
from starlette.responses import RedirectResponse
14-
from unstructured_ingest.v2.interfaces.file_data import file_data_from_dict
14+
from unstructured_ingest.v2.types.file_data import file_data_from_dict
1515
from uvicorn.config import LOG_LEVELS
1616
from uvicorn.importer import import_from_string
1717

Diff for: ‎unstructured_platform_plugins/schema/filedata_meta.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from typing import Any
22

33
from pydantic import BaseModel, Field
4-
from unstructured_ingest.v2.interfaces import FileData
4+
from unstructured_ingest.v2.types.file_data import FileData
55

66

77
class NewRecord(BaseModel):

Diff for: ‎unstructured_platform_plugins/schema/json_schema.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from pydantic import BaseModel, create_model
1010
from pydantic.fields import FieldInfo, PydanticUndefined
11-
from unstructured_ingest.v2.interfaces import BatchFileData, FileData
11+
from unstructured_ingest.v2.types.file_data import BatchFileData, FileData
1212

1313
from unstructured_platform_plugins.schema.utils import TypedParameter
1414
from unstructured_platform_plugins.type_hints import get_type_hints

0 commit comments

Comments
 (0)
Please sign in to comment.