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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file anchorpoint-0.4.0.tar.gz.
File metadata
- Download URL: anchorpoint-0.4.0.tar.gz
- Upload date:
- Size: 32.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5650a28ec6b8999c4c6873dd1a7484aa1f82f0d39ccc335de496dfb9b79b5848
|
|
| MD5 |
70167b449e3bda6a7deaf3bde7cf172e
|
|
| BLAKE2b-256 |
dcf1463caf98b6381efb6993ca092cb6caa35d5cd1fadc480370aa3cbc4b83c2
|
File details
Details for the file anchorpoint-0.4.0-py3-none-any.whl.
File metadata
- Download URL: anchorpoint-0.4.0-py3-none-any.whl
- Upload date:
- Size: 34.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
414ab088c4642e8dea22294020cf17eb040c18e3de443600ee861667fcc45eea
|
|
| MD5 |
886244bc96e70180349a4b64274ffc3e
|
|
| BLAKE2b-256 |
d8f685aef0a307fe618b935a9d0fa34f4d6f8843b42f011d1087546c0b8000df
|