# aiohttp-raw
[](https://pypi.org/project/aiohttp-raw/)
[](https://pepy.tech/project/aiohttp-raw)

Use [aiohttp](https://docs.aiohttp.org/en/stable/) to send HTTP raw sockets (To Test RFC Compliance)

## Usage
```python
import asyncio
import aiohttp_raw
async def main():
req = b"GET /get HTTP/1.1\r\nHost: httpbin.org\r\n\r\n"
async with aiohttp_raw.ClientSession() as session:
async with session.raw("http://httpbin.org/get", data=req) as response:
print(await response.text())
loop = asyncio.new_event_loop()
loop.run_until_complete(main())
```
## Installation
### Prerequisites
* Python 3.8+
```shell
pip3 install aiohttp-raw
```
```shell
# speedups
pip install aiohttp[speedups]
````
```shell
# socks
pip install aiohttp[socks]
```
```shell
# speedups-socks
pip install aiohttp[speedups-socks]
```
Raw data
{
"_id": null,
"home_page": "https://github.com/realgam3/aiohttp-raw",
"name": "aiohttp-raw",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "",
"author": "Tomer Zait (realgam3)",
"author_email": "realgam3@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/9c/b6/b3e4f8c00891b6bfcf4123468fd130aad40127ed1c23d720499001a2ad5b/aiohttp-raw-0.1.0.tar.gz",
"platform": "any",
"description": "# aiohttp-raw\n[](https://pypi.org/project/aiohttp-raw/)\n[](https://pepy.tech/project/aiohttp-raw)\n \n\nUse [aiohttp](https://docs.aiohttp.org/en/stable/) to send HTTP raw sockets (To Test RFC Compliance)\n\n\n\n## Usage\n```python\nimport asyncio\nimport aiohttp_raw\n\n\nasync def main():\n req = b\"GET /get HTTP/1.1\\r\\nHost: httpbin.org\\r\\n\\r\\n\"\n async with aiohttp_raw.ClientSession() as session:\n async with session.raw(\"http://httpbin.org/get\", data=req) as response:\n print(await response.text())\n\nloop = asyncio.new_event_loop()\nloop.run_until_complete(main())\n```\n\n## Installation\n### Prerequisites\n* Python 3.8+\n\n```shell\npip3 install aiohttp-raw\n```\n\n```shell\n# speedups\npip install aiohttp[speedups]\n````\n\n```shell\n# socks\npip install aiohttp[socks]\n```\n\n```shell\n# speedups-socks\npip install aiohttp[speedups-socks]\n```\n",
"bugtrack_url": null,
"license": "Apache 2.0",
"summary": "HTTP communication through raw sockets using aiohttp for RFC compliance testing",
"version": "0.1.0",
"project_urls": {
"Homepage": "https://github.com/realgam3/aiohttp-raw",
"Source": "https://github.com/realgam3/aiohttp-raw"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9fd163bfb381d848bbd1bf9ec11ecce29a932332a8c92b1c768ab28b8219175c",
"md5": "2bf1ea718f3766040edd8389ae88ccdb",
"sha256": "eb2047b897068020c64cd231d63fe20f965002cfeb3319ac38f9bfadc00d608d"
},
"downloads": -1,
"filename": "aiohttp_raw-0.1.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "2bf1ea718f3766040edd8389ae88ccdb",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": ">=3.8",
"size": 8634,
"upload_time": "2024-01-01T10:44:36",
"upload_time_iso_8601": "2024-01-01T10:44:36.059105Z",
"url": "https://files.pythonhosted.org/packages/9f/d1/63bfb381d848bbd1bf9ec11ecce29a932332a8c92b1c768ab28b8219175c/aiohttp_raw-0.1.0-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9cb6b3e4f8c00891b6bfcf4123468fd130aad40127ed1c23d720499001a2ad5b",
"md5": "5c6f30dabd934e49cc20119cc78ad842",
"sha256": "498211e3891472b2096185969256bb9f42581ab05e36e18c9e10b18a6f1df9f7"
},
"downloads": -1,
"filename": "aiohttp-raw-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "5c6f30dabd934e49cc20119cc78ad842",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 8113,
"upload_time": "2024-01-01T10:44:37",
"upload_time_iso_8601": "2024-01-01T10:44:37.662034Z",
"url": "https://files.pythonhosted.org/packages/9c/b6/b3e4f8c00891b6bfcf4123468fd130aad40127ed1c23d720499001a2ad5b/aiohttp-raw-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-01 10:44:37",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "realgam3",
"github_project": "aiohttp-raw",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "aiohttp-raw"
}