{"id":13616949,"url":"https://github.com/intgr/topy","last_synced_at":"2025-03-15T10:30:57.955Z","repository":{"id":15871706,"uuid":"18612432","full_name":"intgr/topy","owner":"intgr","description":"Python script to fix typos in text, based on the RegExTypoFix project from Wikipedia and AutoWikiBrowser","archived":false,"fork":false,"pushed_at":"2024-04-21T23:26:15.000Z","size":509,"stargazers_count":35,"open_issues_count":7,"forks_count":11,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-27T00:05:37.699Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/intgr.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-04-09T20:39:48.000Z","updated_at":"2024-04-11T07:21:33.000Z","dependencies_parsed_at":"2024-01-17T00:27:06.448Z","dependency_job_id":"f4cd3101-9276-4b6d-bc10-53a18c51d31d","html_url":"https://github.com/intgr/topy","commit_stats":{"total_commits":65,"total_committers":7,"mean_commits":9.285714285714286,"dds":"0.18461538461538463","last_synced_commit":"99003ae936cb25c01f8a6f3c23aed8574a604185"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intgr%2Ftopy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intgr%2Ftopy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intgr%2Ftopy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intgr%2Ftopy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/intgr","download_url":"https://codeload.github.com/intgr/topy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243718809,"owners_count":20336589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T20:01:35.106Z","updated_at":"2025-03-15T10:30:57.538Z","avatar_url":"https://github.com/intgr.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"Topy\n====\n.. image:: https://badge.fury.io/py/topy.svg\n   :target: https://badge.fury.io/py/topy\n\n.. |Tests status| image:: https://github.com/intgr/topy/workflows/Tests/badge.svg?branch=master\n   :target: https://github.com/intgr/topy/actions?query=workflow:Tests\n\nTopy (anagram of \"typo\") is a Python script to fix typos in text, using rulesets developed by the RegExTypoFix_ project\nfrom Wikipedia. The English ruleset is included with Topy and is used by default. Other rulesets can be manually\ndownloaded.\n\n.. _RegExTypoFix: https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser/Typos\n\nTopy works with Python 3.7-3.11.\n\nThe easiest way to install it is using pip::\n\n    pip install topy\n\nUsage::\n\n    Usage: topy [options] FILES/DIRS...\n\n    Options:\n      -h, --help            show this help message and exit\n      -q, --quiet           silence information messages\n      -a, --apply           overwrite files in place\n      -r FILE, --rules=FILE\n                            specify custom ruleset file to use\n      -d RULE, --disable=RULE\n                            disable rules by name\n      --color=WHEN, --colour=WHEN\n                            colorize the output; WHEN can be 'never', 'always', or\n                            'auto'\n\nFor example, if you want to integrate topy in your CI pipeline, you can do something like::\n\n    sh -c \"git ls-files | xargs topy --quiet --apply --; git --no-pager diff --exit-code\"\n\nThe line above will check all files tracked by git, apply fixes to them and fail if any changes are applied.\nIf no changes are to be applied, the command returns success.\n\nResources\n---------\n\n* https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser/Typos\n* https://github.com/intgr/topy\n* https://pypi.python.org/pypi/topy\n* Rulesets for other languages: https://www.wikidata.org/wiki/Q6585066\n\nChangelog\n---------\n\n1.1.0 (2021-02-03)\n\n* Added colors to output. Thanks to Brian de Buiteach (@debuiteb) (#25)\n* Python 3.5 support is removed to allow newer syntax (#25)\n\n1.0.1 (2021-01-30)\n\n* Updated bundled ruleset from Wikipedia (#29)\n* Python 3.9 is now officially supported and tested in CI (#27)\n* Migrated tests from travis-ci.org to travis-ci.com (#28)\n\n1.0.0 (2020-09-08)\n\n* Updated bundled ruleset from Wikipedia (#23)\n* Removed Python 2.x and \u003c3.5 compatibility code (#22)\n* Fixed Travis CI configuration (#21)\n\n0.3.0 (2020-06-02)\n\nNote: This was the last release to support Python 2.7.\n\n* Updated bundled ruleset (thanks to Oscar Caballero)\n* Added --disable option to disable individual rules (thanks to Oscar Caballero)\n* Fixed behavior when replacement string contains $ symbol (thanks to Oscar Caballero)\n* Prefer the faster lxml parser when it is installed. lxml is now an optional dependency\n  (thanks to Oscar Caballero)\n* Added Python 3.7 support, deprecated Python 3.3 and 3.4.\n\n0.2.2 (2016-12-16)\n\n* Update bundled ruleset\n* Officially add Python 3.6 support\n\n0.2.1 (2016-07-15)\n\n* Update bundled ruleset\n* Update regex dependency version to avoid `regex issue #216`_\n* Officially add Python 3.5 support\n\n.. _`regex issue #216`: https://bitbucket.org/mrabarnett/mrab-regex/issues/216/invalid-match-when-using-negative\n\n0.2.0 (2015-09-09)\n\n* Several fixes with Unicode on Python 2\n* Can safely deal with filenames that are invalid Unicode\n* Update bundled ruleset\n* Fix a few warnings from used libraries\n\n0.1.0 (2014-08-24)\n\n* Initial public release\n\nContributing\n------------\n\nCode style:\n\n* In general follow the Python PEP-8_ coding style, except line length can go up to 120 chars.\n* Strings that have meaning for humans use double quotes (``\"``), otherwise single quotes (``'``). When in doubt, don't\n  worry about it.\n* Code should be compatible with both Python 2 and 3, preferably without version-specific conditionals.\n\nRun the test suite using ``python setup.py test``.\n\nSubmit your changes as pull requests on GitHub.\n\n.. _PEP-8: https://www.python.org/dev/peps/pep-0008/\n\nLicense\n-------\n\nThe Topy software is licensed under the MIT license (see LICENSE.txt)\n\nThe bundled ``retf.txt`` file, copied from `Wikipedia AutoWikiBrowser/Typos`_ by Wikipedia contributors is licensed\nunder CC-BY-SA_. See the page on Wikipedia for authorship information.\n\n.. _`Wikipedia AutoWikiBrowser/Typos`: https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser/Typos\n.. _CC-BY-SA: https://creativecommons.org/licenses/by-sa/3.0/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintgr%2Ftopy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fintgr%2Ftopy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintgr%2Ftopy/lists"}