Skip to main content

Text substring selectors for anchoring annotations

Project description

Anchorpoint

CircleCI Coverage Status

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

anchorpoint-0.4.0.tar.gz (32.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

anchorpoint-0.4.0-py3-none-any.whl (34.2 kB view details)

Uploaded Python 3

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

Hashes for anchorpoint-0.4.0.tar.gz
Algorithm Hash digest
SHA256 5650a28ec6b8999c4c6873dd1a7484aa1f82f0d39ccc335de496dfb9b79b5848
MD5 70167b449e3bda6a7deaf3bde7cf172e
BLAKE2b-256 dcf1463caf98b6381efb6993ca092cb6caa35d5cd1fadc480370aa3cbc4b83c2

See more details on using hashes here.

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

Hashes for anchorpoint-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 414ab088c4642e8dea22294020cf17eb040c18e3de443600ee861667fcc45eea
MD5 886244bc96e70180349a4b64274ffc3e
BLAKE2b-256 d8f685aef0a307fe618b935a9d0fa34f4d6f8843b42f011d1087546c0b8000df

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page