Metadata-Version: 1.0
Name: PyMollom
Version: 0.1
Summary: A Python library for the Mollom anti-spam service
Home-page: UNKNOWN
Author: UNKNOWN
Author-email: UNKNOWN
License: GPL
Description: ========
        PyMollom
        ========
        
        A Python library for the `Mollom`_ anti-spam service.
        
        
        Example: ::
        
          from Mollom import MollomAPI
          from Mollom import MollomFault
        
          def content_is_spam(content):
              mollom_api = MollomAPI(
                  publicKey=MOLLOM_PUBLIC_KEY,
                  privateKey=MOLLOM_PRIVATE_KEY)
              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;
              # http://mollom.com/blog/spam-vs-ham
              if cc['spam'] == 2:
                  return True
              return False
        
        
        .. _`Mollom`: http://mollom.com/
        
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Topic :: Text Processing :: Filters
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
