{"id":13734427,"url":"https://github.com/marksweb/django-nh3","last_synced_at":"2025-04-07T11:07:44.878Z","repository":{"id":95953316,"uuid":"608197173","full_name":"marksweb/django-nh3","owner":"marksweb","description":"Django integration with for nh3, Python binding to Ammonia HTML sanitizer Rust crate.","archived":false,"fork":false,"pushed_at":"2025-03-04T20:25:08.000Z","size":97,"stargazers_count":32,"open_issues_count":5,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-31T09:05:23.849Z","etag":null,"topics":["bleach","django","sanitize-html"],"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/marksweb.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-01T14:20:07.000Z","updated_at":"2025-03-04T20:25:10.000Z","dependencies_parsed_at":"2023-11-15T04:22:28.909Z","dependency_job_id":"5c336b92-d22f-4f1b-96e3-7fc865aa7c5b","html_url":"https://github.com/marksweb/django-nh3","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksweb%2Fdjango-nh3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksweb%2Fdjango-nh3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksweb%2Fdjango-nh3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksweb%2Fdjango-nh3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marksweb","download_url":"https://codeload.github.com/marksweb/django-nh3/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247640462,"owners_count":20971557,"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":["bleach","django","sanitize-html"],"created_at":"2024-08-03T03:00:55.612Z","updated_at":"2025-04-07T11:07:44.857Z","avatar_url":"https://github.com/marksweb.png","language":"Python","readme":"==========\ndjango-nh3\n==========\n\n|actions| |pypi| |black| |pre|\n\nDjango integration with for nh3, Python binding to Ammonia HTML sanitizer Rust crate.\n\n`nh3 docs`_\n\nRequirements\n------------\n\nPython 3.10 to 3.13 supported.\n\nDjango 3.2 to 5.1 supported.\n\n\n.. _nh3 docs: https://nh3.readthedocs.io/en/latest/?badge=latest\n\n\n\nContributing\n------------\n\nThe project is in it's infancy, setup because of `bleach becoming deprecated`_.\n\nIt is setup with pre-commit to maintain code quality. This includes black for formatting, ruff for linting \u0026 checks.\nThis is much like django, so currently referring to django's own `style docs`_ will be most helpful\n\nTo contribute, fork the repo and clone your fork to your machine. Then setup a virtual environment however you prefer to do this.\nThen run the following setup the basics:\n\n.. code-block:: bash\n\n   python -m pip install pre-commit tox-uv\n   pre-commit install\n\nTox is used to run tests locally and on github. The test requirements are generated using pip-tools via ``requirements/compile.py``.\n\n.. _style docs: https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/coding-style/#python-style\n.. _bleach becoming deprecated: https://bluesock.org/~willkg/blog/dev/bleach_6_0_0_deprecation.html\n\n\n.. |actions| image:: https://img.shields.io/github/actions/workflow/status/marksweb/django-nh3/main.yml?branch=main\u0026style=for-the-badge\n   :target: https://github.com/marksweb/django-nh3/actions?workflow=CI\n\n.. |pypi| image:: https://img.shields.io/pypi/v/django-nh3.svg?style=for-the-badge\n   :target: https://pypi.org/project/django-nh3/\n\n.. |black| image:: https://img.shields.io/badge/code%20style-black-000000.svg?style=for-the-badge\n   :target: https://github.com/psf/black\n\n.. |pre| image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\u0026logoColor=white\u0026style=for-the-badge\n   :target: https://github.com/pre-commit/pre-commit\n   :alt: pre-commit\n","funding_links":[],"categories":["Third-Party Packages"],"sub_categories":["General"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarksweb%2Fdjango-nh3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarksweb%2Fdjango-nh3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarksweb%2Fdjango-nh3/lists"}