Skip to content

v2.9.5

Compare
Choose a tag to compare
@lumina37 lumina37 released this 05 Oct 14:02
· 883 commits to master since this release
8ad6bda

贴吧接口层

新增特性

  • client.Client 新增类方法 hash2image 用于通过百度图床hash获取指定尺寸的图片
  • 新增针对 Python3.11 的支持

变化特性

  • 使用内置函数 bytes.hex 替代 binascii.hexlify
  • Client._unpack_ws_bytes 现在使用 memoryview 节省了解析过程中不必要的内存复制
  • 优化 Client._init_websocket 中的protobuf封装流程
  • typedefs.ProtocolText 不再支持运行时类型检查

bug修复

  • 使用 importlib.resources 修复了配置文件模板无法正确生成的bug
  • client._ForumInfoCache 现在会正确地使用 OrderedDict 而不是 dict 作为缓存容器

应用接口层

新增特性

  • reviewer.BaseReviewer 新增类方法 has_QRcode 用于判断图像是否包含二维码

变化特性

  • reviewer.BaseReviewer 的类方法 scan_QRcode 更名为 decode_QRcode