Skip to content

v0.8.0b1

Pre-release
Pre-release

Choose a tag to compare

@aisk aisk released this 15 Nov 15:09
· 3 commits to master since this release

This is a beta pre-release of 0.8.0. Please give it a try and report any issues.

Breaking Changes

  • Python 3.10+ is now required. Support for Python 3.7, 3.8 and 3.9 has been dropped (0c7b885).
  • asyncio server client_timeout is now an idle timeout. It used to bound the whole lifetime of a client connection; it now applies to each read and flush, matching the behavior of the sync server. Long-lived persistent connections are no longer cut off after client_timeout as long as they stay active. make_aio_server(unix_socket=...) now honors client_timeout as well (7d10f47).

Highlights

  • Add THeader transport and protocol (121544a)
  • Add Gunicorn worker classes thriftpy2.contrib.gunicorn.ThriftSyncWorker and ThriftAsyncWorker (b10cec9)
  • Add async transport and protocol factory types for asyncio (2c7c373)
  • Build and test wheels for Python 3.15 (287c2db)

Bug Fixes

  • Fix the Apache JSON protocol replaying the first request on persistent connections (82dc039)
  • Fix the Apache JSON protocol writing nested containers of scalar types (0e93cec)
  • Skip mismatched field types in the pure Python binary protocol (d3bfa3a)
  • Skip lists and sets with mismatched element types in the compact protocol (bcba860)
  • Fix map key and value type mismatch detection (c191915)
  • Decode method names in the asyncio binary protocol in non-strict mode (31d4029)
  • Raise EOF from TCyMemoryBuffer.c_read on insufficient data (6c7bf70)
  • Raise an error when using an undefined type in a thrift file (a420dfa)
  • Fix include_dirs and timeout type annotations rejecting valid arguments (46ba00b)
  • Share the compact protocol write path in asyncio instead of inheriting the sync class (f59e78b)
  • Fix building on FreeBSD, NetBSD and DragonFly (436ff77)
  • Fix setuptools warnings when building distributions (32ce561)

CI & Tests

  • Add a FreeBSD CI job (e2f1cfe)
  • Publish to PyPI automatically from the build workflow on version tags (76bb60b)
  • Make server tests use free ports and readiness checks, and fix flaky Windows / Unix socket tests (15c7411, aaf3ead, 170caa6)

The max_depth limit for the binary protocols and the cybin stack overflow guard (dd8ce95, 90f317e, 43977f3) are also included; they were already backported to 0.7.1.

Full Changelog: v0.7.0...v0.8.0b1