Wsproto

Latest version: v1.2.0

Safety actively analyzes 622778 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

1.2.0

------------------

- Bugfix: When a close frame with status NO_STATUS_RCVD is sent, send
and empty payload.
- Bugfix: Changing both encoding and decoding of the Host, from ascii
to idna.
- Bugfix: Support multiple Sec-WebSocket-Extensions and
Sec-WebSocket-Protocol headers.
- Accept bytes alongside string as path argument in
initiate_upgrade_connection.
- Check the state when sending events, raising if the event cannot be
sent in the current state.

1.1.0

------------------

- Added support for Python 3.10.
- Drop support for Python 3.6, meaning the minimum supported version
is Python 3.7.0.
- Various type checking and code linting improvements.

1.0.0

------------------

- Added support for Python 3.8 and 3.9.
- Prevent invalid window bit sizes.
- Various docs, type checking, tooling and testing improvements.

0.15.0

-------------------

**This contains all the Bugfixes in the 0.14 branch.**

- Drop support for Python 2. Please pin to ~= 0.14.0 if you support
Python 2.
- Drop support for Python 3.5, meaning the minimum supported version
is Python 3.6.1.
- Switch events to be dataclass based, otherwise the API is
consistent.
- Add type hints throughout and support PEP 561 via a py.typed
file. This should allow projects that use wsproto to type check their
usage of wsproto.
- Bugfix prevent the test folder being installed as a package called
test.
- Explicitly require Host header in handshake.
- Drop wsaccel support and utilise the aiohttp/willmcgugan masking
method. wsaccel is unmaintained and this new masking method is
almost as quick.

0.14.1

-------------------

- Loosen the h11 requirement to >= 0.8.1 as wsproto is compatible with
0.9 onwards.
- Stop installing a "test" package on installation.

0.14.0

-------------------

- Bugfix clarify subprotocol type as str not bytes.
- Support HTTP/2 WebSockets. This requires a HTTP/2 parser (not
included), with hyper-h2 recommended. It renames
``handshake_extensions`` and hence is a breaking change.
- Bugfix badly formatted type hints.
- Bugfix minor issues identified by type checking.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.