Skip to main content

Create spam mitigation models with ease using fully-customizable, object oriented components.

Project description

Spamfilter Logo

spamfilter

The spamfilter module is a lightweight, fast and straightforward way to build your own spam filtering machines in order to keep applications using user-generated content clean.

It's object-oriented and makes a quick, yet concise approach to remove spam easy.


Important links


Installation

You can install spamfilter by cloning the GitHub repository, downloading it from the GitHub page or using pip:

$ pip install spamfilter

Usage

Define a machine using several spam filters stacked onto each other.

from spamfilter.filters import Length, Symbols
from spamfilter.machines import Machine

m = Machine([
   Length(min_length=10, max_length=200, mode="crop"),
   Symbols(mode="normal")
])

TEST_STRING = "This is a test string."
print(m.check(TEST_STRING).passed)

License

This project is licensed under the MIT License as found in the LICENSE file.

Contributing

Feel free to contribute to the project using the GitHub repository. Additions to the spam filters, machines and documentation are always welcome!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spamfilter-1.0.0.tar.gz (258.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spamfilter-1.0.0-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file spamfilter-1.0.0.tar.gz.

File metadata

  • Download URL: spamfilter-1.0.0.tar.gz
  • Upload date:
  • Size: 258.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for spamfilter-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2f9c6478536624e1713071ab3fb7fdf942d7e929031760a4bb776f4d8d739141
MD5 a871072bdf28353463942ff708db1710
BLAKE2b-256 92dd603e49fb38691def75c2c8aeb7bf6a7e26dca6913cee0fe0f3795a4a9b7f

See more details on using hashes here.

Provenance

The following attestation bundles were made for spamfilter-1.0.0.tar.gz:

Publisher: python-publish.yml on mags0ft/spamfilter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file spamfilter-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: spamfilter-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for spamfilter-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 55fda4b1b98da694a926becd3ebf364e8ef1045f1c5a805fc5ba099daee9d38c
MD5 7cd2b67e7207f8e0379bb0dd48b4df15
BLAKE2b-256 e2c53fdb54e2a0940c82bd7d6362ff8614003a97304b7470a45dafa02a6ff75c

See more details on using hashes here.

Provenance

The following attestation bundles were made for spamfilter-1.0.0-py3-none-any.whl:

Publisher: python-publish.yml on mags0ft/spamfilter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page