Загрузить файлы в «venv/Lib/site-packages/websockets-16.0.dist-info»

This commit is contained in:
2026-07-02 21:04:47 +00:00
parent 7f9e19e798
commit a1a61e2d4e
5 changed files with 291 additions and 0 deletions

View File

@@ -0,0 +1 @@
pip

View File

@@ -0,0 +1,179 @@
Metadata-Version: 2.4
Name: websockets
Version: 16.0
Summary: An implementation of the WebSocket Protocol (RFC 6455 & 7692)
Author-email: Aymeric Augustin <aymeric.augustin@m4x.org>
License-Expression: BSD-3-Clause
Project-URL: Homepage, https://github.com/python-websockets/websockets
Project-URL: Changelog, https://websockets.readthedocs.io/en/stable/project/changelog.html
Project-URL: Documentation, https://websockets.readthedocs.io/
Project-URL: Funding, https://tidelift.com/subscription/pkg/pypi-websockets?utm_source=pypi-websockets&utm_medium=referral&utm_campaign=readme
Project-URL: Tracker, https://github.com/python-websockets/websockets/issues
Keywords: WebSocket
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
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: Programming Language :: Python :: 3.14
Requires-Python: >=3.10
Description-Content-Type: text/x-rst
License-File: LICENSE
Dynamic: description
Dynamic: description-content-type
Dynamic: license-file
.. image:: logo/horizontal.svg
:width: 480px
:alt: websockets
|licence| |version| |pyversions| |tests| |docs| |openssf|
.. |licence| image:: https://img.shields.io/pypi/l/websockets.svg
:target: https://pypi.python.org/pypi/websockets
.. |version| image:: https://img.shields.io/pypi/v/websockets.svg
:target: https://pypi.python.org/pypi/websockets
.. |pyversions| image:: https://img.shields.io/pypi/pyversions/websockets.svg
:target: https://pypi.python.org/pypi/websockets
.. |tests| image:: https://img.shields.io/github/checks-status/python-websockets/websockets/main?label=tests
:target: https://github.com/python-websockets/websockets/actions/workflows/tests.yml
.. |docs| image:: https://img.shields.io/readthedocs/websockets.svg
:target: https://websockets.readthedocs.io/
.. |openssf| image:: https://bestpractices.coreinfrastructure.org/projects/6475/badge
:target: https://bestpractices.coreinfrastructure.org/projects/6475
What is ``websockets``?
-----------------------
websockets is a library for building WebSocket_ servers and clients in Python
with a focus on correctness, simplicity, robustness, and performance.
.. _WebSocket: https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API
Built on top of ``asyncio``, Python's standard asynchronous I/O framework, the
default implementation provides an elegant coroutine-based API.
An implementation on top of ``threading`` and a Sans-I/O implementation are also
available.
`Documentation is available on Read the Docs. <https://websockets.readthedocs.io/>`_
.. copy-pasted because GitHub doesn't support the include directive
Here's an echo server with the ``asyncio`` API:
.. code:: python
#!/usr/bin/env python
import asyncio
from websockets.asyncio.server import serve
async def echo(websocket):
async for message in websocket:
await websocket.send(message)
async def main():
async with serve(echo, "localhost", 8765) as server:
await server.serve_forever()
asyncio.run(main())
Here's how a client sends and receives messages with the ``threading`` API:
.. code:: python
#!/usr/bin/env python
from websockets.sync.client import connect
def hello():
with connect("ws://localhost:8765") as websocket:
websocket.send("Hello world!")
message = websocket.recv()
print(f"Received: {message}")
hello()
Does that look good?
`Get started with the tutorial! <https://websockets.readthedocs.io/en/stable/intro/index.html>`_
Why should I use ``websockets``?
--------------------------------
The development of ``websockets`` is shaped by four principles:
1. **Correctness**: ``websockets`` is heavily tested for compliance with
:rfc:`6455`. Continuous integration fails under 100% branch coverage.
2. **Simplicity**: all you need to understand is ``msg = await ws.recv()`` and
``await ws.send(msg)``. ``websockets`` takes care of managing connections
so you can focus on your application.
3. **Robustness**: ``websockets`` is built for production. For example, it was
the only library to `handle backpressure correctly`_ before the issue
became widely known in the Python community.
4. **Performance**: memory usage is optimized and configurable. A C extension
accelerates expensive operations. It's pre-compiled for Linux, macOS and
Windows and packaged in the wheel format for each system and Python version.
Documentation is a first class concern in the project. Head over to `Read the
Docs`_ and see for yourself.
.. _Read the Docs: https://websockets.readthedocs.io/
.. _handle backpressure correctly: https://vorpus.org/blog/some-thoughts-on-asynchronous-api-design-in-a-post-asyncawait-world/#websocket-servers
Why shouldn't I use ``websockets``?
-----------------------------------
* If you prefer callbacks over coroutines: ``websockets`` was created to
provide the best coroutine-based API to manage WebSocket connections in
Python. Pick another library for a callback-based API.
* If you're looking for a mixed HTTP / WebSocket library: ``websockets`` aims
at being an excellent implementation of :rfc:`6455`: The WebSocket Protocol
and :rfc:`7692`: Compression Extensions for WebSocket. Its support for HTTP
is minimal — just enough for an HTTP health check.
If you want to do both in the same server, look at HTTP + WebSocket servers
that build on top of ``websockets`` to support WebSocket connections, like
uvicorn_ or Sanic_.
.. _uvicorn: https://www.uvicorn.org/
.. _Sanic: https://sanic.dev/en/
What else?
----------
Bug reports, patches and suggestions are welcome!
To report a security vulnerability, please use the `Tidelift security
contact`_. Tidelift will coordinate the fix and disclosure.
.. _Tidelift security contact: https://tidelift.com/security
For anything else, please open an issue_ or send a `pull request`_.
.. _issue: https://github.com/python-websockets/websockets/issues/new
.. _pull request: https://github.com/python-websockets/websockets/compare/
Participants must uphold the `Contributor Covenant code of conduct`_.
.. _Contributor Covenant code of conduct: https://github.com/python-websockets/websockets/blob/main/CODE_OF_CONDUCT.md
``websockets`` is released under the `BSD license`_.
.. _BSD license: https://github.com/python-websockets/websockets/blob/main/LICENSE

View File

@@ -0,0 +1,108 @@
../../Scripts/websockets.exe,sha256=y398l_doBz5_S9wqbfSgjBv2zKmlq2GlPOD8sNZGig4,108371
websockets-16.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
websockets-16.0.dist-info/METADATA,sha256=kYsv44IHZloIc5i1QmfnfJ1kPOdwZBABbJ72qItuMDA,6978
websockets-16.0.dist-info/RECORD,,
websockets-16.0.dist-info/WHEEL,sha256=7k6Wcy588iJYe5lf5K095NLg-uoBTnE-T8eHJ92G4_4,101
websockets-16.0.dist-info/entry_points.txt,sha256=Dnhn4dm5EsI4ZMAsHldGF6CwBXZrGXnR7cnK2-XR7zY,51
websockets-16.0.dist-info/licenses/LICENSE,sha256=D0RRSZisognTSC0QIEqK3yqkKW_xV6NqXAki8igGMtM,1538
websockets-16.0.dist-info/top_level.txt,sha256=CMpdKklxKsvZgCgyltxUWOHibZXZ1uYIVpca9xsQ8Hk,11
websockets/__init__.py,sha256=gnZ1a8qhrWVVClaf7lGqkSVQAPPm-cSZ3k3525fozaY,7294
websockets/__main__.py,sha256=h1QpgvR08tO6TfQHuySKKgQiQVXVIoQRKLEx5sVht_M,67
websockets/__pycache__/__init__.cpython-314.pyc,,
websockets/__pycache__/__main__.cpython-314.pyc,,
websockets/__pycache__/auth.cpython-314.pyc,,
websockets/__pycache__/cli.cpython-314.pyc,,
websockets/__pycache__/client.cpython-314.pyc,,
websockets/__pycache__/connection.cpython-314.pyc,,
websockets/__pycache__/datastructures.cpython-314.pyc,,
websockets/__pycache__/exceptions.cpython-314.pyc,,
websockets/__pycache__/frames.cpython-314.pyc,,
websockets/__pycache__/headers.cpython-314.pyc,,
websockets/__pycache__/http.cpython-314.pyc,,
websockets/__pycache__/http11.cpython-314.pyc,,
websockets/__pycache__/imports.cpython-314.pyc,,
websockets/__pycache__/protocol.cpython-314.pyc,,
websockets/__pycache__/proxy.cpython-314.pyc,,
websockets/__pycache__/server.cpython-314.pyc,,
websockets/__pycache__/streams.cpython-314.pyc,,
websockets/__pycache__/typing.cpython-314.pyc,,
websockets/__pycache__/uri.cpython-314.pyc,,
websockets/__pycache__/utils.cpython-314.pyc,,
websockets/__pycache__/version.cpython-314.pyc,,
websockets/asyncio/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
websockets/asyncio/__pycache__/__init__.cpython-314.pyc,,
websockets/asyncio/__pycache__/async_timeout.cpython-314.pyc,,
websockets/asyncio/__pycache__/client.cpython-314.pyc,,
websockets/asyncio/__pycache__/compatibility.cpython-314.pyc,,
websockets/asyncio/__pycache__/connection.cpython-314.pyc,,
websockets/asyncio/__pycache__/messages.cpython-314.pyc,,
websockets/asyncio/__pycache__/router.cpython-314.pyc,,
websockets/asyncio/__pycache__/server.cpython-314.pyc,,
websockets/asyncio/async_timeout.py,sha256=jMKMQcVKWtn09n6lqefqdpSYoMRlP4Ek60RjJ6B6Eco,9253
websockets/asyncio/client.py,sha256=tM0I44Ra5o0VNTdHi7-RoX8SDBHZVpGeZ8g9XwGtVGg,31654
websockets/asyncio/compatibility.py,sha256=ld5lpbBgJ8YGAi3tc1hMiIxuLeQWDg6pKDYBVbSQMl4,816
websockets/asyncio/connection.py,sha256=RvxZpEfj4CFMM0s2WBi9Q5eGpQ9xxrdlZVZOrUULing,50346
websockets/asyncio/messages.py,sha256=5pvFEis6dP0xGLmotFZGxoPJ1rl9i7k1s85i_Ha4TrY,11445
websockets/asyncio/router.py,sha256=98y3YRKtWomjfocLPYz4jGwU6bvL9TN4eAlyvKmUJro,7739
websockets/asyncio/server.py,sha256=G0cSJSp63u37S7cUPmhEJWPdVil7NFDtCXRzIQVxzFU,38938
websockets/auth.py,sha256=NZ60zoE10wklboBHzj4Wof9piVB09jO1bDn_KHN8ZcE,586
websockets/cli.py,sha256=dEUrXN6jOq0-HZbdujpvEHTY2WsATSX2F6czGWNC-58,5514
websockets/client.py,sha256=He7BIvvTGzYbHmp6H31P64wLgGRIAtp87Cht0wdo_qI,14180
websockets/connection.py,sha256=uIRi5jeS3zVIWq8DcEDJPousrYNTItPe0ioKxBr2hOs,335
websockets/datastructures.py,sha256=d7WQmEZTLf5i-_SdER6WM-wH1o7u4Ws2SZAv2wcm-w8,5701
websockets/exceptions.py,sha256=pyrzbaJrSdmwd0PrUKhYNRfFKWOcWR93RphctQzKNj8,13332
websockets/extensions/__init__.py,sha256=HdQaQhOVkCR5RJVRKXG5Xmb6cMpAhLaKgRikYRzO64E,102
websockets/extensions/__pycache__/__init__.cpython-314.pyc,,
websockets/extensions/__pycache__/base.cpython-314.pyc,,
websockets/extensions/__pycache__/permessage_deflate.cpython-314.pyc,,
websockets/extensions/base.py,sha256=Je1VMBHq7_gqq5idsCqMPD87CI6m7zpDSRj_lCL37Rc,3026
websockets/extensions/permessage_deflate.py,sha256=6u4WGX3_k9SzlHAHSuWLw5hSjzrIH711RsF8NcmzgQs,26469
websockets/frames.py,sha256=mePRkg6ZKdWvPZOuEdEFVhoHsLuS8Apl-1vQbcj90e0,13320
websockets/headers.py,sha256=2XFbUE0BzEIftBR2KS2ygeSRIYzPB-a-q35jfdcZ1MA,16632
websockets/http.py,sha256=pQmdzRiYK_SuiwvXIrP_rsJZAj8tGIol76e_TvsPUrg,679
websockets/http11.py,sha256=bg6tnz33FEp11yQmMm3DUyMHzo5y9l84hPJmNvymDMs,16057
websockets/imports.py,sha256=oFdWkxypj_diuqneRuA5OWEXLMQ6pAtj-rKqFU6Pmdg,2895
websockets/legacy/__init__.py,sha256=VS5mRP7oS3kXCcXX7F3vPULmXPFi4VcyKbnv8Lk18MY,287
websockets/legacy/__pycache__/__init__.cpython-314.pyc,,
websockets/legacy/__pycache__/auth.cpython-314.pyc,,
websockets/legacy/__pycache__/client.cpython-314.pyc,,
websockets/legacy/__pycache__/exceptions.cpython-314.pyc,,
websockets/legacy/__pycache__/framing.cpython-314.pyc,,
websockets/legacy/__pycache__/handshake.cpython-314.pyc,,
websockets/legacy/__pycache__/http.cpython-314.pyc,,
websockets/legacy/__pycache__/protocol.cpython-314.pyc,,
websockets/legacy/__pycache__/server.cpython-314.pyc,,
websockets/legacy/auth.py,sha256=wILIJE28YsQKmQcWdPMzmdM_0Sw674dqUo2XGqyUvH4,6721
websockets/legacy/client.py,sha256=p4Iw-r8_0HTl0pnKDxXmzpgdA8EHSUWXWkS4htyCetk,27518
websockets/legacy/exceptions.py,sha256=KrvUEI31DUZs3gl6M-Q-dgsSnsMXzU_bDRuHU6AcKbc,1995
websockets/legacy/framing.py,sha256=X4UdahsxzmHaQ96Lc1h1JxYGQmldJ3lQATAIIBPMQ1s,6590
websockets/legacy/handshake.py,sha256=CRRxkJ96TIgWuoMIL0iol4jp4X7llMA8buX4gfo0SwE,5443
websockets/legacy/http.py,sha256=OPu_UljFJH74nxk5V-jnOOkqzdXcpJ6M0LynIpuZ740,7262
websockets/legacy/protocol.py,sha256=OFcAFHJ8pFj74uNGIjbyeqSkUSXJhBwMfxdKFwBJQFA,65267
websockets/legacy/server.py,sha256=Vaib6rEFl_Xkms8uQObh12u0ndomOiFkOLtNalRg-Vk,46442
websockets/protocol.py,sha256=rmByeSbZrcEbAI2tuTTvGfKD7Sg7jnvwOuOr_sRtY88,28015
websockets/proxy.py,sha256=Vx6ChvQlavAZ2DkzlmoEw5I5e7alDqBCISi_xZotAS0,5119
websockets/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
websockets/server.py,sha256=vQdDh3m2Bkq754OYtC91IdkGwScTFsUexkyJtoq9p40,22379
websockets/speedups.c,sha256=cWPv8E0JKXSneV8b732dwNEbyD5JWJKzyI5bqmGiXaY,6149
websockets/speedups.cp314-win_amd64.pyd,sha256=lyl9lKyK_9NIMe9cxP2auuvEOICXJRoqjmszb5FYVy4,11776
websockets/speedups.pyi,sha256=xJUwsMLc11sH19lvnxlmuwROSIxzQYdvN3Qt5zS0674,105
websockets/streams.py,sha256=MXiB2d6mNsARFXdwXqVa2GHqb8wCxm0ncqtxPcdDFok,4222
websockets/sync/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
websockets/sync/__pycache__/__init__.cpython-314.pyc,,
websockets/sync/__pycache__/client.cpython-314.pyc,,
websockets/sync/__pycache__/connection.cpython-314.pyc,,
websockets/sync/__pycache__/messages.cpython-314.pyc,,
websockets/sync/__pycache__/router.cpython-314.pyc,,
websockets/sync/__pycache__/server.cpython-314.pyc,,
websockets/sync/__pycache__/utils.cpython-314.pyc,,
websockets/sync/client.py,sha256=EOrmXS1WhebA6bsDxeJqOj0-SQjF6Z0Vnp5_DlUpPWE,22741
websockets/sync/connection.py,sha256=KgDAjXoagnNZ5gXuLEbHxEmsCyqYRMkxI4CD6ZsFaiM,42946
websockets/sync/messages.py,sha256=DIyybPDUiIzC6-uvSqc3U7FjDO1B6plAMPrZgaQf2d0,13206
websockets/sync/router.py,sha256=TVsMXN0SIyiP5Sl9NxVC4Ovy-88FPbFQTGQVw5SjOYQ,7385
websockets/sync/server.py,sha256=RkxGcOmPL9NhzBmjs_jACLG5On8o51ghp2wn3XY_Dzg,28420
websockets/sync/utils.py,sha256=JgQVxO_NcQXZd8m6hDeXpSQ_uN6GYF8u9XLHZ7msv3k,1152
websockets/typing.py,sha256=FUGyn9CqzlBNvfCTU0Gm75J0IKYxEFcWRyyKDpGTa6Q,2021
websockets/uri.py,sha256=gohMr47baKGfjhydsaOE1sc8FH_7B8f10SdunNqY2p0,3232
websockets/utils.py,sha256=5itk0xHhs78fw5nQwvrzv21uMFR4I13aF1nkz687hMg,1250
websockets/version.py,sha256=LCt43nUYKAFpXjn8qUUIYqsP2XXsol_Hqb7CoITE1HE,3294

View File

@@ -0,0 +1,2 @@
[console_scripts]
websockets = websockets.cli:main

View File

@@ -0,0 +1 @@
websockets