Metadata-Version: 2.1
Name: tp-requests
Version: 2025.8.31
Summary: Send the HTTP/ MQTT/ WEBSOCKET Request
Author-email: TP Cyber Security <tpcybersec2023@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/TPCyberSec/TP-Requests
Keywords: TPCyberSec,TP_Requests,TP_HTTP_REQUEST,TP_MQTT_REQUEST,TP_WEBSOCKET_REQUEST
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: tp-http-request-response-parser>=2025.8.30

<div align="center">
	<h1>TP-Requests - PyPI</h1>
	<i>Send the HTTP/ MQTT/ WEBSOCKET Request</i>
	<br><br>
	<a href="https://github.com/TPCyberSec/TP-Requests/releases/"><img src="https://img.shields.io/github/release/TPCyberSec/TP-Requests" height=30></a>
	<a href="#"><img src="https://img.shields.io/github/downloads/TPCyberSec/TP-Requests/total" height=30></a>
	<a href="#"><img src="https://img.shields.io/github/stars/TPCyberSec/TP-Requests" height=30></a>
	<a href="#"><img src="https://img.shields.io/github/forks/TPCyberSec/TP-Requests" height=30></a>
	<a href="https://github.com/TPCyberSec/TP-Requests/issues?q=is%3Aopen+is%3Aissue"><img src="https://img.shields.io/github/issues/TPCyberSec/TP-Requests" height=30></a>
	<a href="https://github.com/TPCyberSec/TP-Requests/issues?q=is%3Aissue+is%3Aclosed"><img src="https://img.shields.io/github/issues-closed/TPCyberSec/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/pyversions/TP-Requests" height=30></a>
	<a href="#"><img src="https://img.shields.io/pypi/dm/TP-Requests" height=30></a>
</div>

---
# 🛠️ Installation
#### From PyPI:
```console
pip install tp-requests
```
#### From Source:
```console
git clone https://github.com/TPCyberSec/TP-Requests.git --branch <Branch/Tag>
cd TP-Requests
python -m build
python -m pip install dist/tp_requests-<version>-py3-none-any.whl
```

---
# 📘 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={"type":"http","host":"127.0.0.1","port":8080}))
```

---
# 👥 Contributors

---
# 📝 CHANGELOG

---
