{"id":17866033,"url":"https://github.com/rnegron/django-profanity-check","last_synced_at":"2025-04-10T13:23:11.973Z","repository":{"id":41909801,"uuid":"184951732","full_name":"rnegron/django-profanity-check","owner":"rnegron","description":"A Django template filter that wraps around profanity-check","archived":false,"fork":false,"pushed_at":"2023-04-21T20:51:08.000Z","size":48,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T16:58:21.358Z","etag":null,"topics":["django","django-template","offensive-language","profanity","profanity-filter"],"latest_commit_sha":null,"homepage":"","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/rnegron.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-04T22:51:41.000Z","updated_at":"2024-12-07T23:56:36.000Z","dependencies_parsed_at":"2022-08-11T21:00:47.263Z","dependency_job_id":null,"html_url":"https://github.com/rnegron/django-profanity-check","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnegron%2Fdjango-profanity-check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnegron%2Fdjango-profanity-check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnegron%2Fdjango-profanity-check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnegron%2Fdjango-profanity-check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rnegron","download_url":"https://codeload.github.com/rnegron/django-profanity-check/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248225664,"owners_count":21068078,"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":["django","django-template","offensive-language","profanity","profanity-filter"],"created_at":"2024-10-28T09:26:36.381Z","updated_at":"2025-04-10T13:23:11.948Z","avatar_url":"https://github.com/rnegron.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## django-profanity-check\n\n\u003cp align=\"center\"\u003e\n\n[![Build Status](https://travis-ci.org/rnegron/django-profanity-check.svg?branch=master)](https://travis-ci.org/rnegron/django-profanity-check)\n[![codecov](https://codecov.io/gh/rnegron/django-profanity-check/branch/master/graph/badge.svg?token=4pA3WXfFpz)](https://codecov.io/gh/rnegron/django-profanity-check)\n[![pypi version](https://img.shields.io/pypi/v/django-profanity-check.svg)](https://pypi.org/project/django-profanity-check/)\n[![Packaged with poetry](https://img.shields.io/badge/package_manager-poetry-blue.svg)](https://poetry.eustace.io/)\n[![Code Style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)\n\n\u003c/p\u003e\n\nA Django template filter that wraps around [profanity-check](https://github.com/vzhou842/profanity-check).\n\n**Note**: `numpy`, `scipy`, and `scikit-learn` are all dependencies of `profanity-check`.\n\n## Usage\n\n1. Install with `pip`.\n\n   ```\n   pip install django-profanity-check\n   ```\n\n1. Add `profanity` to your `INSTALLED_APPS`.\n\n   ```python\n   # settings.py\n\n   INSTALLED_APPS = [ ..., 'profanity', ...]\n\n   ```\n\n1. Use it in a template!\n\n   ```python-django\n   {# ... #}\n\n   {% load profanity %}\n\n   {# ... #}\n\n   {% with sentence='Hey, fuck you!' %}\n      {{ sentence | censor }} {# Will result in: 'Hey, **** you!' #}\n   {% endwith %}\n\n   ```\n\n## Todo\n\n- [ ] Allow custom replacement characters\n- [ ] Allow custom replacement character length\n- [ ] Template tests\n\n## Credits\n\nVictor Zhou's [profanity-check](https://github.com/vzhou842/profanity-check) Python package does all the heavy lifting.\n\nInspired by [django-profanity-filter](https://github.com/ReconCubed/django-profanity-filter).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frnegron%2Fdjango-profanity-check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frnegron%2Fdjango-profanity-check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frnegron%2Fdjango-profanity-check/lists"}