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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f9c6478536624e1713071ab3fb7fdf942d7e929031760a4bb776f4d8d739141
|
|
| MD5 |
a871072bdf28353463942ff708db1710
|
|
| BLAKE2b-256 |
92dd603e49fb38691def75c2c8aeb7bf6a7e26dca6913cee0fe0f3795a4a9b7f
|
Provenance
The following attestation bundles were made for spamfilter-1.0.0.tar.gz:
Publisher:
python-publish.yml on mags0ft/spamfilter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spamfilter-1.0.0.tar.gz -
Subject digest:
2f9c6478536624e1713071ab3fb7fdf942d7e929031760a4bb776f4d8d739141 - Sigstore transparency entry: 197634583
- Sigstore integration time:
-
Permalink:
mags0ft/spamfilter@e08dc095e51303196c09749a378af4ced81aa07d -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/mags0ft
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@e08dc095e51303196c09749a378af4ced81aa07d -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55fda4b1b98da694a926becd3ebf364e8ef1045f1c5a805fc5ba099daee9d38c
|
|
| MD5 |
7cd2b67e7207f8e0379bb0dd48b4df15
|
|
| BLAKE2b-256 |
e2c53fdb54e2a0940c82bd7d6362ff8614003a97304b7470a45dafa02a6ff75c
|
Provenance
The following attestation bundles were made for spamfilter-1.0.0-py3-none-any.whl:
Publisher:
python-publish.yml on mags0ft/spamfilter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spamfilter-1.0.0-py3-none-any.whl -
Subject digest:
55fda4b1b98da694a926becd3ebf364e8ef1045f1c5a805fc5ba099daee9d38c - Sigstore transparency entry: 197634584
- Sigstore integration time:
-
Permalink:
mags0ft/spamfilter@e08dc095e51303196c09749a378af4ced81aa07d -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/mags0ft
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@e08dc095e51303196c09749a378af4ced81aa07d -
Trigger Event:
release
-
Statement type: