Skip to main content

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

Metadata

Release files for PyMollom 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyMollom 0.1
File Size Uploaded Provenance Actions
PyMollom-0.1.tar.gz 7.3 kB Without provenance Details for PyMollom-0.1.tar.gz

Release files / PyMollom-0.1.tar.gz

Download URL PyMollom-0.1.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bd3f43129f569212a2a3309a7ba371d4d168b0af92ccb046f17550eb8c995c98
BLAKE2b-256 checksum
How to use checksums
160640a918884530fddc9f17db7dd9921e0f9d1b9f3638bee7e9d84aeeed88aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for PyMollom 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page