{"id":25179322,"url":"https://github.com/mags0ft/spamfilter","last_synced_at":"2025-07-03T14:41:34.955Z","repository":{"id":156735858,"uuid":"631547701","full_name":"mags0ft/spamfilter","owner":"mags0ft","description":"Streamlined, object-oriented and fully customizable python spam filter library.","archived":false,"fork":false,"pushed_at":"2025-06-22T19:50:06.000Z","size":1193,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-22T20:35:29.073Z","etag":null,"topics":["spam","spam-classification","spam-detection","spam-filtering","spam-protection"],"latest_commit_sha":null,"homepage":"https://mags0ft.github.io/spamfilter/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mags0ft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-04-23T11:21:34.000Z","updated_at":"2025-06-22T19:50:09.000Z","dependencies_parsed_at":"2024-02-07T09:40:25.457Z","dependency_job_id":"276f7729-cbde-41ff-9c81-d0b93fe03048","html_url":"https://github.com/mags0ft/spamfilter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mags0ft/spamfilter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mags0ft%2Fspamfilter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mags0ft%2Fspamfilter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mags0ft%2Fspamfilter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mags0ft%2Fspamfilter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mags0ft","download_url":"https://codeload.github.com/mags0ft/spamfilter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mags0ft%2Fspamfilter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261365421,"owners_count":23147812,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["spam","spam-classification","spam-detection","spam-filtering","spam-protection"],"created_at":"2025-02-09T15:19:16.214Z","updated_at":"2025-07-03T14:41:34.943Z","avatar_url":"https://github.com/mags0ft.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/mags0ft/spamfilter/master/docs/assets/icon-white-box.png\" alt=\"Spamfilter logo\" width=350\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003espamfilter\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg alt=\"PyPI - Downloads\" src=\"https://img.shields.io/pypi/dm/spamfilter?style=for-the-badge\u0026logo=pypi\u0026labelColor=%231e1e1e\" /\u003e\n    \u003cimg alt=\"GitHub Actions Workflow Status\" src=\"https://img.shields.io/github/actions/workflow/status/mags0ft/spamfilter/python-package.yml?style=for-the-badge\u0026logo=python\u0026labelColor=%231e1e1e\" /\u003e\n    \u003cimg alt=\"PyPI - License\" src=\"https://img.shields.io/pypi/l/spamfilter?style=for-the-badge\u0026labelColor=%231e1e1e\" /\u003e\n\u003c/p\u003e\n\nThe `spamfilter` module is a lightweight, fast and straightforward Python package that helps you to build your own [spam filtering pipelines](https://mags0ft.github.io/spamfilter/pipelines/) in order to keep your applications featuring user-generated content clean.\n\nIt's object-oriented and makes a quick, concise approach to remove spam easy. `spamfilter` is highly configurable and ships with deep integrations for [third-party APIs](https://mags0ft.github.io/spamfilter/filters/#spamfilter.filters.API) and language models via [Ollama](https://mags0ft.github.io/spamfilter/filters/#spamfilter.filters.Ollama).\n\n---\n\n**Important links**\n- [🌎 Website and documentation](https://mags0ft.github.io/spamfilter/)\n- [🔓 Report a security vulnerability](https://github.com/mags0ft/spamfilter/security/advisories/new)\n- [🚩 Create a new issue](https://github.com/mags0ft/spamfilter/issues/new/choose)\n- [👩‍💻 How to contribute](https://mags0ft.github.io/spamfilter/contributing/)\n\n## Installation\n\nYou can [install spamfilter](https://mags0ft.github.io/spamfilter/installation/) by cloning the GitHub repository, downloading it from the GitHub page or using pip - which is the recommended approach:\n\n```bash\npip install spamfilter\n```\n\nPlease see the [installation guide](https://mags0ft.github.io/spamfilter/installation/) for more information on how to install `spamfilter` and its dependencies, especially if you plan to use API or Ollama functionality.\n\n## Usage\n\nDefine a [pipeline](https://mags0ft.github.io/spamfilter/pipelines/) using several spam [filters](https://mags0ft.github.io/spamfilter/filters/) stacked onto each other.\n\n```python\nfrom spamfilter.filters import Length, SpecialChars\nfrom spamfilter.pipelines import Pipeline\n\n# create a new pipeline\nm = Pipeline([\n    # length of 10 to 200 chars, crop if needed\n    Length(min_length=10, max_length=200, mode=\"crop\"),\n    # limit use of special characters\n    SpecialChars(mode=\"normal\")\n])\n\n# test a string against it\nTEST_STRING = \"This is a test string.\"\nprint(m.check(TEST_STRING).passed)\n```\n\nOutput:\n\n```\nTrue\n```\n\n## License\n\nThis project is licensed under the MIT License, as declared in the [`LICENSE` file](./LICENSE).\n\n## Contributing\n\nFeel free to contribute to the project using the GitHub repository. Additions to the spam filters, pipelines and documentation are always welcome!\n\nLearn more [here](https://mags0ft.github.io/spamfilter/contributing/) if you're interested in helping out!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmags0ft%2Fspamfilter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmags0ft%2Fspamfilter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmags0ft%2Fspamfilter/lists"}