Skip to content

v1.1.0

Choose a tag to compare

@github-actions github-actions released this 08 Jun 15:00
· 54 commits to main since this release

English

Added

  • AsyncPinger class for executing asynchronous ping operations
  • AsyncPingStream for native async/await support with async iteration
  • Added count parameter to create_ping_stream function
  • Added validation functions for count and timeout parameters
  • Usage examples for PingStream and AsyncPingStream
  • Basic usage examples demonstrating synchronous and asynchronous ping operations
  • Added comprehensive usage examples for PingStream as iterator
  • Added examples for AsyncPingStream async iteration
  • Enhanced documentation for asynchronous ping operations

Changed

  • Improved async ping capabilities and refined interfaces
  • Refactored non-blocking receiver logic in PingStream
  • Refactored sync_stream_example to remove async elements
  • Updated CI configuration to run tests in parallel using pytest-xdist
  • Conditionally compiled IP functions for Windows only
  • Refactored Windows ping implementation for better clarity and maintainability
  • Removed psutil dependency from pytest-xdist configuration
  • Updated version to 1.1.0

Fixed

  • Added AsyncPinger to the export list in __all__
  • Improved error handling and input validation
  • Removed redundant timeout assertion conditions

简体中文

Added

  • AsyncPinger 类:用于执行异步 ping 操作
  • AsyncPingStream:支持原生 async/await 的异步迭代
  • 为 create_ping_stream 函数添加 count 参数
  • 新增 count 和 timeout 参数的验证函数
  • 新增 PingStream 和 AsyncPingStream 的使用示例
  • 新增基础使用示例,演示同步和异步 ping 操作
  • 新增 PingStream 作为迭代器的全面使用示例
  • 新增 AsyncPingStream 异步迭代示例
  • 增强异步 ping 操作文档

Changed

  • 改进异步 ping 功能并优化接口
  • 重构 PingStream 中的非阻塞接收逻辑
  • 重构 sync_stream_example,移除异步元素
  • 更新 CI 配置,使用 pytest-xdist 并行运行测试
  • Windows 平台 IP 函数条件编译优化
  • 重构 Windows ping 实现,提高代码清晰度和可维护性
  • 移除 pytest-xdist 配置中的 psutil 依赖
  • 版本更新至 1.1.0

Fixed

  • 将 AsyncPinger 添加到 __all__ 导出列表
  • 改进错误处理和输入验证
  • 移除冗余的超时断言条件