
Security News
NVD Quietly Sweeps 100K+ CVEs Into a “Deferred” Black Hole
NVD now marks all pre-2018 CVEs as "Deferred," signaling it will no longer enrich older vulnerabilities, further eroding trust in its data.
A Python library for anchoring annotations with text substring selectors.
.. image:: https://img.shields.io/badge/open-ethical-%234baaaa :target: https://ethicalsource.dev/licenses/ :alt: An Ethical Open Source Project
.. image:: https://coveralls.io/repos/github/mscarey/anchorpoint/badge.svg?branch=master :target: https://coveralls.io/github/mscarey/anchorpoint?branch=master :alt: Test Coverage Percentage
.. image:: https://github.com/mscarey/anchorpoint/actions/workflows/python-package.yml/badge.svg :target: https://github.com/mscarey/anchorpoint/actions :alt: GitHub Actions Workflow
.. image:: https://readthedocs.org/projects/anchorpoint/badge/?version=latest :target: https://anchorpoint.readthedocs.io/en/latest/?badge=latest :alt: Documentation 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 pydantic
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.
.. _W3C Recommendation: https://www.w3.org/TR/annotation-model/
.. _pydantic: https://docs.pydantic.dev/latest/
.. _Legislice: https://github.com/mscarey/legislice
.. _AuthoritySpoke: https://authorityspoke.readthedocs.io
.. _API Documentation: https://anchorpoint.readthedocs.io/en/latest/
.. _python-ranges: https://github.com/Superbird11/ranges
.. _Text Quote Anchor: https://www.npmjs.com/package/dom-anchor-text-quote
.. _Text Position Anchor: https://www.npmjs.com/package/dom-anchor-text-position
FAQs
Text substring selectors for anchoring annotations
We found that anchorpoint demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NVD now marks all pre-2018 CVEs as "Deferred," signaling it will no longer enrich older vulnerabilities, further eroding trust in its data.
Research
Security News
Lazarus-linked threat actors expand their npm malware campaign with new RAT loaders, hex obfuscation, and over 5,600 downloads across 11 packages.
Security News
Safari 18.4 adds support for Iterator Helpers and two other TC39 JavaScript features, bringing full cross-browser coverage to key parts of the ECMAScript spec.