TP-Requests


NameTP-Requests JSON
Version 2024.12.22 PyPI version JSON
download
home_pagehttps://github.com/truocphan/TP-Requests
SummarySend the HTTP/ MQTT/ WEBSOCKET Request
upload_time2024-12-22 15:50:18
maintainerNone
docs_urlNone
authorTP Cyber Security
requires_pythonNone
licenseMIT
keywords tpcybersec tp_requests tp_http_request tp_mqtt_request tp_websocket_request
VCS
bugtrack_url
requirements json-duplicate-keys TP-HTTP-Request-Response-Parser
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # TP-Requests

<p align="center">
	<a href="https://github.com/truocphan/TP-Requests/releases/"><img src="https://img.shields.io/github/release/truocphan/TP-Requests" height=30></a>
	<a href="#"><img src="https://img.shields.io/github/downloads/truocphan/TP-Requests/total" height=30></a>
	<a href="#"><img src="https://img.shields.io/github/stars/truocphan/TP-Requests" height=30></a>
	<a href="#"><img src="https://img.shields.io/github/forks/truocphan/TP-Requests" height=30></a>
	<a href="https://github.com/truocphan/TP-Requests/issues?q=is%3Aopen+is%3Aissue"><img src="https://img.shields.io/github/issues/truocphan/TP-Requests" height=30></a>
	<a href="https://github.com/truocphan/TP-Requests/issues?q=is%3Aissue+is%3Aclosed"><img src="https://img.shields.io/github/issues-closed/truocphan/TP-Requests" height=30></a>
	<br>
	<a href="#"><img src="https://img.shields.io/pypi/v/TP-Requests" height=30></a>
	<a href="#"><img src="https://img.shields.io/pypi/dm/TP-Requests" height=30></a>
</p>

## Installation
#### From PyPI:
```console
pip install TP-Requests
```
#### From Source:
```console
git clone https://github.com/truocphan/TP-Requests.git --branch <Branch/Tag>
cd TP-Requests
python setup.py build
python setup.py install
```

## Basic Usage
```
from TP_Requests.http import TP_HTTP_REQUEST

rawRequest = """GET /v1/promo/extension HTTP/2
Host: d2y7f743exec8w.cloudfront.net
Accept-Encoding: gzip, deflate
Accept: */*
Accept-Language: en-US;q=0.9,en;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.5845.97 Safari/537.36
Connection: close
Cache-Control: max-age=0

"""

httpRequest = TP_HTTP_REQUEST(rawRequest)

httpRequest.RequestParser.request_method = "POST"

print(httpRequest.sendRequest(Host="d2y7f743exec8w.cloudfront.net", Port=443, Scheme="https", proxy_server={"host":"127.0.0.1","port":8080}).dumps(indent=4))
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/truocphan/TP-Requests",
    "name": "TP-Requests",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "TPCyberSec, TP_Requests, TP_HTTP_REQUEST, TP_MQTT_REQUEST, TP_WEBSOCKET_REQUEST",
    "author": "TP Cyber Security",
    "author_email": "tpcybersec2023@gmail.com",
    "download_url": null,
    "platform": null,
    "description": "# TP-Requests\n\n<p align=\"center\">\n\t<a href=\"https://github.com/truocphan/TP-Requests/releases/\"><img src=\"https://img.shields.io/github/release/truocphan/TP-Requests\" height=30></a>\n\t<a href=\"#\"><img src=\"https://img.shields.io/github/downloads/truocphan/TP-Requests/total\" height=30></a>\n\t<a href=\"#\"><img src=\"https://img.shields.io/github/stars/truocphan/TP-Requests\" height=30></a>\n\t<a href=\"#\"><img src=\"https://img.shields.io/github/forks/truocphan/TP-Requests\" height=30></a>\n\t<a href=\"https://github.com/truocphan/TP-Requests/issues?q=is%3Aopen+is%3Aissue\"><img src=\"https://img.shields.io/github/issues/truocphan/TP-Requests\" height=30></a>\n\t<a href=\"https://github.com/truocphan/TP-Requests/issues?q=is%3Aissue+is%3Aclosed\"><img src=\"https://img.shields.io/github/issues-closed/truocphan/TP-Requests\" height=30></a>\n\t<br>\n\t<a href=\"#\"><img src=\"https://img.shields.io/pypi/v/TP-Requests\" height=30></a>\n\t<a href=\"#\"><img src=\"https://img.shields.io/pypi/dm/TP-Requests\" height=30></a>\n</p>\n\n## Installation\n#### From PyPI:\n```console\npip install TP-Requests\n```\n#### From Source:\n```console\ngit clone https://github.com/truocphan/TP-Requests.git --branch <Branch/Tag>\ncd TP-Requests\npython setup.py build\npython setup.py install\n```\n\n## Basic Usage\n```\nfrom TP_Requests.http import TP_HTTP_REQUEST\n\nrawRequest = \"\"\"GET /v1/promo/extension HTTP/2\nHost: d2y7f743exec8w.cloudfront.net\nAccept-Encoding: gzip, deflate\nAccept: */*\nAccept-Language: en-US;q=0.9,en;q=0.8\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.5845.97 Safari/537.36\nConnection: close\nCache-Control: max-age=0\n\n\"\"\"\n\nhttpRequest = TP_HTTP_REQUEST(rawRequest)\n\nhttpRequest.RequestParser.request_method = \"POST\"\n\nprint(httpRequest.sendRequest(Host=\"d2y7f743exec8w.cloudfront.net\", Port=443, Scheme=\"https\", proxy_server={\"host\":\"127.0.0.1\",\"port\":8080}).dumps(indent=4))\n```\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Send the HTTP/ MQTT/ WEBSOCKET Request",
    "version": "2024.12.22",
    "project_urls": {
        "Homepage": "https://github.com/truocphan/TP-Requests"
    },
    "split_keywords": [
        "tpcybersec",
        " tp_requests",
        " tp_http_request",
        " tp_mqtt_request",
        " tp_websocket_request"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5a0c6dfeb1e45f626a5656265973e442d63bd05cfc52b54c5a558f9f2ca95e8d",
                "md5": "d69d3933738ff56175b799712b307c8b",
                "sha256": "385e0a2c446207038800c6260a1b7fc777e4fdc26bc126f4ea6fd6dc59a869ac"
            },
            "downloads": -1,
            "filename": "TP_Requests-2024.12.22-py2-none-any.whl",
            "has_sig": false,
            "md5_digest": "d69d3933738ff56175b799712b307c8b",
            "packagetype": "bdist_wheel",
            "python_version": "py2",
            "requires_python": null,
            "size": 4499,
            "upload_time": "2024-12-22T15:50:18",
            "upload_time_iso_8601": "2024-12-22T15:50:18.006329Z",
            "url": "https://files.pythonhosted.org/packages/5a/0c/6dfeb1e45f626a5656265973e442d63bd05cfc52b54c5a558f9f2ca95e8d/TP_Requests-2024.12.22-py2-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "761da559103cadbbd28679e675c7e1d9e5621a4c555ed5130c22873db9640977",
                "md5": "8b604012c2c46d739cc8329f9001e0f4",
                "sha256": "5fdf095339d32eaacde3d8b91617bd3841654d86ca362948528d7c5b65392c20"
            },
            "downloads": -1,
            "filename": "TP_Requests-2024.12.22-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8b604012c2c46d739cc8329f9001e0f4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4513,
            "upload_time": "2024-12-22T15:50:20",
            "upload_time_iso_8601": "2024-12-22T15:50:20.267505Z",
            "url": "https://files.pythonhosted.org/packages/76/1d/a559103cadbbd28679e675c7e1d9e5621a4c555ed5130c22873db9640977/TP_Requests-2024.12.22-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-22 15:50:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "truocphan",
    "github_project": "TP-Requests",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "json-duplicate-keys",
            "specs": [
                [
                    ">=",
                    "2024.12.12"
                ]
            ]
        },
        {
            "name": "TP-HTTP-Request-Response-Parser",
            "specs": [
                [
                    ">=",
                    "2024.12.22"
                ]
            ]
        }
    ],
    "lcname": "tp-requests"
}
        
Elapsed time: 1.00948s