skip to navigation
skip to content

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 Uploaded on Size # downloads
wsgiakismet-0.1-py2.5.egg (md5) Python Egg 2.5 2006-12-11 01:16:09 10KB 503
wsgiakismet-0.1.tar.bz2 (md5) Source 2006-11-21 21:42:39 8KB 314
wsgiakismet-0.1.win32.exe (md5) MS Windows installer 2.4 2006-11-21 21:42:57 66KB 287
wsgiakismet-0.1-py2.4.egg (md5) Python Egg 2.4 2006-11-21 21:40:14 10KB 514
wsgiakismet-0.1.zip (md5) Source 2006-11-21 21:43:07 11KB 223
wsgiakismet-0.1.tar.gz (md5) Source 2006-11-21 21:42:47 8KB 238

Log in to rate this package.