Skip to content

Commit 8871ced

Browse files
committed
fix API typos and bump version to 1.2.1
1 parent 5c3cb41 commit 8871ced

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

decimer_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ async def general_exception_handler(request, exc):
222222
return JSONResponse(
223223
status_code=500,
224224
content={
225-
"message": "An unspecified general eerror in image2smiles API occurred."
225+
"message": "An unspecified general error in image2smiles API occurred."
226226
},
227227
)
228228

@@ -244,7 +244,7 @@ async def image_to_smiles(
244244
This function uses encoded image, makes a temporary file and does the conversion to SMILES.
245245
Here, the image is first checked if it is a chemical structure.
246246
247-
encoded_image: bae64 encoded image (as string)
247+
encoded_image: base64 encoded image (as string)
248248
is_hand_drawn: Boolean indicating if the image is hand-drawn
249249
classify_image: Boolean indicating if the image should be classified
250250
"""

packages/decimerapi/decimerapi/decimerapi.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
55
license: MIT
66
Copyright (c) 2024/25 DocMinus
7-
Tools for server usage, basically independet from used environment, only requires the server running somehwere
7+
Tools for server usage, basically independent from used environment, only requires the server running somewhere
88
9-
working tools implementation, now as class to submitt a different port
9+
working tools implementation, now as class to submit a different port
1010
typo fixed; host added to __init__ method, allows to run not just locally
1111
V 0.6.0, 2026-04-06
1212
now automatic EMF to PNG conversion based on Inkscape presence. See readme for installation instructions.
@@ -149,7 +149,7 @@ def call_image2smiles(
149149
hand_drawn: bool = False,
150150
classify_image: bool = True,
151151
) -> str | None:
152-
"""Calls decimer Server to convert an image to a SMILES string.
152+
"""Calls DECIMER server to convert an image to a SMILES string.
153153
154154
Checks for correct image type and size before sending the image to the server.
155155
Converts EMF images to PNG if Inkscape is installed.
@@ -175,7 +175,7 @@ def call_image2smiles_with_meta(
175175
hand_drawn: bool = False,
176176
classify_image: bool = True,
177177
) -> dict[str, Any] | None:
178-
"""Calls decimer Server and returns the full response payload.
178+
"""Calls DECIMER server and returns the full response payload.
179179
180180
Keeps parity with server metadata fields while preserving `call_image2smiles`
181181
for backwards-compatible smiles-only usage.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "decimer-server"
3-
version = "1.2.0"
3+
version = "1.2.1"
44
description = "DECIMER image-to-SMILES FastAPI server"
55
requires-python = ">=3.10,<3.12"
66
dependencies = [

0 commit comments

Comments
 (0)