safescript


Namesafescript JSON
Version 1.0.2 PyPI version JSON
download
home_pagehttps://github.com/ishanoshada/safescript
SummaryA Python module for enhancing web application security
upload_time2023-10-23 09:41:34
maintainer
docs_urlNone
authorIshan Oshada
requires_python
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # SafeScript v1.0.2

SafeScript is a Python module designed to enhance the security of web applications by providing various functions to prevent common security vulnerabilities such as XSS and SQL Injection attacks.

## Features

- **sanitize_html**: Sanitize HTML content to prevent XSS attacks.
- **escape_html**: Escape special characters in HTML content.
- **sanitize_sql**: Sanitize SQL input to prevent SQL Injection attacks.
- **prevent_xss_and_sqli**: Prevent both XSS and SQL Injection attacks.

## Installation

You can install SafeScript using pip:

```bash
pip install safescript
```

## Usage

```python
from safescript import SafeScript

# Example Usage
input_data = "<script>alert('XSS Attack')</script>"
output = SafeScript.prevent_xss_and_sqli(input_data)
print(output)
```

## Functions

- **sanitize_html(input_html)**
   - Sanitize HTML content to prevent XSS attacks.

- **escape_html(input_html)**
   - Escape special characters in HTML content.

- **sanitize_sql(input_sql)**
   - Sanitize SQL input to prevent SQL Injection attacks.

- **prevent_xss_and_sqli(input_data)**
   - Prevent both XSS and SQL Injection attacks.

## Version History

- v1.0.2 (Current Version)
    - [List of changes in v1.0.2]

- v1.0.1
   - Initial release with basic security functions.


 
## Contributors

- [Ishan Oshada](https://github.com/ishanoshada)
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ishanoshada/safescript",
    "name": "safescript",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Ishan Oshada",
    "author_email": "ic31908@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/5f/6f/68056ea29eabf2a91922cb8eb757765aab1a5304d98dbc18ba5497bb0cc9/safescript-1.0.2.tar.gz",
    "platform": null,
    "description": "# SafeScript v1.0.2\n\nSafeScript is a Python module designed to enhance the security of web applications by providing various functions to prevent common security vulnerabilities such as XSS and SQL Injection attacks.\n\n## Features\n\n- **sanitize_html**: Sanitize HTML content to prevent XSS attacks.\n- **escape_html**: Escape special characters in HTML content.\n- **sanitize_sql**: Sanitize SQL input to prevent SQL Injection attacks.\n- **prevent_xss_and_sqli**: Prevent both XSS and SQL Injection attacks.\n\n## Installation\n\nYou can install SafeScript using pip:\n\n```bash\npip install safescript\n```\n\n## Usage\n\n```python\nfrom safescript import SafeScript\n\n# Example Usage\ninput_data = \"<script>alert('XSS Attack')</script>\"\noutput = SafeScript.prevent_xss_and_sqli(input_data)\nprint(output)\n```\n\n## Functions\n\n- **sanitize_html(input_html)**\n   - Sanitize HTML content to prevent XSS attacks.\n\n- **escape_html(input_html)**\n   - Escape special characters in HTML content.\n\n- **sanitize_sql(input_sql)**\n   - Sanitize SQL input to prevent SQL Injection attacks.\n\n- **prevent_xss_and_sqli(input_data)**\n   - Prevent both XSS and SQL Injection attacks.\n\n## Version History\n\n- v1.0.2 (Current Version)\n    - [List of changes in v1.0.2]\n\n- v1.0.1\n   - Initial release with basic security functions.\n\n\n \n## Contributors\n\n- [Ishan Oshada](https://github.com/ishanoshada)",
    "bugtrack_url": null,
    "license": "",
    "summary": "A Python module for enhancing web application security",
    "version": "1.0.2",
    "project_urls": {
        "Homepage": "https://github.com/ishanoshada/safescript"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5f6f68056ea29eabf2a91922cb8eb757765aab1a5304d98dbc18ba5497bb0cc9",
                "md5": "2756739e2ad47f9d733fd8d7711271d4",
                "sha256": "4ca3de6058404394a4be6a4ea69a169f69ba2f1ce10a7bf40897e1739a09e7b7"
            },
            "downloads": -1,
            "filename": "safescript-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "2756739e2ad47f9d733fd8d7711271d4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2934,
            "upload_time": "2023-10-23T09:41:34",
            "upload_time_iso_8601": "2023-10-23T09:41:34.398117Z",
            "url": "https://files.pythonhosted.org/packages/5f/6f/68056ea29eabf2a91922cb8eb757765aab1a5304d98dbc18ba5497bb0cc9/safescript-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-23 09:41:34",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ishanoshada",
    "github_project": "safescript",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "safescript"
}
        
Elapsed time: 0.62443s