Skip to content

Commit 9219b4d

Browse files
committed
Use the new blob mechanism
BlobOutput is dead! long live Blob. See release notes for labthings-fastapi v0.0.7
1 parent 72626aa commit 9219b4d

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ classifiers = [
1414
]
1515
dependencies = [
1616
"picamera2~=0.3.12",
17-
"labthings-fastapi>=0.0.6",
17+
"labthings-fastapi>=0.0.7",
1818
"numpy",
1919
"scipy",
2020
]

src/labthings_picamera2/thing.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from labthings_fastapi.types.numpy import NDArray
1919
from labthings_fastapi.dependencies.metadata import GetThingStates
2020
from labthings_fastapi.dependencies.blocking_portal import BlockingPortal
21-
from labthings_fastapi.outputs.blob import BlobOutput
21+
from labthings_fastapi.outputs.blob import blob_type
2222
from typing import Annotated, Any, Iterator, Literal, Mapping, Optional
2323
from contextlib import contextmanager
2424
import piexif
@@ -32,8 +32,7 @@
3232
from . import recalibrate_utils
3333

3434

35-
class JPEGBlob(BlobOutput):
36-
media_type = "image/jpeg"
35+
JPEGBlob = blob_type("image/jpeg")
3736

3837

3938
class PicameraControl(PropertyDescriptor):

0 commit comments

Comments
 (0)