xss-shield


Namexss-shield JSON
Version 1.2.0 PyPI version JSON
download
home_pageNone
SummaryA library used to stop your website from being attacked.
upload_time2024-06-22 02:44:37
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
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/df/21/649671cf99bccf2e2f262c51cd9186e15ac77206e887261fcf8e5ec63ead/xss_shield-1.2.0.tar.gz",
    "platform": null,
    "description": "# xss-shield\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.0",
    "project_urls": {
        "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": "29c0d14652fb02e57a55b29fb12e539e21387b739a3edd877911624a850b6fc9",
                "md5": "91a3016239e6fd2c21911fcb02f3f782",
                "sha256": "8df96d4976fde376dcc1517c30988c88e805483718800b0810bbaab9cdd4d9e6"
            },
            "downloads": -1,
            "filename": "xss_shield-1.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "91a3016239e6fd2c21911fcb02f3f782",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 3590,
            "upload_time": "2024-06-22T02:44:33",
            "upload_time_iso_8601": "2024-06-22T02:44:33.106879Z",
            "url": "https://files.pythonhosted.org/packages/29/c0/d14652fb02e57a55b29fb12e539e21387b739a3edd877911624a850b6fc9/xss_shield-1.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "df21649671cf99bccf2e2f262c51cd9186e15ac77206e887261fcf8e5ec63ead",
                "md5": "25fbc0372c8e3ad77967fcb63b969843",
                "sha256": "21c1554ee8d360af2253e0704758fcd05a883cd38525d34b1e6c9f7c0a794fb8"
            },
            "downloads": -1,
            "filename": "xss_shield-1.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "25fbc0372c8e3ad77967fcb63b969843",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 6156,
            "upload_time": "2024-06-22T02:44:37",
            "upload_time_iso_8601": "2024-06-22T02:44:37.726275Z",
            "url": "https://files.pythonhosted.org/packages/df/21/649671cf99bccf2e2f262c51cd9186e15ac77206e887261fcf8e5ec63ead/xss_shield-1.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-22 02:44:37",
    "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.28178s