Skip to content

Releases: markjoshwel/surplus

v2.2.0

14 Oct 20:08
fdf3a86
Compare
Choose a tag to compare

Warning

constants are changed in this update!

what's new

  • special key arrangements for malaysia
  • support for termux-location json input

what's fixed

  • fixed typing-extensions as an unwritten dependency
    this also fixes a bug in not being able to run surplus in Python 3.12
  • fixed italian key arrangements #34

what's changed

  • SHAREABLE* constants are now dictionaries, see api docs for more infomation

v2.1.1...v2.2.0

v2.1.1

19 Sep 15:20
533cdb2
Compare
Choose a tag to compare

fix roads not coming first in Italian addresses (#31)

changes

  • documentation enhancements
    • remove self in SurplusReverserProtocol conforming signature
    • fix mismatching carets and add info on split_iso3166_2
  • alternative line 3 arrangement for IT/Italy in #31

v2.1.0...v2.1.1

v2.1.0

06 Sep 22:31
e15d452
Compare
Choose a tag to compare

Warning

there are backwards-compatible api changes in this release.

type-to-type location representation conversions and quality of life changes/fixes

changes


  • add reading from stdin when query is "-" in #23
  • type to type conversion in #24
  • fix local codes not being recognised if split with comma in #29
  • more verbose -v/--version information in #21

v2.0.1...v2.1.0

v2.0.1

05 Sep 07:05
bf26afb
Compare
Choose a tag to compare

changes

  • Expose surplus.Result in __init__.py by in #28

v2.0.0...v2.0.1

v2.0.0

03 Sep 15:53
5bc64ed
Compare
Choose a tag to compare

Warning

this is an api-breaking release. see 'the great api break'.
command-line usage of surplus has not changed.

Important

python 3.11 or later is required due to a bug in earlier versions.
(python/cpython#88089)

complete rewrite and string query support

install this release with pip:

pip install https://github.com/markjoshwel/surplus/releases/download/v2.0.0/surplus-2.0.0-py3-none-any.whl

changes

  • surplus has been fully rewritten in #19
  • support for string queries
    $ s+ Wisma Atria
    surplus version 2.0.0
    Wisma Atria
    435 Orchard Road
    238877
    Central, Singapore
    
  • mypy will now recognise surplus as a typed module
  • python 3.11 is now the minimum version

the great api break

what is new

  • nominatim keys are now stored in tuple constants
  • surplus exception classes are now a thing
  • surplus functions now operate using a unified Behaviour object
  • surplus functions now return a Result object for safer value retrieval instead of the previous (bool, value) tuple
  • dedicated NamedTuple classes for each query type

what has been removed

  • surplus.handle_query()

    instead, use .to_lat_long_coord() on your surplus 2.x query object

what has remained

  • surplus.surplus(), the function
  • surplus.parse_query(), the function

what has changed

  • surplus.surplus()

    1. reverser and debug arguments are now under the unified surplus.Behaviour object
    2. function now returns a surplus.Result[str] for safer error handling
  • surplus.parse_query()

    1. query and debug arguments are now under the unified surplus.Behaviour object
    2. function now returns a surplus.Result[surplus.Query] for safer error handling
  • surplus.Latlong

    attributes lat and long have been renamed to latitude and longitude respectively

  • surplus.Localcode

    renamed to surplus.LocalCodeQuery

  • Localcode.full_length()

    renamed to LocalCodeQuery.to_full_plus_code(), and returns a surplus.Result[str] for safer error handling

v1.1.3...v2.0.0

v1.1.3

21 Jun 04:44
1eddae0
Compare
Choose a tag to compare

changes

v1.1.2...v1.1.3

v1.1.2

18 Jun 10:27
65b029a
Compare
Choose a tag to compare

changes

v1.1.1...v1.1.2

v1.1.1

16 Jun 08:11
e61960d
Compare
Choose a tag to compare

changes

fixes and output tweaks

thanks

full changelog: v1.1.0...v1.1.1

v1.1.0

03 Jun 12:11
42e3c2c
Compare
Choose a tag to compare

short code and latlong coord support!

  • code: s+ alternative shorthand script
  • code: handle none/list locations
  • code: query by latlong support
  • code: support shortcodes with localities
  • code: implement more address detail tags from nominatim
  • meta: slsa 3 compliance