Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Django’s genetic spam inspector library via Akismet

Install

sudo pip install django-spaminspector

or

sudo pip install git+git://github.com/lambdalisue/django-spaminspector.git#egg=django-spaminspector

How to Use

  1. First, you need to specified SPAMINSPECTOR_AKISMET_KEY on settings.py

  2. Add spaminspector to INSTALLED_APPS on settings.py

  3. Add spaminspector.middleware.SpamInspectionMiddleware to MIDDLEWARE_CLASSES on settings.py

  4. Add view which you want to inspect to SPAMINSPECTOR_VIEWS The code below is a profile for django’s comment framework:

    SPAMINSPECTOR_VIEWS = (
        ('django.contrib.comments.views.comments.post_comment', {
            'comment_type': 'comment',
            'comment_author': lambda request: request.POST.get('name', ""),
            'comment_author_email': lambda request: request.POST.get('email', ""),
            'comment_author_url': lambda request: request.POST.get('url', ""),
            'comment_contents': lambda request: request.POST.get('comment', ""),
        }),
    )

Settings

SPAMINSPECTOR_VIEWS

the list of view and inspection_profile. default settings is for django comment framework.

SPAMINSPECTOR_AKISMET_KEY

the api key of Akismet of your url.

SPAMINSPECTOR_SPAM_TEMPLATE

an template uri. this template is used to show when comment is detected as spam. (optional)

Metadata

Release files for django-spaminspector 0.1rc4

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

Source distribution (sdist)

Source distribution for django-spaminspector 0.1rc4
File Size Uploaded Provenance
django-spaminspector-0.1rc4.tar.gz 7.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-spaminspector 0.1rc4
File Interpreter ABI Platform
django_spaminspector-0.1rc4-py2.7.egg Legacy Egg format - - Details

Total release size: 14.5 kB

Release files / django-spaminspector-0.1rc4.tar.gz

Download URL django-spaminspector-0.1rc4.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
81b10550e95335de3f4083d359afa18c1e684b5130e78920bb165f0b2cc394f2
BLAKE2b-256 checksum
How to use checksums
4244c2dcd3e6291f9465bee46a03715072e4a2e080f64622382b6dba25f365a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_spaminspector-0.1rc4-py2.7.egg

Download URL django_spaminspector-0.1rc4-py2.7.egg
Size 6.9 kB
Tags Egg
SHA-256 checksum
How to use checksums
11e91c26dc8d28706281a370b71c7c59c664b1f8e5738bc9fc04e9170cb46f06
BLAKE2b-256 checksum
How to use checksums
b4b5bc31f273e4d065d49f0994dfcd24fa45191ee9aa7975cae4d54f17b995b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-spaminspector 0.1rc4

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.

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