skip to navigation
skip to content

Not Logged In

wsgiakismet 0.1

Akismet SPAM blocking WSGI middleware.

Validates form submissions against the Akismet service
to verify that they are not spam.

Simple usage example:

import cgi
from wsgiakismet import akismet

# Wordpress API Key and website name are required arguments
@akisimet('3489012ab121', 'http://blog.example.com/')
def app(env, start_response):
    usersub = cgi.parse(fp=env['wsgi.input'], environ=env)
    start_response('200 OK', [('Content-type', 'text/plain')])
    return ['Comment is %s' % usersub['comment'][0]]
File Type Py Version Size # downloads
wsgiakismet-0.1-py2.5.egg (md5) Python Egg 2.5 10KB 321
wsgiakismet-0.1.win32.exe (md5) MS Windows installer 2.4 66KB 216
wsgiakismet-0.1.tar.gz (md5) Source 8KB 150
wsgiakismet-0.1-py2.4.egg (md5) Python Egg 2.4 10KB 334
wsgiakismet-0.1.tar.bz2 (md5) Source 8KB 172
wsgiakismet-0.1.zip (md5) Source 11KB 126