Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
spell-checking strings and comments in Python source files
branch: develop
Failed to load latest commit information.
pysourcespellchecker Bump revision to 0.1.2.
.gitignore Initial commit. Add and
project.dict Add some real words to `project.dict` wordlist.
pysource-spellchecker Write back changed files and add some options for changing this. Bump revision to 0.1.2.


.. -*- mode: rst ; ispell-local-dictionary: "american" -*-


Spellcheck strings and comments in Python source files using Enchant

:Author:    Hartmut Goebel <>
:Version:   Version 0.1.2
:Copyright: 2012 by Hartmut Goebel
:Licence:   GNU Public Licence v3 (GPLv3)

`pysource-spellchecker` extracts all strings (including unicode
strings) and comments and passes them to the `enchant` spellchecker.


``pypsource-spellchecker`` <options> source-file ...


  -h, --help            show this help message and exit
  --language LANGUAGE   language to use for spellchecking, default: en_US
  --pwl PWL             personal wordlist to use, default: project.dict
  --no-pwl              do not use any personal wordlist.

Mode of operation
  --list                simply list all spellchecking errors (this is the
  --command-line, --cmd-line, --interactive
                        interactively check the spelling on the command line

How to handle changed files
By default pysource-spellchecker writes back changed files without backup.
Use this options to change this behaviour.

  --no-write            Don't write back modified files
  --diffs               Show diffs of the refactoring
  --backups             Write backups for modified files

Requirements and Installation

:Please note: This package is meant for developers. Even if there are
  some usable examples included, installations instructions are meant
  for developers.

`pysource-spellchecker` requires

* `Python`__ 2.3 or higher (tested with Python 2.6)
* `setuptools`__ or `distribute`__ for installation (see below)
* `PyEnchant`__ (which it self may have additional requirements)


Installing pysource-spellchecker

Since this package is meant for developers, we assume you have
experience in installing Python packages.

`pysource-spellchecker` is listed on `PyPI (Python Package Index)`__,
so you can install it using `easy_install` or `pip` as usual. Please
refer to the manuals of `easy_install` resp. `pip` for further


Alternatively you my download and unpack the source package of
`pysource-spellchecker` from and run::

   python ./ install

Something went wrong with that request. Please try again.