
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.
topy
Advanced tools
.. image:: https://badge.fury.io/py/topy.svg :target: https://badge.fury.io/py/topy
.. image:: https://travis-ci.com/intgr/topy.svg?branch=master :alt: Travis CI :target: https://travis-ci.com/github/intgr/topy
Topy (anagram of "typo") is a Python script to fix typos in text, using rulesets developed by the RegExTypoFix_ project from Wikipedia. The English ruleset is included with Topy and is used by default. Other rulesets can be manually downloaded.
.. _RegExTypoFix: https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser/Typos
Topy works with Python 3.6-3.9.
The easiest way to install it is using pip::
pip install topy
Usage::
Usage: topy [options] FILES/DIRS...
Options:
-h, --help show this help message and exit
-q, --quiet silence information messages
-a, --apply overwrite files in place
-r FILE, --rules=FILE
specify custom ruleset file to use
-d RULE, --disable=RULE
disable rules by name
--color=WHEN, --colour=WHEN
colorize the output; WHEN can be 'never', 'always', or
'auto'
For example, if you want to integrate topy in your CI pipeline, you can do something like::
sh -c "git ls-files | xargs topy --quiet --apply --; git --no-pager diff --exit-code"
The line above will check all files tracked by git, apply fixes to them and fail if any changes are applied. If no changes are to be applied, the command returns success.
1.1.0 (2021-02-03)
1.0.1 (2021-01-30)
1.0.0 (2020-09-08)
0.3.0 (2020-06-02)
Note: This was the last release to support Python 2.7.
0.2.2 (2016-12-16)
0.2.1 (2016-07-15)
regex issue #216_.. _regex issue #216: https://bitbucket.org/mrabarnett/mrab-regex/issues/216/invalid-match-when-using-negative
0.2.0 (2015-09-09)
0.1.0 (2014-08-24)
Code style:
"), otherwise single quotes ('). When in doubt, don't
worry about it.Run the test suite using python setup.py test.
Submit your changes as pull requests on GitHub.
.. _PEP-8: https://www.python.org/dev/peps/pep-0008/
The Topy software is licensed under the MIT license (see LICENSE.txt)
The bundled retf.txt file, copied from Wikipedia AutoWikiBrowser/Typos_ by Wikipedia contributors is licensed
under CC-BY-SA_. See the page on Wikipedia for authorship information.
.. _Wikipedia AutoWikiBrowser/Typos: https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser/Typos
.. _CC-BY-SA: https://creativecommons.org/licenses/by-sa/3.0/
FAQs
Fixes typos in text using regular expressions, based on RegExTypoFix from Wikipedia
We found that topy 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.