Upload folder using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +3 -0
- app.py +10 -4
- gtm/bin/gradio +2 -2
- gtm/lib/python3.12/site-packages/aiohttp-3.9.3.dist-info/INSTALLER +1 -0
- gtm/lib/python3.12/site-packages/aiohttp-3.9.3.dist-info/LICENSE.txt +13 -0
- gtm/lib/python3.12/site-packages/aiohttp-3.9.3.dist-info/METADATA +243 -0
- gtm/lib/python3.12/site-packages/aiohttp-3.9.3.dist-info/RECORD +119 -0
- gtm/lib/python3.12/site-packages/aiohttp-3.9.3.dist-info/WHEEL +5 -0
- gtm/lib/python3.12/site-packages/aiohttp-3.9.3.dist-info/top_level.txt +1 -0
- gtm/lib/python3.12/site-packages/aiohttp/.hash/_cparser.pxd.hash +1 -0
- gtm/lib/python3.12/site-packages/aiohttp/.hash/_find_header.pxd.hash +1 -0
- gtm/lib/python3.12/site-packages/aiohttp/.hash/_helpers.pyi.hash +1 -0
- gtm/lib/python3.12/site-packages/aiohttp/.hash/_helpers.pyx.hash +1 -0
- gtm/lib/python3.12/site-packages/aiohttp/.hash/_http_parser.pyx.hash +1 -0
- gtm/lib/python3.12/site-packages/aiohttp/.hash/_http_writer.pyx.hash +1 -0
- gtm/lib/python3.12/site-packages/aiohttp/.hash/_websocket.pyx.hash +1 -0
- gtm/lib/python3.12/site-packages/aiohttp/.hash/hdrs.py.hash +1 -0
- gtm/lib/python3.12/site-packages/aiohttp/__init__.py +240 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/__init__.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/abc.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/base_protocol.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/client.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/client_exceptions.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/client_proto.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/client_reqrep.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/client_ws.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/compression_utils.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/connector.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/cookiejar.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/formdata.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/hdrs.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/helpers.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/http.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/http_exceptions.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/http_parser.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/http_websocket.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/http_writer.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/locks.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/log.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/multipart.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/payload.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/payload_streamer.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/pytest_plugin.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/resolver.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/streams.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/tcp_helpers.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/test_utils.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/tracing.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/typedefs.cpython-312.pyc +0 -0
- gtm/lib/python3.12/site-packages/aiohttp/__pycache__/web.cpython-312.pyc +0 -0
.gitattributes
CHANGED
@@ -79,3 +79,6 @@ gtm/lib/python3.12/site-packages/scipy/spatial/_qhull.cpython-312-darwin.so filt
|
|
79 |
gtm/lib/python3.12/site-packages/scipy/special/_ufuncs.cpython-312-darwin.so filter=lfs diff=lfs merge=lfs -text
|
80 |
gtm/lib/python3.12/site-packages/scipy/special/cython_special.cpython-312-darwin.so filter=lfs diff=lfs merge=lfs -text
|
81 |
gtm/lib/python3.12/site-packages/scipy/stats/_unuran/unuran_wrapper.cpython-312-darwin.so filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
79 |
gtm/lib/python3.12/site-packages/scipy/special/_ufuncs.cpython-312-darwin.so filter=lfs diff=lfs merge=lfs -text
|
80 |
gtm/lib/python3.12/site-packages/scipy/special/cython_special.cpython-312-darwin.so filter=lfs diff=lfs merge=lfs -text
|
81 |
gtm/lib/python3.12/site-packages/scipy/stats/_unuran/unuran_wrapper.cpython-312-darwin.so filter=lfs diff=lfs merge=lfs -text
|
82 |
+
gtm/lib/python3.12/site-packages/gradio/templates/cdn/assets/index.6a107eaa.js.map filter=lfs diff=lfs merge=lfs -text
|
83 |
+
gtm/lib/python3.12/site-packages/gradio/templates/frontend/assets/index.37aa27c0.js.map filter=lfs diff=lfs merge=lfs -text
|
84 |
+
gtm/lib/python3.12/site-packages/sentencepiece/_sentencepiece.cpython-312-darwin.so filter=lfs diff=lfs merge=lfs -text
|
app.py
CHANGED
@@ -6,7 +6,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
6 |
model_name = "AdaptLLM/law-LLM"
|
7 |
# model_name = "google/gemma-2b"
|
8 |
# model_name = "mistralai/Mistral-7B-v0.1"
|
9 |
-
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
10 |
model = AutoModelForCausalLM.from_pretrained(model_name)
|
11 |
|
12 |
|
@@ -22,9 +22,15 @@ model = AutoModelForCausalLM.from_pretrained(model_name)
|
|
22 |
|
23 |
# Define the chat function that uses the Mistral-7B-v0.1 model
|
24 |
def chat_interface(input_text):
|
25 |
-
inputs = tokenizer.encode(input_text, return_tensors="pt")
|
26 |
-
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
return response
|
29 |
|
30 |
|
|
|
6 |
model_name = "AdaptLLM/law-LLM"
|
7 |
# model_name = "google/gemma-2b"
|
8 |
# model_name = "mistralai/Mistral-7B-v0.1"
|
9 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name, use_fast=False)
|
10 |
model = AutoModelForCausalLM.from_pretrained(model_name)
|
11 |
|
12 |
|
|
|
22 |
|
23 |
# Define the chat function that uses the Mistral-7B-v0.1 model
|
24 |
def chat_interface(input_text):
|
25 |
+
# inputs = tokenizer.encode(input_text, return_tensors="pt")
|
26 |
+
inputs = tokenizer(input_text, return_tensors="pt", add_special_tokens=False).input_ids.to(model.device)
|
27 |
+
outputs = model.generate(input_ids=inputs, max_length=2048)[0]
|
28 |
+
answer_start = int(inputs.shape[-1])
|
29 |
+
|
30 |
+
# outputs = model.generate(inputs, max_length=100)
|
31 |
+
# response = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
32 |
+
|
33 |
+
response = tokenizer.decode(outputs[answer_start:], skip_special_tokens=True)
|
34 |
return response
|
35 |
|
36 |
|
gtm/bin/gradio
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# -*- coding: utf-8 -*-
|
3 |
import re
|
4 |
import sys
|
5 |
-
from gradio.
|
6 |
if __name__ == '__main__':
|
7 |
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
-
sys.exit(
|
|
|
2 |
# -*- coding: utf-8 -*-
|
3 |
import re
|
4 |
import sys
|
5 |
+
from gradio.reload import run_in_reload_mode
|
6 |
if __name__ == '__main__':
|
7 |
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(run_in_reload_mode())
|
gtm/lib/python3.12/site-packages/aiohttp-3.9.3.dist-info/INSTALLER
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
pip
|
gtm/lib/python3.12/site-packages/aiohttp-3.9.3.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.
|
gtm/lib/python3.12/site-packages/aiohttp-3.9.3.dist-info/METADATA
ADDED
@@ -0,0 +1,243 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Metadata-Version: 2.1
|
2 |
+
Name: aiohttp
|
3 |
+
Version: 3.9.3
|
4 |
+
Summary: Async http client/server framework (asyncio)
|
5 |
+
Home-page: https://github.com/aio-libs/aiohttp
|
6 |
+
Maintainer: aiohttp team <team@aiohttp.org>
|
7 |
+
Maintainer-email: team@aiohttp.org
|
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.8
|
27 |
+
Classifier: Programming Language :: Python :: 3.9
|
28 |
+
Classifier: Programming Language :: Python :: 3.10
|
29 |
+
Classifier: Topic :: Internet :: WWW/HTTP
|
30 |
+
Requires-Python: >=3.8
|
31 |
+
Description-Content-Type: text/x-rst
|
32 |
+
License-File: LICENSE.txt
|
33 |
+
Requires-Dist: aiosignal >=1.1.2
|
34 |
+
Requires-Dist: attrs >=17.3.0
|
35 |
+
Requires-Dist: frozenlist >=1.1.1
|
36 |
+
Requires-Dist: multidict <7.0,>=4.5
|
37 |
+
Requires-Dist: yarl <2.0,>=1.0
|
38 |
+
Requires-Dist: async-timeout <5.0,>=4.0 ; python_version < "3.11"
|
39 |
+
Provides-Extra: speedups
|
40 |
+
Requires-Dist: brotlicffi ; (platform_python_implementation != "CPython") and extra == 'speedups'
|
41 |
+
Requires-Dist: Brotli ; (platform_python_implementation == "CPython") and extra == 'speedups'
|
42 |
+
Requires-Dist: aiodns ; (sys_platform == "linux" or sys_platform == "darwin") and extra == 'speedups'
|
43 |
+
|
44 |
+
==================================
|
45 |
+
Async http client/server framework
|
46 |
+
==================================
|
47 |
+
|
48 |
+
.. image:: https://raw.githubusercontent.com/aio-libs/aiohttp/master/docs/aiohttp-plain.svg
|
49 |
+
:height: 64px
|
50 |
+
:width: 64px
|
51 |
+
:alt: aiohttp logo
|
52 |
+
|
53 |
+
|
|
54 |
+
|
55 |
+
.. image:: https://github.com/aio-libs/aiohttp/workflows/CI/badge.svg
|
56 |
+
:target: https://github.com/aio-libs/aiohttp/actions?query=workflow%3ACI
|
57 |
+
:alt: GitHub Actions status for master branch
|
58 |
+
|
59 |
+
.. image:: https://codecov.io/gh/aio-libs/aiohttp/branch/master/graph/badge.svg
|
60 |
+
:target: https://codecov.io/gh/aio-libs/aiohttp
|
61 |
+
:alt: codecov.io status for master branch
|
62 |
+
|
63 |
+
.. image:: https://badge.fury.io/py/aiohttp.svg
|
64 |
+
:target: https://pypi.org/project/aiohttp
|
65 |
+
:alt: Latest PyPI package version
|
66 |
+
|
67 |
+
.. image:: https://readthedocs.org/projects/aiohttp/badge/?version=latest
|
68 |
+
:target: https://docs.aiohttp.org/
|
69 |
+
:alt: Latest Read The Docs
|
70 |
+
|
71 |
+
.. 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
|
72 |
+
:target: https://matrix.to/#/%23aio-libs:matrix.org
|
73 |
+
:alt: Matrix Room — #aio-libs:matrix.org
|
74 |
+
|
75 |
+
.. 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
|
76 |
+
:target: https://matrix.to/#/%23aio-libs-space:matrix.org
|
77 |
+
:alt: Matrix Space — #aio-libs-space:matrix.org
|
78 |
+
|
79 |
+
|
80 |
+
Key Features
|
81 |
+
============
|
82 |
+
|
83 |
+
- Supports both client and server side of HTTP protocol.
|
84 |
+
- Supports both client and server Web-Sockets out-of-the-box and avoids
|
85 |
+
Callback Hell.
|
86 |
+
- Provides Web-server with middleware and pluggable routing.
|
87 |
+
|
88 |
+
|
89 |
+
Getting started
|
90 |
+
===============
|
91 |
+
|
92 |
+
Client
|
93 |
+
------
|
94 |
+
|
95 |
+
To get something from the web:
|
96 |
+
|
97 |
+
.. code-block:: python
|
98 |
+
|
99 |
+
import aiohttp
|
100 |
+
import asyncio
|
101 |
+
|
102 |
+
async def main():
|
103 |
+
|
104 |
+
async with aiohttp.ClientSession() as session:
|
105 |
+
async with session.get('http://python.org') as response:
|
106 |
+
|
107 |
+
print("Status:", response.status)
|
108 |
+
print("Content-type:", response.headers['content-type'])
|
109 |
+
|
110 |
+
html = await response.text()
|
111 |
+
print("Body:", html[:15], "...")
|
112 |
+
|
113 |
+
asyncio.run(main())
|
114 |
+
|
115 |
+
This prints:
|
116 |
+
|
117 |
+
.. code-block::
|
118 |
+
|
119 |
+
Status: 200
|
120 |
+
Content-type: text/html; charset=utf-8
|
121 |
+
Body: <!doctype html> ...
|
122 |
+
|
123 |
+
Coming from `requests <https://requests.readthedocs.io/>`_ ? Read `why we need so many lines <https://aiohttp.readthedocs.io/en/latest/http_request_lifecycle.html>`_.
|
124 |
+
|
125 |
+
Server
|
126 |
+
------
|
127 |
+
|
128 |
+
An example using a simple server:
|
129 |
+
|
130 |
+
.. code-block:: python
|
131 |
+
|
132 |
+
# examples/server_simple.py
|
133 |
+
from aiohttp import web
|
134 |
+
|
135 |
+
async def handle(request):
|
136 |
+
name = request.match_info.get('name', "Anonymous")
|
137 |
+
text = "Hello, " + name
|
138 |
+
return web.Response(text=text)
|
139 |
+
|
140 |
+
async def wshandle(request):
|
141 |
+
ws = web.WebSocketResponse()
|
142 |
+
await ws.prepare(request)
|
143 |
+
|
144 |
+
async for msg in ws:
|
145 |
+
if msg.type == web.WSMsgType.text:
|
146 |
+
await ws.send_str("Hello, {}".format(msg.data))
|
147 |
+
elif msg.type == web.WSMsgType.binary:
|
148 |
+
await ws.send_bytes(msg.data)
|
149 |
+
elif msg.type == web.WSMsgType.close:
|
150 |
+
break
|
151 |
+
|
152 |
+
return ws
|
153 |
+
|
154 |
+
|
155 |
+
app = web.Application()
|
156 |
+
app.add_routes([web.get('/', handle),
|
157 |
+
web.get('/echo', wshandle),
|
158 |
+
web.get('/{name}', handle)])
|
159 |
+
|
160 |
+
if __name__ == '__main__':
|
161 |
+
web.run_app(app)
|
162 |
+
|
163 |
+
|
164 |
+
Documentation
|
165 |
+
=============
|
166 |
+
|
167 |
+
https://aiohttp.readthedocs.io/
|
168 |
+
|
169 |
+
|
170 |
+
Demos
|
171 |
+
=====
|
172 |
+
|
173 |
+
https://github.com/aio-libs/aiohttp-demos
|
174 |
+
|
175 |
+
|
176 |
+
External links
|
177 |
+
==============
|
178 |
+
|
179 |
+
* `Third party libraries
|
180 |
+
<http://aiohttp.readthedocs.io/en/latest/third_party.html>`_
|
181 |
+
* `Built with aiohttp
|
182 |
+
<http://aiohttp.readthedocs.io/en/latest/built_with.html>`_
|
183 |
+
* `Powered by aiohttp
|
184 |
+
<http://aiohttp.readthedocs.io/en/latest/powered_by.html>`_
|
185 |
+
|
186 |
+
Feel free to make a Pull Request for adding your link to these pages!
|
187 |
+
|
188 |
+
|
189 |
+
Communication channels
|
190 |
+
======================
|
191 |
+
|
192 |
+
*aio-libs Discussions*: https://github.com/aio-libs/aiohttp/discussions
|
193 |
+
|
194 |
+
*gitter chat* https://gitter.im/aio-libs/Lobby
|
195 |
+
|
196 |
+
We support `Stack Overflow
|
197 |
+
<https://stackoverflow.com/questions/tagged/aiohttp>`_.
|
198 |
+
Please add *aiohttp* tag to your question there.
|
199 |
+
|
200 |
+
Requirements
|
201 |
+
============
|
202 |
+
|
203 |
+
- async-timeout_
|
204 |
+
- attrs_
|
205 |
+
- multidict_
|
206 |
+
- yarl_
|
207 |
+
- frozenlist_
|
208 |
+
|
209 |
+
Optionally you may install the aiodns_ library (highly recommended for sake of speed).
|
210 |
+
|
211 |
+
.. _aiodns: https://pypi.python.org/pypi/aiodns
|
212 |
+
.. _attrs: https://github.com/python-attrs/attrs
|
213 |
+
.. _multidict: https://pypi.python.org/pypi/multidict
|
214 |
+
.. _frozenlist: https://pypi.org/project/frozenlist/
|
215 |
+
.. _yarl: https://pypi.python.org/pypi/yarl
|
216 |
+
.. _async-timeout: https://pypi.python.org/pypi/async_timeout
|
217 |
+
|
218 |
+
License
|
219 |
+
=======
|
220 |
+
|
221 |
+
``aiohttp`` is offered under the Apache 2 license.
|
222 |
+
|
223 |
+
|
224 |
+
Keepsafe
|
225 |
+
========
|
226 |
+
|
227 |
+
The aiohttp community would like to thank Keepsafe
|
228 |
+
(https://www.getkeepsafe.com) for its support in the early days of
|
229 |
+
the project.
|
230 |
+
|
231 |
+
|
232 |
+
Source code
|
233 |
+
===========
|
234 |
+
|
235 |
+
The latest developer version is available in a GitHub repository:
|
236 |
+
https://github.com/aio-libs/aiohttp
|
237 |
+
|
238 |
+
Benchmarks
|
239 |
+
==========
|
240 |
+
|
241 |
+
If you are interested in efficiency, the AsyncIO community maintains a
|
242 |
+
list of benchmarks on the official wiki:
|
243 |
+
https://github.com/python/asyncio/wiki/Benchmarks
|
gtm/lib/python3.12/site-packages/aiohttp-3.9.3.dist-info/RECORD
ADDED
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
aiohttp-3.9.3.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
2 |
+
aiohttp-3.9.3.dist-info/LICENSE.txt,sha256=n4DQ2311WpQdtFchcsJw7L2PCCuiFd3QlZhZQu2Uqes,588
|
3 |
+
aiohttp-3.9.3.dist-info/METADATA,sha256=IR6WU8nTlQ6uEoKY6sYovX8yUevcxKO9vahL7148a5E,7357
|
4 |
+
aiohttp-3.9.3.dist-info/RECORD,,
|
5 |
+
aiohttp-3.9.3.dist-info/WHEEL,sha256=1_erwh2TCU3TrYzgBQGCtZskLEmw2vbfn7Xu2mHHvyU,111
|
6 |
+
aiohttp-3.9.3.dist-info/top_level.txt,sha256=iv-JIaacmTl-hSho3QmphcKnbRRYx1st47yjz_178Ro,8
|
7 |
+
aiohttp/.hash/_cparser.pxd.hash,sha256=ND581Lvrk-K59r0E07G3CdJKQo3ScvVS9zoo7lvkLYs,64
|
8 |
+
aiohttp/.hash/_find_header.pxd.hash,sha256=BtbSPeZ2eOtt807jecTkoEeBQ4C5AiBxjzbvJj9eV6E,64
|
9 |
+
aiohttp/.hash/_helpers.pyi.hash,sha256=pvlsQIMFVemm4rvS1BkQkfS2PGgJn5ZO2RmMSFxwCiE,64
|
10 |
+
aiohttp/.hash/_helpers.pyx.hash,sha256=JWBqptE_5nbmOzG3dYXdmEuAy_Y2snJfcR124T4TZpo,64
|
11 |
+
aiohttp/.hash/_http_parser.pyx.hash,sha256=6Ij3BWK3PALP8_9kktZPvWpP1y9rQzh-xWryFTno8w0,64
|
12 |
+
aiohttp/.hash/_http_writer.pyx.hash,sha256=fQJN-7qLOu6bbnNTVO5jeKPSSGHjAvPqkj3OgkmnXh8,64
|
13 |
+
aiohttp/.hash/_websocket.pyx.hash,sha256=_6cqIcIQjICfniPJShOdspzQaB95Lu6cinOZJ6yESz8,64
|
14 |
+
aiohttp/.hash/hdrs.py.hash,sha256=Y5-5PZ15eDlsuhnCgEN_dhexnhwjP2v4ErDZJRljDmI,64
|
15 |
+
aiohttp/__init__.py,sha256=bqfjeqpv8Dk3z0vj7HGYC4ZBIcP7V8MVzoLYY9g9vRY,7762
|
16 |
+
aiohttp/__pycache__/__init__.cpython-312.pyc,,
|
17 |
+
aiohttp/__pycache__/abc.cpython-312.pyc,,
|
18 |
+
aiohttp/__pycache__/base_protocol.cpython-312.pyc,,
|
19 |
+
aiohttp/__pycache__/client.cpython-312.pyc,,
|
20 |
+
aiohttp/__pycache__/client_exceptions.cpython-312.pyc,,
|
21 |
+
aiohttp/__pycache__/client_proto.cpython-312.pyc,,
|
22 |
+
aiohttp/__pycache__/client_reqrep.cpython-312.pyc,,
|
23 |
+
aiohttp/__pycache__/client_ws.cpython-312.pyc,,
|
24 |
+
aiohttp/__pycache__/compression_utils.cpython-312.pyc,,
|
25 |
+
aiohttp/__pycache__/connector.cpython-312.pyc,,
|
26 |
+
aiohttp/__pycache__/cookiejar.cpython-312.pyc,,
|
27 |
+
aiohttp/__pycache__/formdata.cpython-312.pyc,,
|
28 |
+
aiohttp/__pycache__/hdrs.cpython-312.pyc,,
|
29 |
+
aiohttp/__pycache__/helpers.cpython-312.pyc,,
|
30 |
+
aiohttp/__pycache__/http.cpython-312.pyc,,
|
31 |
+
aiohttp/__pycache__/http_exceptions.cpython-312.pyc,,
|
32 |
+
aiohttp/__pycache__/http_parser.cpython-312.pyc,,
|
33 |
+
aiohttp/__pycache__/http_websocket.cpython-312.pyc,,
|
34 |
+
aiohttp/__pycache__/http_writer.cpython-312.pyc,,
|
35 |
+
aiohttp/__pycache__/locks.cpython-312.pyc,,
|
36 |
+
aiohttp/__pycache__/log.cpython-312.pyc,,
|
37 |
+
aiohttp/__pycache__/multipart.cpython-312.pyc,,
|
38 |
+
aiohttp/__pycache__/payload.cpython-312.pyc,,
|
39 |
+
aiohttp/__pycache__/payload_streamer.cpython-312.pyc,,
|
40 |
+
aiohttp/__pycache__/pytest_plugin.cpython-312.pyc,,
|
41 |
+
aiohttp/__pycache__/resolver.cpython-312.pyc,,
|
42 |
+
aiohttp/__pycache__/streams.cpython-312.pyc,,
|
43 |
+
aiohttp/__pycache__/tcp_helpers.cpython-312.pyc,,
|
44 |
+
aiohttp/__pycache__/test_utils.cpython-312.pyc,,
|
45 |
+
aiohttp/__pycache__/tracing.cpython-312.pyc,,
|
46 |
+
aiohttp/__pycache__/typedefs.cpython-312.pyc,,
|
47 |
+
aiohttp/__pycache__/web.cpython-312.pyc,,
|
48 |
+
aiohttp/__pycache__/web_app.cpython-312.pyc,,
|
49 |
+
aiohttp/__pycache__/web_exceptions.cpython-312.pyc,,
|
50 |
+
aiohttp/__pycache__/web_fileresponse.cpython-312.pyc,,
|
51 |
+
aiohttp/__pycache__/web_log.cpython-312.pyc,,
|
52 |
+
aiohttp/__pycache__/web_middlewares.cpython-312.pyc,,
|
53 |
+
aiohttp/__pycache__/web_protocol.cpython-312.pyc,,
|
54 |
+
aiohttp/__pycache__/web_request.cpython-312.pyc,,
|
55 |
+
aiohttp/__pycache__/web_response.cpython-312.pyc,,
|
56 |
+
aiohttp/__pycache__/web_routedef.cpython-312.pyc,,
|
57 |
+
aiohttp/__pycache__/web_runner.cpython-312.pyc,,
|
58 |
+
aiohttp/__pycache__/web_server.cpython-312.pyc,,
|
59 |
+
aiohttp/__pycache__/web_urldispatcher.cpython-312.pyc,,
|
60 |
+
aiohttp/__pycache__/web_ws.cpython-312.pyc,,
|
61 |
+
aiohttp/__pycache__/worker.cpython-312.pyc,,
|
62 |
+
aiohttp/_cparser.pxd,sha256=8jGIg-VJ9p3llwCakUYDsPGxA4HiZe9dmK9Jmtlz-5g,4318
|
63 |
+
aiohttp/_find_header.pxd,sha256=0GfwFCPN2zxEKTO1_MA5sYq2UfzsG8kcV3aTqvwlz3g,68
|
64 |
+
aiohttp/_headers.pxi,sha256=n701k28dVPjwRnx5j6LpJhLTfj7dqu2vJt7f0O60Oyg,2007
|
65 |
+
aiohttp/_helpers.cpython-312-darwin.so,sha256=3QoJiG6_rhYjnKLmn1Ug9zjj0qvbJhM4RPS_7KGnwiE,87976
|
66 |
+
aiohttp/_helpers.pyi,sha256=ZoKiJSS51PxELhI2cmIr5737YjjZcJt7FbIRO3ym1Ss,202
|
67 |
+
aiohttp/_helpers.pyx,sha256=XeLbNft5X_4ifi8QB8i6TyrRuayijMSO3IDHeSA89uM,1049
|
68 |
+
aiohttp/_http_parser.cpython-312-darwin.so,sha256=iV5Dww6JlxpItJykfd_DThtJNBJgYHhgQhtung89BGw,540384
|
69 |
+
aiohttp/_http_parser.pyx,sha256=fzKwwVlcGnGVeiGOzo05d-2Rccqtl9-PzYKqgK3fxdI,28058
|
70 |
+
aiohttp/_http_writer.cpython-312-darwin.so,sha256=LDoqANmCg3K-uaeGTmeBXR0k5uKutvlw6HxVc1r1Fgo,83880
|
71 |
+
aiohttp/_http_writer.pyx,sha256=aIHAp8g4ZV5kbGRdmZce-vXjELw2M6fGKyJuOdgYQqw,4575
|
72 |
+
aiohttp/_websocket.cpython-312-darwin.so,sha256=Yh4x4OCcuqGS4JQJmudofPRZH35O3orTVvsf-2vw-rY,65312
|
73 |
+
aiohttp/_websocket.pyx,sha256=1XuOSNDCbyDrzF5uMA2isqausSs8l2jWTLDlNDLM9Io,1561
|
74 |
+
aiohttp/abc.py,sha256=WGZ5HH0hoCH77qaISTb689ygpS9CxfKkgUCOcgjU2lo,5500
|
75 |
+
aiohttp/base_protocol.py,sha256=5JUyuIGwKf7sFhf0YLAnk36_hkSIxBnP4hN09RdMGGk,2741
|
76 |
+
aiohttp/client.py,sha256=2EKZE0lcIMLjjaMZChAu_2GaSNj8TumqhhwgEEmpN6Q,47276
|
77 |
+
aiohttp/client_exceptions.py,sha256=7lx_YWAauUQVOxg_RehW9HZE344ak3lGmVJHfCrmb-A,9411
|
78 |
+
aiohttp/client_proto.py,sha256=SXMGavdWhByYYqLfraw9dmp9u8jBAhGC_Y-pOYyFaHE,8651
|
79 |
+
aiohttp/client_reqrep.py,sha256=sf0N3ovAHucEnTd3noJOv9MjypL-vIZR67xNibWXxnI,39763
|
80 |
+
aiohttp/client_ws.py,sha256=nNrwu1wA0U3B0cNsVr61QfV2S60bbKfaZXHfW7klFl4,11010
|
81 |
+
aiohttp/compression_utils.py,sha256=GCkBNJqrybMhiTQGwqqhORnaTLpRFZD_-UvRtnZ5lEQ,5015
|
82 |
+
aiohttp/connector.py,sha256=WAio65VS8cTly_rg2J7lhwf_imQWKL1sFJPnVCDYNkY,52798
|
83 |
+
aiohttp/cookiejar.py,sha256=PdvsOiDasDYYUOPaaAfuuFJzR4CJyHHjut02YiZ_N8M,14015
|
84 |
+
aiohttp/formdata.py,sha256=q2gpeiM9NFsl_eSFVxHZ7Qez6RbM8_BujERMkooQkx0,6106
|
85 |
+
aiohttp/hdrs.py,sha256=uzn5agn_jXid2h-ky6Y0ZAQ8BrPeTGLDGr-weiMctso,4613
|
86 |
+
aiohttp/helpers.py,sha256=hYm60xCxbJCdtdtLhTt7uspQ_9HPT27gTBx2q9Fu1Zk,30255
|
87 |
+
aiohttp/http.py,sha256=8o8j8xH70OWjnfTWA9V44NR785QPxEPrUtzMXiAVpwc,1842
|
88 |
+
aiohttp/http_exceptions.py,sha256=7LOFFUwq04fZsnZA-NP5nukd6c2i8daM8-ejj3ndbSQ,2716
|
89 |
+
aiohttp/http_parser.py,sha256=oXR_GfiwF5SeBTUvYK96WZLBdf7TMMgfm9CjssT6QKU,35496
|
90 |
+
aiohttp/http_websocket.py,sha256=Zvg8rySM6b5MXUYlecZdiLP5tX-FhEYuGzFsn_YOk48,26716
|
91 |
+
aiohttp/http_writer.py,sha256=fxpyRj_S3WcBl9fxxF05t8YYAUA-0jW5b_PjVSluT3Y,5933
|
92 |
+
aiohttp/locks.py,sha256=wRYFo1U82LwBBdqwU24JEPaoTAlKaaJd2FtfDKhkTb4,1136
|
93 |
+
aiohttp/log.py,sha256=BbNKx9e3VMIm0xYjZI0IcBBoS7wjdeIeSaiJE7-qK2g,325
|
94 |
+
aiohttp/multipart.py,sha256=sLseoa3yh_xC4Moepxh_Lck87vwa6_aqmX7kz2hYHjE,32472
|
95 |
+
aiohttp/payload.py,sha256=xK04Z-TSao-qiYVMnphKG9-6yOvoqGsZBM7egUS4n9A,13542
|
96 |
+
aiohttp/payload_streamer.py,sha256=eAS8S-UWfLkEMavRjP2Uu9amC3PnbV79wHTNDoRmYn8,2087
|
97 |
+
aiohttp/py.typed,sha256=sow9soTwP9T_gEAQSVh7Gb8855h04Nwmhs2We-JRgZM,7
|
98 |
+
aiohttp/pytest_plugin.py,sha256=3IwpuxtFiUVFGS_ZitWuqvECSGgXQWvCW312B2TaVLY,11605
|
99 |
+
aiohttp/resolver.py,sha256=8peXjB482v0hg1ESn87op6f-UeLXk_fAMxQo_23Ek6M,5070
|
100 |
+
aiohttp/streams.py,sha256=vNCy0k5R7XlnSfsyTEQAkBD4Q9tNZgNm76Gqlw8Tjok,20836
|
101 |
+
aiohttp/tcp_helpers.py,sha256=BSadqVWaBpMFDRWnhaaR941N9MiDZ7bdTrxgCb0CW-M,961
|
102 |
+
aiohttp/test_utils.py,sha256=fXC-rKhXxV0DtFZQ8yRq2r-aAn9G5KcHsf_2wV3vsrE,20185
|
103 |
+
aiohttp/tracing.py,sha256=W94gFgxFtXSBWMU4ajbrOH61mJ4mElRmfyxNUw6FwIA,15132
|
104 |
+
aiohttp/typedefs.py,sha256=f-EzBBgQAxNLiTUtkjgMAL5LQt81HloYTesxnhNM03U,1471
|
105 |
+
aiohttp/web.py,sha256=HFTQaoYVK5pM3YmxNJtZl9fGrRIdFs_Nhloxe7_lJj0,19263
|
106 |
+
aiohttp/web_app.py,sha256=4cXDqZV-KR0xMnUhQ471bsEACIsoI4_BkDJ3haXyG_I,18311
|
107 |
+
aiohttp/web_exceptions.py,sha256=7nIuiwhZ39vJJ9KrWqArA5QcWbUdqkz2CLwEpJapeN8,10360
|
108 |
+
aiohttp/web_fileresponse.py,sha256=ZqJm7PMQPhASKRaongoKQdaubkzflrctDX0Z1MFUBd8,11416
|
109 |
+
aiohttp/web_log.py,sha256=DOfOxGyh2U7K5K_w6O7ILdfGcs4qOdzHxOwj2-k3c6c,7801
|
110 |
+
aiohttp/web_middlewares.py,sha256=q6i0GGiVvUlpGtsbZmp88-zFIKQHwYtDd5SpBvKFdEY,4032
|
111 |
+
aiohttp/web_protocol.py,sha256=DxEIoZyL_3B7DXTKygP20xDw4p9nkD2PkdvJ_gXlnt8,23044
|
112 |
+
aiohttp/web_request.py,sha256=zOQwat26Qsfv1UM_pfhgWConm68cbV7azJxPBirLSvw,28756
|
113 |
+
aiohttp/web_response.py,sha256=iWpJdUDIiyKi5Q6nf6jjqbFFC5B0z0ifW5KMfE8Ykww,27729
|
114 |
+
aiohttp/web_routedef.py,sha256=Y5DPVa7D1uJp37HP6YXrO8Cd1BrEtDyS-fljOUdPk30,6132
|
115 |
+
aiohttp/web_runner.py,sha256=AM3klOcr72AZVGG9-LjYo8vJdHBWgNzDLsmi_aoKfAU,11736
|
116 |
+
aiohttp/web_server.py,sha256=5P-9uPCoPEDkK9ILbvEXmkkJWPhnTxBzdwAXwveyyDk,2587
|
117 |
+
aiohttp/web_urldispatcher.py,sha256=YieNwWXaKdIL6WMVLEavPgStDYM71bAE5Q9emgbX8TQ,40057
|
118 |
+
aiohttp/web_ws.py,sha256=kRoEReJ6TW44RdwpWXf6RM0y-j5iV17GoIHzSS6IFds,18647
|
119 |
+
aiohttp/worker.py,sha256=bkozEd2rAzQS0qs4knnnplOmaZ4TNdYtqWXSXx9djEc,7965
|
gtm/lib/python3.12/site-packages/aiohttp-3.9.3.dist-info/WHEEL
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Wheel-Version: 1.0
|
2 |
+
Generator: bdist_wheel (0.42.0)
|
3 |
+
Root-Is-Purelib: false
|
4 |
+
Tag: cp312-cp312-macosx_10_9_x86_64
|
5 |
+
|
gtm/lib/python3.12/site-packages/aiohttp-3.9.3.dist-info/top_level.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
aiohttp
|
gtm/lib/python3.12/site-packages/aiohttp/.hash/_cparser.pxd.hash
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
f2318883e549f69de597009a914603b0f1b10381e265ef5d98af499ad973fb98
|
gtm/lib/python3.12/site-packages/aiohttp/.hash/_find_header.pxd.hash
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
d067f01423cddb3c442933b5fcc039b18ab651fcec1bc91c577693aafc25cf78
|
gtm/lib/python3.12/site-packages/aiohttp/.hash/_helpers.pyi.hash
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
6682a22524b9d4fc442e123672622be7bdfb6238d9709b7b15b2113b7ca6d52b
|
gtm/lib/python3.12/site-packages/aiohttp/.hash/_helpers.pyx.hash
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
5de2db35fb795ffe227e2f1007c8ba4f2ad1b9aca28cc48edc80c779203cf6e3
|
gtm/lib/python3.12/site-packages/aiohttp/.hash/_http_parser.pyx.hash
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
7f32b0c1595c1a71957a218ece8d3977ed9171caad97df8fcd82aa80addfc5d2
|
gtm/lib/python3.12/site-packages/aiohttp/.hash/_http_writer.pyx.hash
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
6881c0a7c838655e646c645d99971efaf5e310bc3633a7c62b226e39d81842ac
|
gtm/lib/python3.12/site-packages/aiohttp/.hash/_websocket.pyx.hash
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
d57b8e48d0c26f20ebcc5e6e300da2b2a6aeb12b3c9768d64cb0e53432ccf48a
|
gtm/lib/python3.12/site-packages/aiohttp/.hash/hdrs.py.hash
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
bb39f96a09ff8d789dda1fa4cba63464043c06b3de4c62c31abfb07a231cb6ca
|
gtm/lib/python3.12/site-packages/aiohttp/__init__.py
ADDED
@@ -0,0 +1,240 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
__version__ = "3.9.3"
|
2 |
+
|
3 |
+
from typing import TYPE_CHECKING, 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 |
+
if TYPE_CHECKING:
|
108 |
+
# At runtime these are lazy-loaded at the bottom of the file.
|
109 |
+
from .worker import (
|
110 |
+
GunicornUVLoopWebWorker as GunicornUVLoopWebWorker,
|
111 |
+
GunicornWebWorker as GunicornWebWorker,
|
112 |
+
)
|
113 |
+
|
114 |
+
__all__: Tuple[str, ...] = (
|
115 |
+
"hdrs",
|
116 |
+
# client
|
117 |
+
"BaseConnector",
|
118 |
+
"ClientConnectionError",
|
119 |
+
"ClientConnectorCertificateError",
|
120 |
+
"ClientConnectorError",
|
121 |
+
"ClientConnectorSSLError",
|
122 |
+
"ClientError",
|
123 |
+
"ClientHttpProxyError",
|
124 |
+
"ClientOSError",
|
125 |
+
"ClientPayloadError",
|
126 |
+
"ClientProxyConnectionError",
|
127 |
+
"ClientResponse",
|
128 |
+
"ClientRequest",
|
129 |
+
"ClientResponseError",
|
130 |
+
"ClientSSLError",
|
131 |
+
"ClientSession",
|
132 |
+
"ClientTimeout",
|
133 |
+
"ClientWebSocketResponse",
|
134 |
+
"ContentTypeError",
|
135 |
+
"Fingerprint",
|
136 |
+
"InvalidURL",
|
137 |
+
"RequestInfo",
|
138 |
+
"ServerConnectionError",
|
139 |
+
"ServerDisconnectedError",
|
140 |
+
"ServerFingerprintMismatch",
|
141 |
+
"ServerTimeoutError",
|
142 |
+
"TCPConnector",
|
143 |
+
"TooManyRedirects",
|
144 |
+
"UnixConnector",
|
145 |
+
"NamedPipeConnector",
|
146 |
+
"WSServerHandshakeError",
|
147 |
+
"request",
|
148 |
+
# cookiejar
|
149 |
+
"CookieJar",
|
150 |
+
"DummyCookieJar",
|
151 |
+
# formdata
|
152 |
+
"FormData",
|
153 |
+
# helpers
|
154 |
+
"BasicAuth",
|
155 |
+
"ChainMapProxy",
|
156 |
+
"ETag",
|
157 |
+
# http
|
158 |
+
"HttpVersion",
|
159 |
+
"HttpVersion10",
|
160 |
+
"HttpVersion11",
|
161 |
+
"WSMsgType",
|
162 |
+
"WSCloseCode",
|
163 |
+
"WSMessage",
|
164 |
+
"WebSocketError",
|
165 |
+
# multipart
|
166 |
+
"BadContentDispositionHeader",
|
167 |
+
"BadContentDispositionParam",
|
168 |
+
"BodyPartReader",
|
169 |
+
"MultipartReader",
|
170 |
+
"MultipartWriter",
|
171 |
+
"content_disposition_filename",
|
172 |
+
"parse_content_disposition",
|
173 |
+
# payload
|
174 |
+
"AsyncIterablePayload",
|
175 |
+
"BufferedReaderPayload",
|
176 |
+
"BytesIOPayload",
|
177 |
+
"BytesPayload",
|
178 |
+
"IOBasePayload",
|
179 |
+
"JsonPayload",
|
180 |
+
"PAYLOAD_REGISTRY",
|
181 |
+
"Payload",
|
182 |
+
"StringIOPayload",
|
183 |
+
"StringPayload",
|
184 |
+
"TextIOPayload",
|
185 |
+
"get_payload",
|
186 |
+
"payload_type",
|
187 |
+
# payload_streamer
|
188 |
+
"streamer",
|
189 |
+
# resolver
|
190 |
+
"AsyncResolver",
|
191 |
+
"DefaultResolver",
|
192 |
+
"ThreadedResolver",
|
193 |
+
# streams
|
194 |
+
"DataQueue",
|
195 |
+
"EMPTY_PAYLOAD",
|
196 |
+
"EofStream",
|
197 |
+
"FlowControlDataQueue",
|
198 |
+
"StreamReader",
|
199 |
+
# tracing
|
200 |
+
"TraceConfig",
|
201 |
+
"TraceConnectionCreateEndParams",
|
202 |
+
"TraceConnectionCreateStartParams",
|
203 |
+
"TraceConnectionQueuedEndParams",
|
204 |
+
"TraceConnectionQueuedStartParams",
|
205 |
+
"TraceConnectionReuseconnParams",
|
206 |
+
"TraceDnsCacheHitParams",
|
207 |
+
"TraceDnsCacheMissParams",
|
208 |
+
"TraceDnsResolveHostEndParams",
|
209 |
+
"TraceDnsResolveHostStartParams",
|
210 |
+
"TraceRequestChunkSentParams",
|
211 |
+
"TraceRequestEndParams",
|
212 |
+
"TraceRequestExceptionParams",
|
213 |
+
"TraceRequestRedirectParams",
|
214 |
+
"TraceRequestStartParams",
|
215 |
+
"TraceResponseChunkReceivedParams",
|
216 |
+
# workers (imported lazily with __getattr__)
|
217 |
+
"GunicornUVLoopWebWorker",
|
218 |
+
"GunicornWebWorker",
|
219 |
+
)
|
220 |
+
|
221 |
+
|
222 |
+
def __dir__() -> Tuple[str, ...]:
|
223 |
+
return __all__ + ("__author__", "__doc__")
|
224 |
+
|
225 |
+
|
226 |
+
def __getattr__(name: str) -> object:
|
227 |
+
global GunicornUVLoopWebWorker, GunicornWebWorker
|
228 |
+
|
229 |
+
# Importing gunicorn takes a long time (>100ms), so only import if actually needed.
|
230 |
+
if name in ("GunicornUVLoopWebWorker", "GunicornWebWorker"):
|
231 |
+
try:
|
232 |
+
from .worker import GunicornUVLoopWebWorker as guv, GunicornWebWorker as gw
|
233 |
+
except ImportError:
|
234 |
+
return None
|
235 |
+
|
236 |
+
GunicornUVLoopWebWorker = guv # type: ignore[misc]
|
237 |
+
GunicornWebWorker = gw # type: ignore[misc]
|
238 |
+
return guv if name == "GunicornUVLoopWebWorker" else gw
|
239 |
+
|
240 |
+
raise AttributeError(f"module {__name__} has no attribute {name}")
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/__init__.cpython-312.pyc
ADDED
Binary file (4.53 kB). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/abc.cpython-312.pyc
ADDED
Binary file (10.1 kB). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/base_protocol.cpython-312.pyc
ADDED
Binary file (4.2 kB). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/client.cpython-312.pyc
ADDED
Binary file (48.3 kB). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/client_exceptions.cpython-312.pyc
ADDED
Binary file (15.1 kB). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/client_proto.cpython-312.pyc
ADDED
Binary file (10.5 kB). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/client_reqrep.cpython-312.pyc
ADDED
Binary file (54.3 kB). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/client_ws.cpython-312.pyc
ADDED
Binary file (17.1 kB). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/compression_utils.cpython-312.pyc
ADDED
Binary file (8.3 kB). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/connector.cpython-312.pyc
ADDED
Binary file (62 kB). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/cookiejar.cpython-312.pyc
ADDED
Binary file (17.7 kB). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/formdata.cpython-312.pyc
ADDED
Binary file (7.3 kB). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/hdrs.cpython-312.pyc
ADDED
Binary file (7.68 kB). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/helpers.cpython-312.pyc
ADDED
Binary file (44.5 kB). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/http.cpython-312.pyc
ADDED
Binary file (1.69 kB). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/http_exceptions.cpython-312.pyc
ADDED
Binary file (5.61 kB). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/http_parser.cpython-312.pyc
ADDED
Binary file (34.1 kB). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/http_websocket.cpython-312.pyc
ADDED
Binary file (27.4 kB). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/http_writer.cpython-312.pyc
ADDED
Binary file (8.79 kB). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/locks.cpython-312.pyc
ADDED
Binary file (2.46 kB). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/log.cpython-312.pyc
ADDED
Binary file (727 Bytes). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/multipart.cpython-312.pyc
ADDED
Binary file (44.8 kB). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/payload.cpython-312.pyc
ADDED
Binary file (21.6 kB). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/payload_streamer.cpython-312.pyc
ADDED
Binary file (4.14 kB). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/pytest_plugin.cpython-312.pyc
ADDED
Binary file (15.5 kB). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/resolver.cpython-312.pyc
ADDED
Binary file (6.47 kB). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/streams.cpython-312.pyc
ADDED
Binary file (29.9 kB). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/tcp_helpers.cpython-312.pyc
ADDED
Binary file (1.79 kB). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/test_utils.cpython-312.pyc
ADDED
Binary file (32 kB). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/tracing.cpython-312.pyc
ADDED
Binary file (22.5 kB). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/typedefs.cpython-312.pyc
ADDED
Binary file (1.81 kB). View file
|
|
gtm/lib/python3.12/site-packages/aiohttp/__pycache__/web.cpython-312.pyc
ADDED
Binary file (17.1 kB). View file
|
|