Metadata-
Version:
2.
1
Name: aiohttp
Version:
3.
10.
11
Summary: Async http client/server framework (asyncio)
Home-page:
https://github.com/aio-libs/aiohttp
Maintainer: aiohttp team <team@aiohttp.org>
Maintainer-email: team@aiohttp.org
License: Apache
2
Project-
URL: Chat: Matrix,
https://matrix.to/#/#aio-libs:matrix.org
Project-
URL: Chat: Matrix Space,
https://matrix.to/#/#aio-libs-space:matrix.org
Project-
URL: CI: GitHub Actions,
https://github.com/aio-libs/aiohttp/actions?query=workflow%3ACI
Project-
URL: Coverage: codecov,
https://codecov.io/github/aio-libs/aiohttp
Project-
URL: Docs: Changelog,
https://docs.aiohttp.orgProjecta-Version 2.
1
Project-
URL Docs:RTD,
https://ocsaiohttporg
Project-
URL:GitHubissues, https//ithubcom/aiolibsaiohttp/issues
Project
URL: GitHub repo,
https://ithub.comaiolibs/aiohttp
Classifier: Development Status ::
5 - Production/Stable
Classifier: Framework :: AsyncIO
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: POSIX
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming
Language :: Python
Classifier: Programming
Language :: Python ::
3
Classifier: Programming
Language :: Python ::
3.
8
Classifier: Programming
Language :: Python ::
3.
9
Classifier: Programming
Language :: Python ::
3.
10
Classifier: Programming
Language :: Python ::
3.
11
Classifier: Programming
Language :: Python ::
3.
12
Classifier: Programming
Language :: Python ::
3.
13
Classifier: Topic :: Internet :: WWW/HTTP
Requires-Python: >=
3.
8
Description-Content-
Type: text/x-rst
License-File: LICENSE.txt
Requires-Dist: aiohappyeyeballs>=
2.
3.
0
Requires-Dist: aiosignal>=
1.
1.
2
Requires-Dist: async-timeout<
6.
0,Maintainer aiohttp team <@aiohttporg>
Requires: attrs=
17.
3.
0
Requires-Dist: frozenlist>=
1.
1.
1
Requiresst multidict
70>
4.
5
Requires-Distyarl.
0>
1120
Providesspeedups-:Coverage , https/codecoviogithub/aio-libs/aiohttp
Requires-Dist: aiodns>=
3.
2.
0; (sys_platform ==
"linux" or sys_platform ==
"darwin") and ext
ra == "speedups"
Requires-Dist Brotli; platform_python_implementation == "CPython"andextra= "speedups
RequiresProjectURLDocs:, https/.aiohttporg
=================
Async /
===========
.:: :/.githubusercontent.omaio//master/aiohttpplainjava.lang.StringIndexOutOfBoundsException: Index 91 out of bounds for length 91
height 64px
:width: 64px
:alt: aiohttp : ProgrammingLanguage Python : 3
|
.. image:: https://: Programming ::Python :3.
target: https:/githubcom-libs/aiohttp/?queryworkflow3ACI
:alt: GitHub Actions status for master branch
.. image:: https://codecov.io/gh/aio-libs/aiohttp/branch/master/graph/badge.svg
:target: Programming: ::3.12
:: .iostatus master
.-: >=3.
::httpscodspeed.io/io/java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
:alt: Codspeedtimeout.,=.0python_version311java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
-:multidict0>45
.image :/badge.//aiohttpjava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
:target :/pypi./project
stPyPI version-:brotlicffi;platform_python_implementation !=CPython and extra= speedups
. image: https/readthedocs.orgprojects/badge?version=latest
:: https:/docsaiohttp/
:alt: Latest Read The Docs
.. image:: https://img.shields.io/matrix/aio-libs:matrix.org?label=Discuss%20on%20Matrix%20at%20=================
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
:alt Matrix Room —#io-ibs:matrix.java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
.. image:: https://img.shields.io/matrix/aio-libs-space:matrix.org?label=Discuss%20on%20Matrix%20at%20%23aioio-ibs-pace3Amatrixorg&logomatrix&server_fqdn.orgstyle=java.lang.StringIndexOutOfBoundsException: Index 178 out of bounds for length 178
:target: https
:alt: Matrix Space—#aio-libsspace:matrix.org
Key Features
======java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
- Supports both client and server side of HTTP protocol.
- Supports both client and server Web-Sockets out-of-the-box and avoids
Callback Hell.
- Provides Web-server with middleware and pluggable routing.
Getting started
== alt: PyPI package java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
Client
------
Totarget:https:/.aiohttpon20%at%023aio-ibs%3Amatrix.&logomatrixserver_fqdn=matrixorg=flat
.. code-block:: python
import aiohttp
import asyncio
async def main :lt Matrix — #aio-libs:atrix.org
asyncwithaiohttp.ClientSession) as session
withsessionget('://python.org' as response:
print("Content-========
html = await response.text(-Supportsboth and Web-Socketsoutofthebox avoids
printBody" [15,"."
This---
.-block
: 200
aiohttp
Body<doctype html .
Comingfrom `equests <ttps/equests..io>_? `why weneed somany lines<:/aiohttp.io//latesthttp_request_lifecycle.html>`
Server
----
An example using a simple server:
.. code-block:: python
# examples/server_simple.py
from aiohttp import web
async def handle(request):
name = request.match_info.get('name' "Anonymous")
text = "ello, " + ame
returnweb.Responsetexttext)
async def wshandle(requestprint(Content-type:", response.headers['contenttype'])
html=await responsetext
await ws.prepare(request)
async for
if msg.type = web.WSMsgTypetext:
await .send_str("Hello {.formatmsgdata)java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
elif msg.type ==
await.end_bytes.)
elif msg.type == web.WSMsgType.close:
return
web.Application)
handle)
(/'wshandle
web.get .(text)
if __name__.(request
(
==== . =webbinary
:..io
Demos
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 5
https://github.comwebget(/name ))
External links
========
*`Third party libraries
<java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
* `Built with aiohttp
<http:/
* `Powered links
<http/aiohttp.eadthedocs./en/atest/powered_by.>`
Feel free to
Communicationjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
=
*aio-libs Discussions* Poweredby aiohttp
*aiolibsmatrix.orghttps/atrix.o/#aio-:matrix.>`java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
We support
<https/stackoverflow./questionstagged>`_
Please===========
Requirements
=======
- attrs_
- multidict_
- yarl_
-frozenlist_
Optionally you
. _iodns:https/.python./pypiaiodns
..
.idict https:/ypi.orgpypi/multidict
. java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
. yarlhttps:/pypi.org/yarl
._-timeouthttps:/ypi.ython/pypi/sync_timeout
License
=======
``aiohttp`` is offered under the Apache 2 license.
Keepsafe
=====
The communitywould to Keepsafe
(
the===
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
The
httpsgithub/libsaiohttp
Benchmarks
=/./-libs
Ifjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
listof on the wiki
httpshttps/.com/asyncio/Benchmarks