dongyubin commited on
Commit
dbe832f
·
1 Parent(s): 3be0237
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitignore +1 -0
  2. app.py +18 -6
  3. requirements.txt +2 -1
  4. venv/Lib/site-packages/_distutils_hack/__init__.py +128 -0
  5. venv/Lib/site-packages/_distutils_hack/__pycache__/__init__.cpython-39.pyc +0 -0
  6. venv/Lib/site-packages/_distutils_hack/__pycache__/override.cpython-39.pyc +0 -0
  7. venv/Lib/site-packages/_distutils_hack/override.py +1 -0
  8. venv/Lib/site-packages/aiohttp-3.8.5.dist-info/INSTALLER +1 -0
  9. venv/Lib/site-packages/aiohttp-3.8.5.dist-info/LICENSE.txt +13 -0
  10. venv/Lib/site-packages/aiohttp-3.8.5.dist-info/METADATA +254 -0
  11. venv/Lib/site-packages/aiohttp-3.8.5.dist-info/RECORD +117 -0
  12. venv/Lib/site-packages/aiohttp-3.8.5.dist-info/WHEEL +5 -0
  13. venv/Lib/site-packages/aiohttp-3.8.5.dist-info/top_level.txt +1 -0
  14. venv/Lib/site-packages/aiohttp/.hash/_cparser.pxd.hash +1 -0
  15. venv/Lib/site-packages/aiohttp/.hash/_find_header.pxd.hash +1 -0
  16. venv/Lib/site-packages/aiohttp/.hash/_helpers.pyi.hash +1 -0
  17. venv/Lib/site-packages/aiohttp/.hash/_helpers.pyx.hash +1 -0
  18. venv/Lib/site-packages/aiohttp/.hash/_http_parser.pyx.hash +1 -0
  19. venv/Lib/site-packages/aiohttp/.hash/_http_writer.pyx.hash +1 -0
  20. venv/Lib/site-packages/aiohttp/.hash/_websocket.pyx.hash +1 -0
  21. venv/Lib/site-packages/aiohttp/.hash/hdrs.py.hash +1 -0
  22. venv/Lib/site-packages/aiohttp/__init__.py +216 -0
  23. venv/Lib/site-packages/aiohttp/__pycache__/__init__.cpython-39.pyc +0 -0
  24. venv/Lib/site-packages/aiohttp/__pycache__/abc.cpython-39.pyc +0 -0
  25. venv/Lib/site-packages/aiohttp/__pycache__/base_protocol.cpython-39.pyc +0 -0
  26. venv/Lib/site-packages/aiohttp/__pycache__/client.cpython-39.pyc +0 -0
  27. venv/Lib/site-packages/aiohttp/__pycache__/client_exceptions.cpython-39.pyc +0 -0
  28. venv/Lib/site-packages/aiohttp/__pycache__/client_proto.cpython-39.pyc +0 -0
  29. venv/Lib/site-packages/aiohttp/__pycache__/client_reqrep.cpython-39.pyc +0 -0
  30. venv/Lib/site-packages/aiohttp/__pycache__/client_ws.cpython-39.pyc +0 -0
  31. venv/Lib/site-packages/aiohttp/__pycache__/connector.cpython-39.pyc +0 -0
  32. venv/Lib/site-packages/aiohttp/__pycache__/cookiejar.cpython-39.pyc +0 -0
  33. venv/Lib/site-packages/aiohttp/__pycache__/formdata.cpython-39.pyc +0 -0
  34. venv/Lib/site-packages/aiohttp/__pycache__/hdrs.cpython-39.pyc +0 -0
  35. venv/Lib/site-packages/aiohttp/__pycache__/helpers.cpython-39.pyc +0 -0
  36. venv/Lib/site-packages/aiohttp/__pycache__/http.cpython-39.pyc +0 -0
  37. venv/Lib/site-packages/aiohttp/__pycache__/http_exceptions.cpython-39.pyc +0 -0
  38. venv/Lib/site-packages/aiohttp/__pycache__/http_parser.cpython-39.pyc +0 -0
  39. venv/Lib/site-packages/aiohttp/__pycache__/http_websocket.cpython-39.pyc +0 -0
  40. venv/Lib/site-packages/aiohttp/__pycache__/http_writer.cpython-39.pyc +0 -0
  41. venv/Lib/site-packages/aiohttp/__pycache__/locks.cpython-39.pyc +0 -0
  42. venv/Lib/site-packages/aiohttp/__pycache__/log.cpython-39.pyc +0 -0
  43. venv/Lib/site-packages/aiohttp/__pycache__/multipart.cpython-39.pyc +0 -0
  44. venv/Lib/site-packages/aiohttp/__pycache__/payload.cpython-39.pyc +0 -0
  45. venv/Lib/site-packages/aiohttp/__pycache__/payload_streamer.cpython-39.pyc +0 -0
  46. venv/Lib/site-packages/aiohttp/__pycache__/pytest_plugin.cpython-39.pyc +0 -0
  47. venv/Lib/site-packages/aiohttp/__pycache__/resolver.cpython-39.pyc +0 -0
  48. venv/Lib/site-packages/aiohttp/__pycache__/streams.cpython-39.pyc +0 -0
  49. venv/Lib/site-packages/aiohttp/__pycache__/tcp_helpers.cpython-39.pyc +0 -0
  50. venv/Lib/site-packages/aiohttp/__pycache__/test_utils.cpython-39.pyc +0 -0
.gitignore CHANGED
@@ -1 +1,2 @@
1
  .venv/
 
 
1
  .venv/
2
+ venv/
app.py CHANGED
@@ -4,15 +4,27 @@ import os
4
  from langchain.chains.question_answering import load_qa_chain
5
  from langchain.document_loaders import UnstructuredURLLoader
6
  from langchain import HuggingFaceHub
 
7
 
8
- os.environ["HUGGINGFACEHUB_API_TOKEN"] = "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"
9
 
10
- llm = HuggingFaceHub(repo_id="declare-lab/flan-alpaca-large", model_kwargs={"temperature":0.1, "max_length":512})
11
 
12
- os.environ["LANGCHAIN_TRACING_V2"] = "true"
13
- os.environ["LANGCHAIN_ENDPOINT"] = "https://api.smith.langchain.com"
14
- os.environ["LANGCHAIN_API_KEY"] = "ls__ae9b316f4ee9475b84f66c616344d713"
15
- os.environ["LANGCHAIN_PROJECT"] = "Sequential-Chain"
 
 
 
 
 
 
 
 
 
 
 
16
 
17
  def main():
18
 
 
4
  from langchain.chains.question_answering import load_qa_chain
5
  from langchain.document_loaders import UnstructuredURLLoader
6
  from langchain import HuggingFaceHub
7
+ import openai
8
 
9
+ # os.environ["HUGGINGFACEHUB_API_TOKEN"] = "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"
10
 
11
+ # llm = HuggingFaceHub(repo_id="declare-lab/flan-alpaca-large", model_kwargs={"temperature":0.1, "max_length":512})
12
 
13
+ # os.environ["LANGCHAIN_TRACING_V2"] = "true"
14
+ # os.environ["LANGCHAIN_ENDPOINT"] = "https://api.smith.langchain.com"
15
+ # os.environ["LANGCHAIN_API_KEY"] = "ls__ae9b316f4ee9475b84f66c616344d713"
16
+ # os.environ["LANGCHAIN_PROJECT"] = "Sequential-Chain"
17
+
18
+ openai.api_key = 'sk-siyoMOttFuCrzfdETrRFS7bz140Dk5DUklCIW3UyVTzooiKj'
19
+ openai.api_base = 'https://api.chatanywhere.com.cn'
20
+
21
+ llm = openai.Completion.create(
22
+ engine="text-davinci-003", # 使用 GPT-3.5 Turbo 引擎
23
+ max_tokens=50, # 设置生成的回复最大长度
24
+ temperature=0.7, # 控制生成回复的随机性
25
+ n=1, # 生成一个回复
26
+ stop=None, # 可选的停止标记,用于结束回复的生成
27
+ )
28
 
29
  def main():
30
 
requirements.txt CHANGED
@@ -1,4 +1,5 @@
1
  langchain
2
  huggingface_hub
3
  unstructured
4
- gradio
 
 
1
  langchain
2
  huggingface_hub
3
  unstructured
4
+ gradio
5
+ openai
venv/Lib/site-packages/_distutils_hack/__init__.py ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ import os
3
+ import re
4
+ import importlib
5
+ import warnings
6
+
7
+
8
+ is_pypy = '__pypy__' in sys.builtin_module_names
9
+
10
+
11
+ warnings.filterwarnings('ignore',
12
+ '.+ distutils .+ deprecated',
13
+ DeprecationWarning)
14
+
15
+
16
+ def warn_distutils_present():
17
+ if 'distutils' not in sys.modules:
18
+ return
19
+ if is_pypy and sys.version_info < (3, 7):
20
+ # PyPy for 3.6 unconditionally imports distutils, so bypass the warning
21
+ # https://foss.heptapod.net/pypy/pypy/-/blob/be829135bc0d758997b3566062999ee8b23872b4/lib-python/3/site.py#L250
22
+ return
23
+ warnings.warn(
24
+ "Distutils was imported before Setuptools, but importing Setuptools "
25
+ "also replaces the `distutils` module in `sys.modules`. This may lead "
26
+ "to undesirable behaviors or errors. To avoid these issues, avoid "
27
+ "using distutils directly, ensure that setuptools is installed in the "
28
+ "traditional way (e.g. not an editable install), and/or make sure "
29
+ "that setuptools is always imported before distutils.")
30
+
31
+
32
+ def clear_distutils():
33
+ if 'distutils' not in sys.modules:
34
+ return
35
+ warnings.warn("Setuptools is replacing distutils.")
36
+ mods = [name for name in sys.modules if re.match(r'distutils\b', name)]
37
+ for name in mods:
38
+ del sys.modules[name]
39
+
40
+
41
+ def enabled():
42
+ """
43
+ Allow selection of distutils by environment variable.
44
+ """
45
+ which = os.environ.get('SETUPTOOLS_USE_DISTUTILS', 'stdlib')
46
+ return which == 'local'
47
+
48
+
49
+ def ensure_local_distutils():
50
+ clear_distutils()
51
+ distutils = importlib.import_module('setuptools._distutils')
52
+ distutils.__name__ = 'distutils'
53
+ sys.modules['distutils'] = distutils
54
+
55
+ # sanity check that submodules load as expected
56
+ core = importlib.import_module('distutils.core')
57
+ assert '_distutils' in core.__file__, core.__file__
58
+
59
+
60
+ def do_override():
61
+ """
62
+ Ensure that the local copy of distutils is preferred over stdlib.
63
+
64
+ See https://github.com/pypa/setuptools/issues/417#issuecomment-392298401
65
+ for more motivation.
66
+ """
67
+ if enabled():
68
+ warn_distutils_present()
69
+ ensure_local_distutils()
70
+
71
+
72
+ class DistutilsMetaFinder:
73
+ def find_spec(self, fullname, path, target=None):
74
+ if path is not None:
75
+ return
76
+
77
+ method_name = 'spec_for_{fullname}'.format(**locals())
78
+ method = getattr(self, method_name, lambda: None)
79
+ return method()
80
+
81
+ def spec_for_distutils(self):
82
+ import importlib.abc
83
+ import importlib.util
84
+
85
+ class DistutilsLoader(importlib.abc.Loader):
86
+
87
+ def create_module(self, spec):
88
+ return importlib.import_module('setuptools._distutils')
89
+
90
+ def exec_module(self, module):
91
+ pass
92
+
93
+ return importlib.util.spec_from_loader('distutils', DistutilsLoader())
94
+
95
+ def spec_for_pip(self):
96
+ """
97
+ Ensure stdlib distutils when running under pip.
98
+ See pypa/pip#8761 for rationale.
99
+ """
100
+ if self.pip_imported_during_build():
101
+ return
102
+ clear_distutils()
103
+ self.spec_for_distutils = lambda: None
104
+
105
+ @staticmethod
106
+ def pip_imported_during_build():
107
+ """
108
+ Detect if pip is being imported in a build script. Ref #2355.
109
+ """
110
+ import traceback
111
+ return any(
112
+ frame.f_globals['__file__'].endswith('setup.py')
113
+ for frame, line in traceback.walk_stack(None)
114
+ )
115
+
116
+
117
+ DISTUTILS_FINDER = DistutilsMetaFinder()
118
+
119
+
120
+ def add_shim():
121
+ sys.meta_path.insert(0, DISTUTILS_FINDER)
122
+
123
+
124
+ def remove_shim():
125
+ try:
126
+ sys.meta_path.remove(DISTUTILS_FINDER)
127
+ except ValueError:
128
+ pass
venv/Lib/site-packages/_distutils_hack/__pycache__/__init__.cpython-39.pyc ADDED
Binary file (5.1 kB). View file
 
venv/Lib/site-packages/_distutils_hack/__pycache__/override.cpython-39.pyc ADDED
Binary file (236 Bytes). View file
 
venv/Lib/site-packages/_distutils_hack/override.py ADDED
@@ -0,0 +1 @@
 
 
1
+ __import__('_distutils_hack').do_override()
venv/Lib/site-packages/aiohttp-3.8.5.dist-info/INSTALLER ADDED
@@ -0,0 +1 @@
 
 
1
+ pip
venv/Lib/site-packages/aiohttp-3.8.5.dist-info/LICENSE.txt ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright aio-libs contributors.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
venv/Lib/site-packages/aiohttp-3.8.5.dist-info/METADATA ADDED
@@ -0,0 +1,254 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Metadata-Version: 2.1
2
+ Name: aiohttp
3
+ Version: 3.8.5
4
+ Summary: Async http client/server framework (asyncio)
5
+ Home-page: https://github.com/aio-libs/aiohttp
6
+ Maintainer: aiohttp team <[email protected]>
7
+ Maintainer-email: [email protected]
8
+ License: Apache 2
9
+ Project-URL: Chat: Matrix, https://matrix.to/#/#aio-libs:matrix.org
10
+ Project-URL: Chat: Matrix Space, https://matrix.to/#/#aio-libs-space:matrix.org
11
+ Project-URL: CI: GitHub Actions, https://github.com/aio-libs/aiohttp/actions?query=workflow%3ACI
12
+ Project-URL: Coverage: codecov, https://codecov.io/github/aio-libs/aiohttp
13
+ Project-URL: Docs: Changelog, https://docs.aiohttp.org/en/stable/changes.html
14
+ Project-URL: Docs: RTD, https://docs.aiohttp.org
15
+ Project-URL: GitHub: issues, https://github.com/aio-libs/aiohttp/issues
16
+ Project-URL: GitHub: repo, https://github.com/aio-libs/aiohttp
17
+ Classifier: Development Status :: 5 - Production/Stable
18
+ Classifier: Framework :: AsyncIO
19
+ Classifier: Intended Audience :: Developers
20
+ Classifier: License :: OSI Approved :: Apache Software License
21
+ Classifier: Operating System :: POSIX
22
+ Classifier: Operating System :: MacOS :: MacOS X
23
+ Classifier: Operating System :: Microsoft :: Windows
24
+ Classifier: Programming Language :: Python
25
+ Classifier: Programming Language :: Python :: 3
26
+ Classifier: Programming Language :: Python :: 3.6
27
+ Classifier: Programming Language :: Python :: 3.7
28
+ Classifier: Programming Language :: Python :: 3.8
29
+ Classifier: Programming Language :: Python :: 3.9
30
+ Classifier: Programming Language :: Python :: 3.10
31
+ Classifier: Topic :: Internet :: WWW/HTTP
32
+ Requires-Python: >=3.6
33
+ Description-Content-Type: text/x-rst
34
+ License-File: LICENSE.txt
35
+ Requires-Dist: attrs (>=17.3.0)
36
+ Requires-Dist: charset-normalizer (<4.0,>=2.0)
37
+ Requires-Dist: multidict (<7.0,>=4.5)
38
+ Requires-Dist: async-timeout (<5.0,>=4.0.0a3)
39
+ Requires-Dist: yarl (<2.0,>=1.0)
40
+ Requires-Dist: frozenlist (>=1.1.1)
41
+ Requires-Dist: aiosignal (>=1.1.2)
42
+ Requires-Dist: idna-ssl (>=1.0) ; python_version < "3.7"
43
+ Requires-Dist: asynctest (==0.13.0) ; python_version < "3.8"
44
+ Requires-Dist: typing-extensions (>=3.7.4) ; python_version < "3.8"
45
+ Provides-Extra: speedups
46
+ Requires-Dist: aiodns ; extra == 'speedups'
47
+ Requires-Dist: Brotli ; extra == 'speedups'
48
+ Requires-Dist: cchardet ; (python_version < "3.10") and extra == 'speedups'
49
+
50
+ ==================================
51
+ Async http client/server framework
52
+ ==================================
53
+
54
+ .. image:: https://raw.githubusercontent.com/aio-libs/aiohttp/master/docs/aiohttp-plain.svg
55
+ :height: 64px
56
+ :width: 64px
57
+ :alt: aiohttp logo
58
+
59
+ |
60
+
61
+ .. image:: https://github.com/aio-libs/aiohttp/workflows/CI/badge.svg
62
+ :target: https://github.com/aio-libs/aiohttp/actions?query=workflow%3ACI
63
+ :alt: GitHub Actions status for master branch
64
+
65
+ .. image:: https://codecov.io/gh/aio-libs/aiohttp/branch/master/graph/badge.svg
66
+ :target: https://codecov.io/gh/aio-libs/aiohttp
67
+ :alt: codecov.io status for master branch
68
+
69
+ .. image:: https://badge.fury.io/py/aiohttp.svg
70
+ :target: https://pypi.org/project/aiohttp
71
+ :alt: Latest PyPI package version
72
+
73
+ .. image:: https://readthedocs.org/projects/aiohttp/badge/?version=latest
74
+ :target: https://docs.aiohttp.org/
75
+ :alt: Latest Read The Docs
76
+
77
+ .. image:: https://img.shields.io/matrix/aio-libs:matrix.org?label=Discuss%20on%20Matrix%20at%20%23aio-libs%3Amatrix.org&logo=matrix&server_fqdn=matrix.org&style=flat
78
+ :target: https://matrix.to/#/%23aio-libs:matrix.org
79
+ :alt: Matrix Room — #aio-libs:matrix.org
80
+
81
+ .. image:: https://img.shields.io/matrix/aio-libs-space:matrix.org?label=Discuss%20on%20Matrix%20at%20%23aio-libs-space%3Amatrix.org&logo=matrix&server_fqdn=matrix.org&style=flat
82
+ :target: https://matrix.to/#/%23aio-libs-space:matrix.org
83
+ :alt: Matrix Space — #aio-libs-space:matrix.org
84
+
85
+
86
+ Key Features
87
+ ============
88
+
89
+ - Supports both client and server side of HTTP protocol.
90
+ - Supports both client and server Web-Sockets out-of-the-box and avoids
91
+ Callback Hell.
92
+ - Provides Web-server with middlewares and plugable routing.
93
+
94
+
95
+ Getting started
96
+ ===============
97
+
98
+ Client
99
+ ------
100
+
101
+ To get something from the web:
102
+
103
+ .. code-block:: python
104
+
105
+ import aiohttp
106
+ import asyncio
107
+
108
+ async def main():
109
+
110
+ async with aiohttp.ClientSession() as session:
111
+ async with session.get('http://python.org') as response:
112
+
113
+ print("Status:", response.status)
114
+ print("Content-type:", response.headers['content-type'])
115
+
116
+ html = await response.text()
117
+ print("Body:", html[:15], "...")
118
+
119
+ asyncio.run(main())
120
+
121
+ This prints:
122
+
123
+ .. code-block::
124
+
125
+ Status: 200
126
+ Content-type: text/html; charset=utf-8
127
+ Body: <!doctype html> ...
128
+
129
+ Coming from `requests <https://requests.readthedocs.io/>`_ ? Read `why we need so many lines <https://aiohttp.readthedocs.io/en/latest/http_request_lifecycle.html>`_.
130
+
131
+ Server
132
+ ------
133
+
134
+ An example using a simple server:
135
+
136
+ .. code-block:: python
137
+
138
+ # examples/server_simple.py
139
+ from aiohttp import web
140
+
141
+ async def handle(request):
142
+ name = request.match_info.get('name', "Anonymous")
143
+ text = "Hello, " + name
144
+ return web.Response(text=text)
145
+
146
+ async def wshandle(request):
147
+ ws = web.WebSocketResponse()
148
+ await ws.prepare(request)
149
+
150
+ async for msg in ws:
151
+ if msg.type == web.WSMsgType.text:
152
+ await ws.send_str("Hello, {}".format(msg.data))
153
+ elif msg.type == web.WSMsgType.binary:
154
+ await ws.send_bytes(msg.data)
155
+ elif msg.type == web.WSMsgType.close:
156
+ break
157
+
158
+ return ws
159
+
160
+
161
+ app = web.Application()
162
+ app.add_routes([web.get('/', handle),
163
+ web.get('/echo', wshandle),
164
+ web.get('/{name}', handle)])
165
+
166
+ if __name__ == '__main__':
167
+ web.run_app(app)
168
+
169
+
170
+ Documentation
171
+ =============
172
+
173
+ https://aiohttp.readthedocs.io/
174
+
175
+
176
+ Demos
177
+ =====
178
+
179
+ https://github.com/aio-libs/aiohttp-demos
180
+
181
+
182
+ External links
183
+ ==============
184
+
185
+ * `Third party libraries
186
+ <http://aiohttp.readthedocs.io/en/latest/third_party.html>`_
187
+ * `Built with aiohttp
188
+ <http://aiohttp.readthedocs.io/en/latest/built_with.html>`_
189
+ * `Powered by aiohttp
190
+ <http://aiohttp.readthedocs.io/en/latest/powered_by.html>`_
191
+
192
+ Feel free to make a Pull Request for adding your link to these pages!
193
+
194
+
195
+ Communication channels
196
+ ======================
197
+
198
+ *aio-libs discourse group*: https://aio-libs.discourse.group
199
+
200
+ *gitter chat* https://gitter.im/aio-libs/Lobby
201
+
202
+ We support `Stack Overflow
203
+ <https://stackoverflow.com/questions/tagged/aiohttp>`_.
204
+ Please add *aiohttp* tag to your question there.
205
+
206
+ Requirements
207
+ ============
208
+
209
+ - Python >= 3.6
210
+ - async-timeout_
211
+ - attrs_
212
+ - charset-normalizer_
213
+ - multidict_
214
+ - yarl_
215
+ - frozenlist_
216
+
217
+ Optionally you may install the cChardet_ and aiodns_ libraries (highly
218
+ recommended for sake of speed).
219
+
220
+ .. _charset-normalizer: https://pypi.org/project/charset-normalizer
221
+ .. _aiodns: https://pypi.python.org/pypi/aiodns
222
+ .. _attrs: https://github.com/python-attrs/attrs
223
+ .. _multidict: https://pypi.python.org/pypi/multidict
224
+ .. _frozenlist: https://pypi.org/project/frozenlist/
225
+ .. _yarl: https://pypi.python.org/pypi/yarl
226
+ .. _async-timeout: https://pypi.python.org/pypi/async_timeout
227
+ .. _cChardet: https://pypi.python.org/pypi/cchardet
228
+
229
+ License
230
+ =======
231
+
232
+ ``aiohttp`` is offered under the Apache 2 license.
233
+
234
+
235
+ Keepsafe
236
+ ========
237
+
238
+ The aiohttp community would like to thank Keepsafe
239
+ (https://www.getkeepsafe.com) for its support in the early days of
240
+ the project.
241
+
242
+
243
+ Source code
244
+ ===========
245
+
246
+ The latest developer version is available in a GitHub repository:
247
+ https://github.com/aio-libs/aiohttp
248
+
249
+ Benchmarks
250
+ ==========
251
+
252
+ If you are interested in efficiency, the AsyncIO community maintains a
253
+ list of benchmarks on the official wiki:
254
+ https://github.com/python/asyncio/wiki/Benchmarks
venv/Lib/site-packages/aiohttp-3.8.5.dist-info/RECORD ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ aiohttp-3.8.5.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
2
+ aiohttp-3.8.5.dist-info/LICENSE.txt,sha256=wUk-nxDVnR-6n53ygAjhVX4zz5-6yM4SY6ozk5goA94,601
3
+ aiohttp-3.8.5.dist-info/METADATA,sha256=F8Uk0oANi19Cqo3e6bbQX2Bnqkda7aSEm80oda4wcfg,7969
4
+ aiohttp-3.8.5.dist-info/RECORD,,
5
+ aiohttp-3.8.5.dist-info/WHEEL,sha256=eep6QWEFiQfg2wcclssb_WY-D33AnLYLnEKGA9Rn-VU,100
6
+ aiohttp-3.8.5.dist-info/top_level.txt,sha256=iv-JIaacmTl-hSho3QmphcKnbRRYx1st47yjz_178Ro,8
7
+ aiohttp/.hash/_cparser.pxd.hash,sha256=1tLMUc3IzMppOVKW99LKG1TD6szTXGSaCfHgiPOL9aA,108
8
+ aiohttp/.hash/_find_header.pxd.hash,sha256=TxG5w4etbVd6sfm5JWbdf5PW6LnuXRQnlMoFBVGKN2E,112
9
+ aiohttp/.hash/_helpers.pyi.hash,sha256=D1pTrCkUaJ3by1XeGH_nE-amt7XdjfRHcm9oRtoGhHQ,108
10
+ aiohttp/.hash/_helpers.pyx.hash,sha256=MA4zlNd5xukP4VDAbnoId0Azv8HxCpwLWie2gSMPLsw,108
11
+ aiohttp/.hash/_http_parser.pyx.hash,sha256=JL_wfi5dC1RsmNzr5iIeGRWZ86y0_iCucEgi5iYde9k,112
12
+ aiohttp/.hash/_http_writer.pyx.hash,sha256=oqW0CdYfKNwSX0PKREN8Qz_Mi4aaioGCIPbEvsaEgaM,112
13
+ aiohttp/.hash/_websocket.pyx.hash,sha256=8AcsJ5Tb8lZ9_QVXor_1Xbtl5igK1iP5rtEZZ0iA2AE,110
14
+ aiohttp/.hash/hdrs.py.hash,sha256=Vfr7WRlz3YbkgRFBfXksCI8mA7PXUMhs37jnv0kiqWQ,103
15
+ aiohttp/__init__.py,sha256=wq-wQWLO0yCoWRTuPVIBVU6Mof5FXwXubCGCPtPDfl4,7086
16
+ aiohttp/__pycache__/__init__.cpython-39.pyc,,
17
+ aiohttp/__pycache__/abc.cpython-39.pyc,,
18
+ aiohttp/__pycache__/base_protocol.cpython-39.pyc,,
19
+ aiohttp/__pycache__/client.cpython-39.pyc,,
20
+ aiohttp/__pycache__/client_exceptions.cpython-39.pyc,,
21
+ aiohttp/__pycache__/client_proto.cpython-39.pyc,,
22
+ aiohttp/__pycache__/client_reqrep.cpython-39.pyc,,
23
+ aiohttp/__pycache__/client_ws.cpython-39.pyc,,
24
+ aiohttp/__pycache__/connector.cpython-39.pyc,,
25
+ aiohttp/__pycache__/cookiejar.cpython-39.pyc,,
26
+ aiohttp/__pycache__/formdata.cpython-39.pyc,,
27
+ aiohttp/__pycache__/hdrs.cpython-39.pyc,,
28
+ aiohttp/__pycache__/helpers.cpython-39.pyc,,
29
+ aiohttp/__pycache__/http.cpython-39.pyc,,
30
+ aiohttp/__pycache__/http_exceptions.cpython-39.pyc,,
31
+ aiohttp/__pycache__/http_parser.cpython-39.pyc,,
32
+ aiohttp/__pycache__/http_websocket.cpython-39.pyc,,
33
+ aiohttp/__pycache__/http_writer.cpython-39.pyc,,
34
+ aiohttp/__pycache__/locks.cpython-39.pyc,,
35
+ aiohttp/__pycache__/log.cpython-39.pyc,,
36
+ aiohttp/__pycache__/multipart.cpython-39.pyc,,
37
+ aiohttp/__pycache__/payload.cpython-39.pyc,,
38
+ aiohttp/__pycache__/payload_streamer.cpython-39.pyc,,
39
+ aiohttp/__pycache__/pytest_plugin.cpython-39.pyc,,
40
+ aiohttp/__pycache__/resolver.cpython-39.pyc,,
41
+ aiohttp/__pycache__/streams.cpython-39.pyc,,
42
+ aiohttp/__pycache__/tcp_helpers.cpython-39.pyc,,
43
+ aiohttp/__pycache__/test_utils.cpython-39.pyc,,
44
+ aiohttp/__pycache__/tracing.cpython-39.pyc,,
45
+ aiohttp/__pycache__/typedefs.cpython-39.pyc,,
46
+ aiohttp/__pycache__/web.cpython-39.pyc,,
47
+ aiohttp/__pycache__/web_app.cpython-39.pyc,,
48
+ aiohttp/__pycache__/web_exceptions.cpython-39.pyc,,
49
+ aiohttp/__pycache__/web_fileresponse.cpython-39.pyc,,
50
+ aiohttp/__pycache__/web_log.cpython-39.pyc,,
51
+ aiohttp/__pycache__/web_middlewares.cpython-39.pyc,,
52
+ aiohttp/__pycache__/web_protocol.cpython-39.pyc,,
53
+ aiohttp/__pycache__/web_request.cpython-39.pyc,,
54
+ aiohttp/__pycache__/web_response.cpython-39.pyc,,
55
+ aiohttp/__pycache__/web_routedef.cpython-39.pyc,,
56
+ aiohttp/__pycache__/web_runner.cpython-39.pyc,,
57
+ aiohttp/__pycache__/web_server.cpython-39.pyc,,
58
+ aiohttp/__pycache__/web_urldispatcher.cpython-39.pyc,,
59
+ aiohttp/__pycache__/web_ws.cpython-39.pyc,,
60
+ aiohttp/__pycache__/worker.cpython-39.pyc,,
61
+ aiohttp/_cparser.pxd,sha256=rEtEshtn54wSf_ZCJ0EBjRyVBkIOv_oh17BcaNOd6V8,5188
62
+ aiohttp/_find_header.pxd,sha256=BFUSmxhemBtblqxzjzH3x03FfxaWlTyuAIOz8YZ5_nM,70
63
+ aiohttp/_headers.pxi,sha256=1MhCe6Un_KI1tpO85HnDfzVO94BhcirLanAOys5FIHA,2090
64
+ aiohttp/_helpers.cp39-win_amd64.pyd,sha256=J9DUBdHUuPcjWWmdgMVBbEAIkYLwq_8ieaQJF5a1mGA,39936
65
+ aiohttp/_helpers.pyi,sha256=2Hd5IC0Zf4YTEJ412suyyhsh1kVyVDv5g4stgyo2Ksc,208
66
+ aiohttp/_helpers.pyx,sha256=tgl7fZh0QMT6cjf4jSJ8iaO6DdQD3GON2-SH4N5_ETg,1084
67
+ aiohttp/_http_parser.cp39-win_amd64.pyd,sha256=ZbiZqoBOXhnR2OBLOEwW1yEarDYx33X6R5VUnHDSmsA,224768
68
+ aiohttp/_http_parser.pyx,sha256=txrqxUhnIjU2Z9iHjEbySR4O_sBRgHgTo5MiBJHu0oI,28608
69
+ aiohttp/_http_writer.cp39-win_amd64.pyd,sha256=USIvb7fNx2ru3ARIhXIPYnN9zdDkBcMJ4Uleo_ATk60,35840
70
+ aiohttp/_http_writer.pyx,sha256=8CBLytO2rx1kdpWe9HYSznhLXdeZWyE-3xI7jaGasag,4738
71
+ aiohttp/_websocket.cp39-win_amd64.pyd,sha256=9t2dN_XTCVXIkG0U4xc942AKJFnIyV8KchsQCqBCED8,24064
72
+ aiohttp/_websocket.pyx,sha256=o9J7yi9c2-jTBjE3dUkXxhDWKvRWJz5GZfyLsgJQa38,1617
73
+ aiohttp/abc.py,sha256=h_4OTYoks0wu64YIpvNPMFkFaVqh1cJ7HdygN1fAKp8,5712
74
+ aiohttp/base_protocol.py,sha256=u4ITEnXHJ88gNDngHxiU01ZPQhMy_m2eQTJx0cqwvXA,2831
75
+ aiohttp/client.py,sha256=vP-rZMty2GJbMeWqnwITHZQjdqtFTTGEJGGW9Ndv1gg,46342
76
+ aiohttp/client_exceptions.py,sha256=k-ys_A4QQW-IH4-fQIAYgBj6Zjjf2METxILp2cElMuk,9612
77
+ aiohttp/client_proto.py,sha256=3Cx_gH0ZZNNkVCzhnysBe09zbLhnN9jZX3gvqsp_SbE,8421
78
+ aiohttp/client_reqrep.py,sha256=DKI4Wq2DyHgr6k1IVnKbRoOwvHQXxo3emKYJEy8oIa0,38107
79
+ aiohttp/client_ws.py,sha256=70XQ5cWdvbwgA6tko-1GfhbSJ70bAHjm1OE4mWtWDw4,10816
80
+ aiohttp/connector.py,sha256=0haEAyoi5Ji3mlhqCIwpRqORBN-WLRjmG2bhletdcrs,52823
81
+ aiohttp/cookiejar.py,sha256=dih2tt5EPa_Z-Xp4oq3xmYYKBQKAIdM4JiZEKHPrvGU,14070
82
+ aiohttp/formdata.py,sha256=iySnD63XJwo4l1TT_KZiJGNzzmn0RtvvF2_FnJM32Uo,6278
83
+ aiohttp/hdrs.py,sha256=ygDnAqYCot8NMQyjck2r9CzpTspAOXpHknNl-yxIybY,4838
84
+ aiohttp/helpers.py,sha256=evbtkLDIbZ3oW8V3A5ODXQ8YPHTfk5t19AzZEKWhfnI,27276
85
+ aiohttp/http.py,sha256=YPu2yu8TQAiQfIiu9JpE4ICmE0D4ljADgLXtNFlEJnc,1870
86
+ aiohttp/http_exceptions.py,sha256=3ZhUm8uxBZ-LrC7F_32GL_OITKEqgFVMHg2_ozMUbwc,2784
87
+ aiohttp/http_parser.py,sha256=gokMNEZeTCHfA52a7LwiGxEShLHAOfSxbCq-8QWh9QU,34061
88
+ aiohttp/http_websocket.py,sha256=a7yQM4cQcM-DxhRITp8dT_0jfWxqbU-yTWTgqH8Zfpc,26000
89
+ aiohttp/http_writer.py,sha256=w0Q5-jEx3V40vuf4VAaKxSitEaiKIUyHRI_qUM0ado4,6131
90
+ aiohttp/locks.py,sha256=vp1Z4zx0SvooSffw88dkZ-7qpk2CqRf5vWh2dpKagTA,1177
91
+ aiohttp/log.py,sha256=zYUTvXsMQ9Sz1yNN8kXwd5Qxu49a1FzjZ_wQqriEc8M,333
92
+ aiohttp/multipart.py,sha256=DqB2JIhnmhpmC3x5KuYaDGPfS6a1yMixnyVRsVSOcDI,33274
93
+ aiohttp/payload.py,sha256=m-Zi365RNni5AvqqkVDcb682RaqsoGZ7Nq0iIIp6mCE,14097
94
+ aiohttp/payload_streamer.py,sha256=6bbqsfgysHzfUTJIUlqad1wRklVuLmNHVtScv_mWhGY,2187
95
+ aiohttp/py.typed,sha256=3VVwXUAWVEVX7sDwyYDnW5ZdBC9_Z9AJAFfLCleUW0k,8
96
+ aiohttp/pytest_plugin.py,sha256=26CllzLUw-JGrwfXYIK-XGbDMCDwbIaomV7Sk4WZVG4,12163
97
+ aiohttp/resolver.py,sha256=UWM-6HJkOLwkGveoesBnGv-pJePtpE7js6ujYi7XHoc,5252
98
+ aiohttp/streams.py,sha256=yWdQ0wIGIQCfI9OGdhzImtQKcUBRNfQ9Dw2pzXm-dCM,21418
99
+ aiohttp/tcp_helpers.py,sha256=K-hhGh3jd6qCEnHJo8LvFyfJwBjh99UKI7A0aSRVhj4,998
100
+ aiohttp/test_utils.py,sha256=gs74TWcysSMuhfAvae0Dy-jKkWVKBWKp2nLt_qfi3x0,22140
101
+ aiohttp/tracing.py,sha256=qOwPt4vyGRVlebUUSuOJ5Vc9cc4ZGOOPr5TuweOSoVE,15649
102
+ aiohttp/typedefs.py,sha256=E-iS7tNE3CrcMAjz5uiwr_Zlp4CKpCU99hzAKw08g14,1830
103
+ aiohttp/web.py,sha256=lzB4xbNvgULFAN6uxb1Yg63qAyIFgapIHYGk3z7uZeU,18669
104
+ aiohttp/web_app.py,sha256=QEkoioPMr8vLTFGgzGEdOWkX5xM9b44neR-cYyfjs6c,17727
105
+ aiohttp/web_exceptions.py,sha256=ZhwkxigtA1hmmxkVQTH9cTRgU_cz5wb-0Enm-dlj_v4,10539
106
+ aiohttp/web_fileresponse.py,sha256=tRRZyBNPL579Ac8Q2mSF7qjHIkV42z9VyVEkvQLOJlQ,11072
107
+ aiohttp/web_log.py,sha256=IxdzjN1glBIssfpWBv6cS9TtyyAaJF0hJHCqt7IxEtE,7765
108
+ aiohttp/web_middlewares.py,sha256=qmHNhOdhTtJZjChDiBlF9M-SGxF3vz2koDnxMPrlNCA,4256
109
+ aiohttp/web_protocol.py,sha256=VVlY1FBTEg5JxtDhYO7bvfamylBEpKffdJFSN9_6cC8,23078
110
+ aiohttp/web_request.py,sha256=nOKHoJdzco_41mfGHUclYrdoZKazD8dCiAbd0UOwQzU,29069
111
+ aiohttp/web_response.py,sha256=Ont7UsoFinG6fpLwuVTOLHHZDWZ5VM0uGFCOiUII-pk,28296
112
+ aiohttp/web_routedef.py,sha256=KrQtG7OzlE1ylPZf54yDJjBLl36nGvYl8Z9mA6SWayk,6368
113
+ aiohttp/web_runner.py,sha256=OGDcOLBeCZuOPNeTa7wi8bLll_7kzviMAx7vRgKs4UE,11538
114
+ aiohttp/web_server.py,sha256=peGS1H8OvZEd4LuB_hqTA_6HQhc4stFeYQIh4XCmZ2A,2112
115
+ aiohttp/web_urldispatcher.py,sha256=r6lC1U7puKU45VHcvQW5mJ6ienTBCi01ouz077kiJHQ,40703
116
+ aiohttp/web_ws.py,sha256=MqL1XuwXeh_xf3X9oAwvNGvVA3zvxcykR_O26EKkL0A,17631
117
+ aiohttp/worker.py,sha256=WlC9ItbJ3NPCHUFIJcbEGOQkC9kWcumURyxfcKYtqws,9032
venv/Lib/site-packages/aiohttp-3.8.5.dist-info/WHEEL ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.40.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp39-cp39-win_amd64
5
+
venv/Lib/site-packages/aiohttp-3.8.5.dist-info/top_level.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ aiohttp
venv/Lib/site-packages/aiohttp/.hash/_cparser.pxd.hash ADDED
@@ -0,0 +1 @@
 
 
1
+ ac4b44b21b67e78c127ff6422741018d1c9506420ebffa21d7b05c68d39de95f *D:/a/aiohttp/aiohttp/aiohttp/_cparser.pxd
venv/Lib/site-packages/aiohttp/.hash/_find_header.pxd.hash ADDED
@@ -0,0 +1 @@
 
 
1
+ 0455129b185e981b5b96ac738f31f7c74dc57f1696953cae0083b3f18679fe73 *D:/a/aiohttp/aiohttp/aiohttp/_find_header.pxd
venv/Lib/site-packages/aiohttp/.hash/_helpers.pyi.hash ADDED
@@ -0,0 +1 @@
 
 
1
+ d87779202d197f8613109e35dacbb2ca1b21d64572543bf9838b2d832a362ac7 *D:/a/aiohttp/aiohttp/aiohttp/_helpers.pyi
venv/Lib/site-packages/aiohttp/.hash/_helpers.pyx.hash ADDED
@@ -0,0 +1 @@
 
 
1
+ b6097b7d987440c4fa7237f88d227c89a3ba0dd403dc638ddbe487e0de7f1138 *D:/a/aiohttp/aiohttp/aiohttp/_helpers.pyx
venv/Lib/site-packages/aiohttp/.hash/_http_parser.pyx.hash ADDED
@@ -0,0 +1 @@
 
 
1
+ b71aeac5486722353667d8878c46f2491e0efec051807813a393220491eed282 *D:/a/aiohttp/aiohttp/aiohttp/_http_parser.pyx
venv/Lib/site-packages/aiohttp/.hash/_http_writer.pyx.hash ADDED
@@ -0,0 +1 @@
 
 
1
+ f0204bcad3b6af1d6476959ef47612ce784b5dd7995b213edf123b8da19ab1a8 *D:/a/aiohttp/aiohttp/aiohttp/_http_writer.pyx
venv/Lib/site-packages/aiohttp/.hash/_websocket.pyx.hash ADDED
@@ -0,0 +1 @@
 
 
1
+ a3d27bca2f5cdbe8d3063137754917c610d62af456273e4665fc8bb202506b7f *D:/a/aiohttp/aiohttp/aiohttp/_websocket.pyx
venv/Lib/site-packages/aiohttp/.hash/hdrs.py.hash ADDED
@@ -0,0 +1 @@
 
 
1
+ ca00e702a602a2df0d310ca3724dabf42ce94eca40397a47927365fb2c48c9b6 *D:/a/aiohttp/aiohttp/aiohttp/hdrs.py
venv/Lib/site-packages/aiohttp/__init__.py ADDED
@@ -0,0 +1,216 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ __version__ = "3.8.5"
2
+
3
+ from typing import Tuple
4
+
5
+ from . import hdrs as hdrs
6
+ from .client import (
7
+ BaseConnector as BaseConnector,
8
+ ClientConnectionError as ClientConnectionError,
9
+ ClientConnectorCertificateError as ClientConnectorCertificateError,
10
+ ClientConnectorError as ClientConnectorError,
11
+ ClientConnectorSSLError as ClientConnectorSSLError,
12
+ ClientError as ClientError,
13
+ ClientHttpProxyError as ClientHttpProxyError,
14
+ ClientOSError as ClientOSError,
15
+ ClientPayloadError as ClientPayloadError,
16
+ ClientProxyConnectionError as ClientProxyConnectionError,
17
+ ClientRequest as ClientRequest,
18
+ ClientResponse as ClientResponse,
19
+ ClientResponseError as ClientResponseError,
20
+ ClientSession as ClientSession,
21
+ ClientSSLError as ClientSSLError,
22
+ ClientTimeout as ClientTimeout,
23
+ ClientWebSocketResponse as ClientWebSocketResponse,
24
+ ContentTypeError as ContentTypeError,
25
+ Fingerprint as Fingerprint,
26
+ InvalidURL as InvalidURL,
27
+ NamedPipeConnector as NamedPipeConnector,
28
+ RequestInfo as RequestInfo,
29
+ ServerConnectionError as ServerConnectionError,
30
+ ServerDisconnectedError as ServerDisconnectedError,
31
+ ServerFingerprintMismatch as ServerFingerprintMismatch,
32
+ ServerTimeoutError as ServerTimeoutError,
33
+ TCPConnector as TCPConnector,
34
+ TooManyRedirects as TooManyRedirects,
35
+ UnixConnector as UnixConnector,
36
+ WSServerHandshakeError as WSServerHandshakeError,
37
+ request as request,
38
+ )
39
+ from .cookiejar import CookieJar as CookieJar, DummyCookieJar as DummyCookieJar
40
+ from .formdata import FormData as FormData
41
+ from .helpers import BasicAuth, ChainMapProxy, ETag
42
+ from .http import (
43
+ HttpVersion as HttpVersion,
44
+ HttpVersion10 as HttpVersion10,
45
+ HttpVersion11 as HttpVersion11,
46
+ WebSocketError as WebSocketError,
47
+ WSCloseCode as WSCloseCode,
48
+ WSMessage as WSMessage,
49
+ WSMsgType as WSMsgType,
50
+ )
51
+ from .multipart import (
52
+ BadContentDispositionHeader as BadContentDispositionHeader,
53
+ BadContentDispositionParam as BadContentDispositionParam,
54
+ BodyPartReader as BodyPartReader,
55
+ MultipartReader as MultipartReader,
56
+ MultipartWriter as MultipartWriter,
57
+ content_disposition_filename as content_disposition_filename,
58
+ parse_content_disposition as parse_content_disposition,
59
+ )
60
+ from .payload import (
61
+ PAYLOAD_REGISTRY as PAYLOAD_REGISTRY,
62
+ AsyncIterablePayload as AsyncIterablePayload,
63
+ BufferedReaderPayload as BufferedReaderPayload,
64
+ BytesIOPayload as BytesIOPayload,
65
+ BytesPayload as BytesPayload,
66
+ IOBasePayload as IOBasePayload,
67
+ JsonPayload as JsonPayload,
68
+ Payload as Payload,
69
+ StringIOPayload as StringIOPayload,
70
+ StringPayload as StringPayload,
71
+ TextIOPayload as TextIOPayload,
72
+ get_payload as get_payload,
73
+ payload_type as payload_type,
74
+ )
75
+ from .payload_streamer import streamer as streamer
76
+ from .resolver import (
77
+ AsyncResolver as AsyncResolver,
78
+ DefaultResolver as DefaultResolver,
79
+ ThreadedResolver as ThreadedResolver,
80
+ )
81
+ from .streams import (
82
+ EMPTY_PAYLOAD as EMPTY_PAYLOAD,
83
+ DataQueue as DataQueue,
84
+ EofStream as EofStream,
85
+ FlowControlDataQueue as FlowControlDataQueue,
86
+ StreamReader as StreamReader,
87
+ )
88
+ from .tracing import (
89
+ TraceConfig as TraceConfig,
90
+ TraceConnectionCreateEndParams as TraceConnectionCreateEndParams,
91
+ TraceConnectionCreateStartParams as TraceConnectionCreateStartParams,
92
+ TraceConnectionQueuedEndParams as TraceConnectionQueuedEndParams,
93
+ TraceConnectionQueuedStartParams as TraceConnectionQueuedStartParams,
94
+ TraceConnectionReuseconnParams as TraceConnectionReuseconnParams,
95
+ TraceDnsCacheHitParams as TraceDnsCacheHitParams,
96
+ TraceDnsCacheMissParams as TraceDnsCacheMissParams,
97
+ TraceDnsResolveHostEndParams as TraceDnsResolveHostEndParams,
98
+ TraceDnsResolveHostStartParams as TraceDnsResolveHostStartParams,
99
+ TraceRequestChunkSentParams as TraceRequestChunkSentParams,
100
+ TraceRequestEndParams as TraceRequestEndParams,
101
+ TraceRequestExceptionParams as TraceRequestExceptionParams,
102
+ TraceRequestRedirectParams as TraceRequestRedirectParams,
103
+ TraceRequestStartParams as TraceRequestStartParams,
104
+ TraceResponseChunkReceivedParams as TraceResponseChunkReceivedParams,
105
+ )
106
+
107
+ __all__: Tuple[str, ...] = (
108
+ "hdrs",
109
+ # client
110
+ "BaseConnector",
111
+ "ClientConnectionError",
112
+ "ClientConnectorCertificateError",
113
+ "ClientConnectorError",
114
+ "ClientConnectorSSLError",
115
+ "ClientError",
116
+ "ClientHttpProxyError",
117
+ "ClientOSError",
118
+ "ClientPayloadError",
119
+ "ClientProxyConnectionError",
120
+ "ClientResponse",
121
+ "ClientRequest",
122
+ "ClientResponseError",
123
+ "ClientSSLError",
124
+ "ClientSession",
125
+ "ClientTimeout",
126
+ "ClientWebSocketResponse",
127
+ "ContentTypeError",
128
+ "Fingerprint",
129
+ "InvalidURL",
130
+ "RequestInfo",
131
+ "ServerConnectionError",
132
+ "ServerDisconnectedError",
133
+ "ServerFingerprintMismatch",
134
+ "ServerTimeoutError",
135
+ "TCPConnector",
136
+ "TooManyRedirects",
137
+ "UnixConnector",
138
+ "NamedPipeConnector",
139
+ "WSServerHandshakeError",
140
+ "request",
141
+ # cookiejar
142
+ "CookieJar",
143
+ "DummyCookieJar",
144
+ # formdata
145
+ "FormData",
146
+ # helpers
147
+ "BasicAuth",
148
+ "ChainMapProxy",
149
+ "ETag",
150
+ # http
151
+ "HttpVersion",
152
+ "HttpVersion10",
153
+ "HttpVersion11",
154
+ "WSMsgType",
155
+ "WSCloseCode",
156
+ "WSMessage",
157
+ "WebSocketError",
158
+ # multipart
159
+ "BadContentDispositionHeader",
160
+ "BadContentDispositionParam",
161
+ "BodyPartReader",
162
+ "MultipartReader",
163
+ "MultipartWriter",
164
+ "content_disposition_filename",
165
+ "parse_content_disposition",
166
+ # payload
167
+ "AsyncIterablePayload",
168
+ "BufferedReaderPayload",
169
+ "BytesIOPayload",
170
+ "BytesPayload",
171
+ "IOBasePayload",
172
+ "JsonPayload",
173
+ "PAYLOAD_REGISTRY",
174
+ "Payload",
175
+ "StringIOPayload",
176
+ "StringPayload",
177
+ "TextIOPayload",
178
+ "get_payload",
179
+ "payload_type",
180
+ # payload_streamer
181
+ "streamer",
182
+ # resolver
183
+ "AsyncResolver",
184
+ "DefaultResolver",
185
+ "ThreadedResolver",
186
+ # streams
187
+ "DataQueue",
188
+ "EMPTY_PAYLOAD",
189
+ "EofStream",
190
+ "FlowControlDataQueue",
191
+ "StreamReader",
192
+ # tracing
193
+ "TraceConfig",
194
+ "TraceConnectionCreateEndParams",
195
+ "TraceConnectionCreateStartParams",
196
+ "TraceConnectionQueuedEndParams",
197
+ "TraceConnectionQueuedStartParams",
198
+ "TraceConnectionReuseconnParams",
199
+ "TraceDnsCacheHitParams",
200
+ "TraceDnsCacheMissParams",
201
+ "TraceDnsResolveHostEndParams",
202
+ "TraceDnsResolveHostStartParams",
203
+ "TraceRequestChunkSentParams",
204
+ "TraceRequestEndParams",
205
+ "TraceRequestExceptionParams",
206
+ "TraceRequestRedirectParams",
207
+ "TraceRequestStartParams",
208
+ "TraceResponseChunkReceivedParams",
209
+ )
210
+
211
+ try:
212
+ from .worker import GunicornUVLoopWebWorker, GunicornWebWorker
213
+
214
+ __all__ += ("GunicornWebWorker", "GunicornUVLoopWebWorker")
215
+ except ImportError: # pragma: no cover
216
+ pass
venv/Lib/site-packages/aiohttp/__pycache__/__init__.cpython-39.pyc ADDED
Binary file (3.69 kB). View file
 
venv/Lib/site-packages/aiohttp/__pycache__/abc.cpython-39.pyc ADDED
Binary file (8.72 kB). View file
 
venv/Lib/site-packages/aiohttp/__pycache__/base_protocol.cpython-39.pyc ADDED
Binary file (2.82 kB). View file
 
venv/Lib/site-packages/aiohttp/__pycache__/client.cpython-39.pyc ADDED
Binary file (29.4 kB). View file
 
venv/Lib/site-packages/aiohttp/__pycache__/client_exceptions.cpython-39.pyc ADDED
Binary file (11.3 kB). View file
 
venv/Lib/site-packages/aiohttp/__pycache__/client_proto.cpython-39.pyc ADDED
Binary file (6.16 kB). View file
 
venv/Lib/site-packages/aiohttp/__pycache__/client_reqrep.cpython-39.pyc ADDED
Binary file (28 kB). View file
 
venv/Lib/site-packages/aiohttp/__pycache__/client_ws.cpython-39.pyc ADDED
Binary file (9.05 kB). View file
 
venv/Lib/site-packages/aiohttp/__pycache__/connector.cpython-39.pyc ADDED
Binary file (35.8 kB). View file
 
venv/Lib/site-packages/aiohttp/__pycache__/cookiejar.cpython-39.pyc ADDED
Binary file (10.7 kB). View file
 
venv/Lib/site-packages/aiohttp/__pycache__/formdata.cpython-39.pyc ADDED
Binary file (4.54 kB). View file
 
venv/Lib/site-packages/aiohttp/__pycache__/hdrs.cpython-39.pyc ADDED
Binary file (5.3 kB). View file
 
venv/Lib/site-packages/aiohttp/__pycache__/helpers.cpython-39.pyc ADDED
Binary file (26.2 kB). View file
 
venv/Lib/site-packages/aiohttp/__pycache__/http.cpython-39.pyc ADDED
Binary file (1.33 kB). View file
 
venv/Lib/site-packages/aiohttp/__pycache__/http_exceptions.cpython-39.pyc ADDED
Binary file (4.38 kB). View file
 
venv/Lib/site-packages/aiohttp/__pycache__/http_parser.cpython-39.pyc ADDED
Binary file (18 kB). View file
 
venv/Lib/site-packages/aiohttp/__pycache__/http_websocket.cpython-39.pyc ADDED
Binary file (15.1 kB). View file
 
venv/Lib/site-packages/aiohttp/__pycache__/http_writer.cpython-39.pyc ADDED
Binary file (5.6 kB). View file
 
venv/Lib/site-packages/aiohttp/__pycache__/locks.cpython-39.pyc ADDED
Binary file (1.65 kB). View file
 
venv/Lib/site-packages/aiohttp/__pycache__/log.cpython-39.pyc ADDED
Binary file (457 Bytes). View file
 
venv/Lib/site-packages/aiohttp/__pycache__/multipart.cpython-39.pyc ADDED
Binary file (26.3 kB). View file
 
venv/Lib/site-packages/aiohttp/__pycache__/payload.cpython-39.pyc ADDED
Binary file (13.5 kB). View file
 
venv/Lib/site-packages/aiohttp/__pycache__/payload_streamer.cpython-39.pyc ADDED
Binary file (3.25 kB). View file
 
venv/Lib/site-packages/aiohttp/__pycache__/pytest_plugin.cpython-39.pyc ADDED
Binary file (9.97 kB). View file
 
venv/Lib/site-packages/aiohttp/__pycache__/resolver.cpython-39.pyc ADDED
Binary file (3.98 kB). View file
 
venv/Lib/site-packages/aiohttp/__pycache__/streams.cpython-39.pyc ADDED
Binary file (18.6 kB). View file
 
venv/Lib/site-packages/aiohttp/__pycache__/tcp_helpers.cpython-39.pyc ADDED
Binary file (1.14 kB). View file
 
venv/Lib/site-packages/aiohttp/__pycache__/test_utils.cpython-39.pyc ADDED
Binary file (21.9 kB). View file