xss-shield


Namexss-shield JSON
Version 1.2.2 PyPI version JSON
download
home_pageNone
SummaryA library used to stop your website from being attacked.
upload_time2024-07-11 03:30:11
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords attack django flask shield web xss
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ![xss-shield](https://github.com/GordonZhang2024/xss-shield/assets/159539185/bb32aad4-4e35-4fad-9a54-22fec0115b81)

A Python library to prevent your website from being attacked.

[PyPI](https://pypi.org/project/xss-shield/)
[GitHub](https://github.com/GordonZhang2024/xss-shield/tree/main)
[Docs](https://xss-shield.readthedocs.io/en/latest/)

![PyPI - Downloads](https://img.shields.io/pypi/dw/xss-shield)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/xss-shield)
![PyPI - Wheel](https://img.shields.io/pypi/wheel/xss-shield)
![GitHub top language](https://img.shields.io/github/languages/top/GordonZhang2024/xss-shield)
[![Documentation Status](https://readthedocs.org/projects/xss-shield/badge/?version=latest)](https://xss-shield.readthedocs.io/en/latest/?badge=latest)

## Installing
Type command:
```bash
$ pip install xss-shield
```

## Usage
Function `excape(s: str, strict=True)`
> ## Arguments
> s: the string to parse
>
> strict: if strict = False -> only replace `<script>` tag


example:
```python
import xss_shield

unsafe_str = '<script>alert("Bad.");</script>'
safe_str = xss_shield.escape(unsafe_str)
```

## Docs
**The docs are availible [here](https://xss-shield.readthedocs.io/en/latest/)**

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "xss-shield",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "attack, django, flask, shield, web, xss",
    "author": null,
    "author_email": "Gordon Zhang <jp20171211@163.com>",
    "download_url": "https://files.pythonhosted.org/packages/21/a1/21d54be3f93c840a921f659ed30a4a839fc33f46607bf02bfe1cb2210551/xss_shield-1.2.2.tar.gz",
    "platform": null,
    "description": "# ![xss-shield](https://github.com/GordonZhang2024/xss-shield/assets/159539185/bb32aad4-4e35-4fad-9a54-22fec0115b81)\n\nA Python library to prevent your website from being attacked.\n\n[PyPI](https://pypi.org/project/xss-shield/)\n[GitHub](https://github.com/GordonZhang2024/xss-shield/tree/main)\n[Docs](https://xss-shield.readthedocs.io/en/latest/)\n\n![PyPI - Downloads](https://img.shields.io/pypi/dw/xss-shield)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/xss-shield)\n![PyPI - Wheel](https://img.shields.io/pypi/wheel/xss-shield)\n![GitHub top language](https://img.shields.io/github/languages/top/GordonZhang2024/xss-shield)\n[![Documentation Status](https://readthedocs.org/projects/xss-shield/badge/?version=latest)](https://xss-shield.readthedocs.io/en/latest/?badge=latest)\n\n## Installing\nType command:\n```bash\n$ pip install xss-shield\n```\n\n## Usage\nFunction `excape(s: str, strict=True)`\n> ## Arguments\n> s: the string to parse\n>\n> strict: if strict = False -> only replace `<script>` tag\n\n\nexample:\n```python\nimport xss_shield\n\nunsafe_str = '<script>alert(\"Bad.\");</script>'\nsafe_str = xss_shield.escape(unsafe_str)\n```\n\n## Docs\n**The docs are availible [here](https://xss-shield.readthedocs.io/en/latest/)**\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A library used to stop your website from being attacked.",
    "version": "1.2.2",
    "project_urls": {
        "Docs": "https://xss-shield.readthedocs.io/en/latest/",
        "Homepage": "https://github.com/GordonZhang2024/xss-shield/",
        "Issues": "https://github.com/GordonZhang2024/xss-shield/issues"
    },
    "split_keywords": [
        "attack",
        " django",
        " flask",
        " shield",
        " web",
        " xss"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e58587c253d1410ee2e12167f33745b8f0589800c9c9918662a60abd47911706",
                "md5": "ef9ecbfa6cfb306a209a15a54ab0e20f",
                "sha256": "feadd1386f3e615527e45b8c876cfa0ca915b8fdffd341601e856b5a0e1bb401"
            },
            "downloads": -1,
            "filename": "xss_shield-1.2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ef9ecbfa6cfb306a209a15a54ab0e20f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 3672,
            "upload_time": "2024-07-11T03:30:05",
            "upload_time_iso_8601": "2024-07-11T03:30:05.085699Z",
            "url": "https://files.pythonhosted.org/packages/e5/85/87c253d1410ee2e12167f33745b8f0589800c9c9918662a60abd47911706/xss_shield-1.2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "21a121d54be3f93c840a921f659ed30a4a839fc33f46607bf02bfe1cb2210551",
                "md5": "22691ac2e01a4cdcc87dfce6de39075c",
                "sha256": "80345ebe13833f1d2433727d812f83217c7738507fe6ef41872a57272a426b53"
            },
            "downloads": -1,
            "filename": "xss_shield-1.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "22691ac2e01a4cdcc87dfce6de39075c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 60951,
            "upload_time": "2024-07-11T03:30:11",
            "upload_time_iso_8601": "2024-07-11T03:30:11.229891Z",
            "url": "https://files.pythonhosted.org/packages/21/a1/21d54be3f93c840a921f659ed30a4a839fc33f46607bf02bfe1cb2210551/xss_shield-1.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-11 03:30:11",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "GordonZhang2024",
    "github_project": "xss-shield",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "xss-shield"
}
        
Elapsed time: 0.99736s