
Security News
The Nightmare Before Deployment
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.
anchorman
Advanced tools
Anchorman takes a list of terms and a text. It finds the terms in this text and replaces them with another representation.
.. image:: https://img.shields.io/pypi/v/anchorman.svg :target: https://pypi.python.org/pypi/anchorman :alt: Latest Version
.. image:: https://travis-ci.org/rebeling/anchorman.svg?branch=master :target: https://travis-ci.org/rebeling/anchorman
Turn your text into hypertext and enrich the content. Anchorman finds terms in text and replaces them with another representation.
The replacement is rule-based. Each term is checked against the rules and will be applied if valid.
# How many items will be marked at all in the text.
replaces_at_all: 5
# Input term has to be exact match in text.
case_sensitive: true
>>> from anchorman import annotate
>>> text = 'The quick brown fox jumps over the lazy dog.'
>>> elements = [{'fox': {'value': '/wiki/fox', 'data-type': 'animal'}}]
>>> print annotate(text, elements)
'The quick brown <a href="/wiki/fox" data-type="animal">fox</a> jumps over the lazy dog.'
To install Anchorman, simply:
pip install anchorman
We published this at github and pypi to provide our solution to you. Pleased for feedback and contributions.
Thanks @tarnacious for inspiration and first steps.
Stay tuned.
FAQs
Anchorman takes a list of terms and a text. It finds the terms in this text and replaces them with another representation.
We found that anchorman 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
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.

Research
/Security News
Impostor NuGet package Tracer.Fody.NLog typosquats Tracer.Fody and its author, using homoglyph tricks, and exfiltrates Stratis wallet JSON/passwords to a Russian IP address.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.