Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: bjoern-reetz/cap-tools

v3.1.1

04 Aug 11:27

Choose a tag to compare

v3.1.1 (2024-08-04)

Fix

  • pyproject.toml: improve project metadata

v3.1.0

21 Jul 16:07

Choose a tag to compare

v3.1.0 (2024-07-21)

Feat

  • cap_tools.AlertState: add new class AlertState
  • cap_tools.Reference: add from_alert static method

Refactor

  • tests: refactor Hypothesis strategies, introducing strategies for Alert and Info

v3.0.0

20 Jul 21:46

Choose a tag to compare

v3.0.0 (2024-07-20)

BREAKING CHANGE

  • Alert.references_to_list and Alert.references_from_list now return/receive list[Reference] instead of list[str].
  • The capability of uting keyword-arguments was removed.

Feat

  • cap_tools: introduce Reference NamedTuple

Refactor

  • utils: change split_and_remove_quotes and join_and_maybe_add_quotes to accept positional arguments only

v2.5.1

29 May 17:07

Choose a tag to compare

v2.5.1 (2024-05-29)

Fix

  • cap_tools.models: replace wrong type annotation MultiDict[str, str] -> MultiDict[str]

Refactor

  • cap_tools: add py.typed
  • tests: add type hints for tests

v2.5.0

27 May 19:42

Choose a tag to compare

v2.5.0 (2024-05-27)

Feat

  • cap_tools.models.Alert: add *_to_list() and *_from_list() methods to split/join group listings

v2.4.0

27 May 19:42

Choose a tag to compare

v2.4.0 (2024-05-26)

Feat

  • cap_tools.models: *_to_dict() now return MultiDict, *_from_dict() now accept Mapping

v2.3.0

14 May 17:03

Choose a tag to compare

v2.3.0 (2024-05-14)

Feat

  • cap_tools.models.Info: add parameters_to_dict and parameters_from_dict methods
  • cap_tools.models.Info: add event_codes_to_dict and event_codes_from_dict methods
  • cap_tools.models.Area: add geocode_to_dict and geocode_from_dict methods

Refactor

  • tests: move quick tests to dedicated module

v2.2.0

13 May 22:16

Choose a tag to compare

v2.2.0 (2024-05-14)

Feat

  • cap_tools.models.Area: add geocodes_to_dict and geocodes_from_dict methods

v2.1.0

13 May 22:07

Choose a tag to compare

v2.1.0 (2024-05-13)

Feat

  • cap_tools.models.Info: add get_language and set_language methods

v2.0.0

11 May 10:02

Choose a tag to compare

v2.0.0 (2024-05-11)

BREAKING CHANGE

  • It is very unlikely that this change will affect you. This default value is only relevant when using the Python API to create Alerts, where it now throws an error when omitting a value.

Refactor

  • remove default="" from value attributes of ValueName and Value