skip to navigation
skip to content

Not Logged In

PyMollom 0.1

A Python library for the Mollom anti-spam service

A Python library for the Mollom anti-spam service.


from Mollom import MollomAPI
from Mollom import MollomFault

def content_is_spam(content):
    mollom_api = MollomAPI(
    if not mollom_api.verifyKey():
        raise MollomFault('Your MOLLOM credentials are invalid.')

    cc = mollom_api.checkContent(postBody=content)
    # cc['spam']: 1 for ham, 2 for spam, 3 for unsure;
    if cc['spam'] == 2:
        return True
    return False
File Type Py Version Uploaded on Size
PyMollom-0.1.tar.gz (md5) Source 2012-01-27 7KB
  • Downloads (All Versions):
  • 4 downloads in the last day
  • 35 downloads in the last week
  • 132 downloads in the last month