Create spam mitigation models with ease using fully-customizable, object oriented components.
Project description
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.
Installation
You can install spamfilter by cloning the GitHub repository or using pip:
pip install spamfilter
Usage
Define a machine using several spam filters stacked onto each other.
from spamfilter 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for spamfilter-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 792447e6466f72e9fb1ecf847393a8c7864b31712975c3ac087c3d1c4f06efe4 |
|
MD5 | 711fc1125e20c9afe5531830fb137c40 |
|
BLAKE2b-256 | 3e8fb970fe4fbada9e51d900da21beb84f674de2d180f11363bb512d4c159c37 |