FICHA · MANJARO

python-sniffio

Sniff out which async library your code is running under

  • Library
  • Dev
  • Dependency only
official+codex · reviewed · May 28, 2026 description in en

Description

Detects whether Python code is running under an async library such as asyncio, Trio, or Curio. It helps libraries adapt behavior without forcing applications to pass the async backend explicitly.

Developers use it as a small compatibility layer in async code. Detection is a helper, not a substitute for testing each supported backend and cancellation behavior.

Permissions

Permissions not analysed for this source yet.