mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-12-30 08:43:44 +00:00
Fixes order of content type detection strategies for byte-encoded jsons.
Before
```
json_bytes = json.dumps([{"example": "data"}]).encode("utf-8")
file_buffer = io.BytesIO(json_bytes)
detect_filetype(file=file_buffer, metadata_file_path="filename.pdf")
```
Before
PDF
Now
JSON
64 lines
1.1 KiB
Plaintext
64 lines
1.1 KiB
Plaintext
#
|
|
# This file is autogenerated by pip-compile with Python 3.9
|
|
# by the following command:
|
|
#
|
|
# pip-compile ./dev.in
|
|
#
|
|
build==1.2.2.post1
|
|
# via pip-tools
|
|
cfgv==3.4.0
|
|
# via pre-commit
|
|
click==8.1.8
|
|
# via
|
|
# -c ./base.txt
|
|
# -c ./test.txt
|
|
# pip-tools
|
|
distlib==0.3.9
|
|
# via virtualenv
|
|
filelock==3.17.0
|
|
# via virtualenv
|
|
identify==2.6.8
|
|
# via pre-commit
|
|
importlib-metadata==8.6.1
|
|
# via
|
|
# -c ././deps/constraints.txt
|
|
# build
|
|
nodeenv==1.9.1
|
|
# via pre-commit
|
|
packaging==24.2
|
|
# via
|
|
# -c ./base.txt
|
|
# -c ./test.txt
|
|
# build
|
|
pip-tools==7.4.1
|
|
# via -r ./dev.in
|
|
platformdirs==4.3.6
|
|
# via
|
|
# -c ./test.txt
|
|
# virtualenv
|
|
pre-commit==4.1.0
|
|
# via -r ./dev.in
|
|
pyproject-hooks==1.2.0
|
|
# via
|
|
# build
|
|
# pip-tools
|
|
pyyaml==6.0.2
|
|
# via
|
|
# -c ./test.txt
|
|
# pre-commit
|
|
tomli==2.2.1
|
|
# via
|
|
# -c ./test.txt
|
|
# build
|
|
# pip-tools
|
|
virtualenv==20.29.3
|
|
# via pre-commit
|
|
wheel==0.45.1
|
|
# via pip-tools
|
|
zipp==3.21.0
|
|
# via importlib-metadata
|
|
|
|
# The following packages are considered to be unsafe in a requirements file:
|
|
# pip
|
|
# setuptools
|