Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Akismet v1.1 module for Python.

Project Description


Pykismet3 fork. Support older versions of Python and improvements.

Supported API

The Following Akismet API Calls are currently supported:

  • Comment Check
  • Submit Ham
  • Submit Spam

Unsupported API

The following Akismet API Calls are not yet supported: * Key Verification


  1. Signup for Akismet and get yourself an API key at (You don’t need to pay)

  2. Install this library:

    pip install python-akismet
  3. Make some calls to Akismet (see example below to get started)


Import and instance Akismet.

from akismet import Akismet

# API KEY (first argument) is required. blog can be defined later.
akismet = Akismet('1ba29d6f120c', blog="",
                  user_agent="My Application Name/0.0.1")

Comment Check

akismet.check('', 'Firefox / COMMENT USER AGENT', comment_author='King Arthur',
              comment_author_email='', comment_author_url='',
              comment_content='The Lady of the Lake, her arm clad in the purest shimmering samite, '
                               'held aloft Excalibur from the bosom of the water, signifying by divine'
                               ' providence that I, Arthur, was to carry Excalibur. That is why I '
                               'am your king.', referrer='http://camelot-search/?q=Peasant+Woman')

Submit Ham

akismet.submit_ham('', 'FIREFOX / COMMENT USER AGENT', comment_author='Tim',
                   comment_content="Look, that rabbit's got a vicious streak a mile wide!"
                                   "It's a killer!")

Submit Spam

akismet.submit_spam('', 'FIREFOX / COMMENT USER AGENT', comment_author='Frenchman',
                    comment_content="You don't frighten us, English pig-dogs! Go and boil your "
                                    "bottoms, sons of a silly person! I blow my nose at you, "
                                    "so-called Ah-thoor Keeng, you and all your silly English "


The examples above show you pretty much everything you need to know.

For a full list of supported parameters for each API call, see

The code is only ~100 lines long anyway, so just look at ‘’‘akismet’‘’ if you aren’t sure about something.

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(9.3 kB) Copy SHA256 Hash SHA256
Source None Feb 11, 2017

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting