Most users will want to simply install the latest version, hosted on PyPI:

pip install sweepea

You’ll need to ensure that Cython is installed in order to compile the shared library. Furthermore, your Python will need to be compiled with support for sqlite3 or you’ll need to install pysqlite.

Installing with git

The project is hosted at and can be installed using git:

git clone
cd sweepea
python build
python install


On some systems you may need to use sudo python install to install peewee system-wide.

Running tests

You can test your installation by running the test suite.

python test

# Or run the test module directly: