Text substring selectors for anchoring annotations
Project description
Anchorpoint
Anchorpoint supplies TextQuoteSelector and TextPositionSelector classes based on the Web Annotation Data Model, which is a W3C Recommendation. Anchorpoint includes helper methods for switching between selector types, and a marshmallow schema for serialization. Anchorpoint is used by legislice for referencing laws such as statutes, and by AuthoritySpoke for referencing judicial opinions.
API Documentation is available on readthedocs.
Anchorpoint relies on python-ranges to perform set operations on spans of text.
Related Packages
In Javascript, try the Text Quote Anchor and Text Position Anchor packages.
In Python try python-ranges, which is the basis for much of the TextPositionSelector class's behavior.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for anchorpoint-0.4.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62b96f8f2142475e0e82577d426f1714089afa6218f2356acd0319ce45b77502 |
|
MD5 | 4256c9de8b9b3808f38d2785a416c137 |
|
BLAKE2b-256 | 4f22c5b4fabc173fc0f4d95740c4b2ddf2aaca70aedb48327443994f1df756e4 |