s+,docs,meta: expose Result and bump version (#27, #28)

This commit is contained in:
Mark Joshwel 2023-09-05 14:47:42 +08:00 committed by GitHub
parent 5bc64ed093
commit bf26afb95a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 4 deletions

View file

@ -19,7 +19,7 @@ to iOS Shortcuts-like shareable text.
```text
$ surplus 9R3J+R9 Singapore
surplus version 2.0.0
surplus version 2.0.1
Thomson Plaza
301 Upper Thomson Road
Sin Ming, Bishan
@ -255,7 +255,7 @@ of incorrect outputs.
```text
$ s+ --debug 8QJF+RP Singapore
surplus version 2.0.0, debug mode
surplus version 2.0.1, debug mode
debug: parse_query: behaviour.query=['8QJF+RP', 'Singapore']
debug: _match_plus_code: portion_plus_code='8QJF+RP', portion_locality='Singapore'
debug: cli: query=Result(value=LocalCodeQuery(code='8QJF+RP', locality='Singapore'), error=None)

View file

@ -1,6 +1,6 @@
[tool.poetry]
name = "surplus"
version = "2.0.0"
version = "2.0.1"
description = "Python script to convert Google Maps Plus Codes to iOS Shortcuts-like shareable text."
authors = ["Mark Joshwel <mark@joshwel.co>"]
license = "Unlicense"

View file

@ -56,6 +56,7 @@ from .surplus import (
PlusCodeNotFoundError,
PlusCodeQuery,
Query,
Result,
ResultType,
StringQuery,
SurplusException,

View file

@ -56,7 +56,7 @@ from pluscodes.openlocationcode import ( # type: ignore # isort: skip
# constants
VERSION: Final[tuple[int, int, int]] = (2, 0, 0)
VERSION: Final[tuple[int, int, int]] = (2, 0, 1)
USER_AGENT: Final[str] = "surplus"
SHAREABLE_TEXT_LINE_0_KEYS: Final[tuple[str, ...]] = (
"emergency",