python-sniffio
Port variant v13
Summary Determine which async library is used (3.13)
BROKEN
Package version 1.3.1
Homepage https://github.com/python-trio/sniffio
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v12
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 15 NOV 2024, 16:08:50 UTC
Port created 17 JUL 2023, 23:40:12 UTC
Subpackage Descriptions
single :alt: Join chatroom :alt: Documentation Status :alt: Latest PyPi version :alt: Latest conda-forge version :alt: Automated test status :alt: Test coverage ================================================================= sniffio: Sniff out which async library your code is running under ================================================================= You're writing a library. You've decided to be ambitious, and support multiple async I/O packages, like [Trio ], and [asyncio ], and ... You've written a bunch of clever code to handle all the differences. But... how do you know *which* piece of clever code to run? This is a tiny package whose only purpose is to let you detect which async library your code is running under. * Documentation: https://sniffio.readthedocs.io * Bug tracker and source code: https://github.com/python-trio/sniffio * License: MIT or Apache License 2.0, your choice * Contributor guide: https://trio.readthedocs.io/en/latest/contributing.html * Code of conduct: Contributors are requested to follow our [code of conduct ] in all project spaces. This library is maintained by the Trio project, as a service to the async Python community as a whole. Quickstart ---------- .. code-block:: python3 from sniffio import current_async_library import trio import asyncio async def print_library(): library = current_async_library() print("This is:", library) # Prints "This is trio" trio.run(print_library) # Prints "This is asyncio" asyncio.run(print_library()) For more details, including how to add support to new async libraries, [please peruse our fine manual].
Configuration Switches (platform-specific settings discarded)
PY312 OFF Build using Python 3.12 PY313 ON Build using Python 3.13
Package Dependencies by Type
Build (only) python313:dev:std
python-pip:single:v13
autoselect-python:single:std
Build and Runtime python313:primary:std
Download groups
main mirror://PYPIWHL/e9/44/75a9c9421471a6c4805dbf2356f7c181a29c1879239abab1ea2cc8f38b40
Distribution File Information
2f6da418d1f1e0fddd844478f41680e794e6051915791a034ff65e5f100525a2 10235 python-src/sniffio-1.3.1-py3-none-any.whl
Ports that require python-sniffio:v13
python-anyio:v13 Layer built on asyncio or trio libraries (3.13)