semvec/pypi-packages huggingface dataset:
wsgiakismet 0.1
Akismet SPAM blocking WSGI middleware.
License: BSD
Keywords: WSGI comment spam blocking blog middleware web HTTP

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]]
wsgiform 0.3
WSGI form parsing and validation middleware
License: BSD
Keywords: form HTML validation parsing WSGI middleware web HTTP

WSGI middleware for validating form submissions and parsing them into dictionaries, individual WSGI 'environ' dictionary entries, cgi.FieldStorage  instances, or keyword arguments passed to a WSGI application. Supports automatically escaping and sterilizing form submissions.

Simple wsgiform usage format example::

    from wsgiform import form

    @form()
    def app(environ, start_response):
        return environ['wsgiform.dict']['name']