Skip to content

Releases: mscarey/anchorpoint

v0.8.2

06 Nov 06:00
Compare
Choose a tag to compare

bugfix: TextPositionSet init wouldn't accept serialized position selector

v0.8.1

05 Nov 05:42
Compare
Choose a tag to compare
  • fix error in specifying Pydantic version in setup.py

v0.8.0

30 Oct 05:03
Compare
Choose a tag to compare
  • Update models for Pydantic v2
  • Add CI tests for Python 3.12

0.6.0

20 Sep 00:34
Compare
Choose a tag to compare
  • TextPositionSelector no longer inherits from Range
  • TextPositionSet no longer inherits from RangeSet
  • TextPositionSelector no longer has real_start and real_end that can differ from start and end
  • Selectors and TextPositionSets are Pydantic models
  • remove Marshmallow schemas
  • update type annotations for TextPositionSelector.from_range
  • add TestQuoteSelector.as_unique_position method
  • TextPositionSet can include TextQuoteSelectors
  • add convert_quotes_to_positions method to TextPositionSet
  • replace TextPositionSet.selectors field with positions and quotes
  • change as_quote_selector method to as_quote
  • TextPositionSet.add_margin includes quotes
  • fix bug: subtracting int from selector set caused quotes to be lost
  • add ge and gt methods for TextPositionSelector
  • add Selecting Text with Anchorpoint guide

0.5.0

08 May 06:05
Compare
Choose a tag to compare
  • add TextPositionSelector.from_text constructor
  • Range constructor interprets None as 0
  • fix bug: union with TextPositionSet should return TextPositionSet
  • add PositionSelectorSchema, for when a selector can't be a TextQuoteSelector

0.4.4

25 Jan 10:38
Compare
Choose a tag to compare
  • provide "missing" instead of "optional" argument for marshmallow schema
  • add TextPositionSetFactory.from_exact_strings
  • SelectorSchema.expand_anchor_shorthand takes only a string argument
  • TextPositionSetFactory.from_selection will accept a Sequence of mixed types

v0.4.0

08 Aug 09:51
Compare
Choose a tag to compare
  • TextPositionSet can output a TextSequence

0.3.1

20 Jul 02:55
Compare
Choose a tag to compare
  • add left and right margin parameters to TextPositionSelector.as_quote_selector
  • as_quotes method for TextSelectorSet
  • enable adding int to TextSelectorSet
  • fix class name in repr for TextSelectorSet

0.3.0

18 Jul 09:35
Compare
Choose a tag to compare
  • add TextQuoteSelector.from_text shortcut
  • add ability to subtract an integer from all values in a TextPositionSet
  • include marshmallow schema for serializing

0.2.0

21 May 17:26
Compare
Choose a tag to compare
  • Lets TextPositionSelector inherit from Range, based on python-ranges.