Metadata-Version: 2.4
Name: aionetworking
Version: 2.1.1
Summary: Various utilities for asyncio networking
Home-page: https://github.com/primal100/aionetworking
Author: Unknown
License: MIT License
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Framework :: AsyncIO
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: aiofiles>=25.1.0
Requires-Dist: inflect>=7.6.0
Provides-Extra: sftp
Requires-Dist: asyncssh>=2.24.1; extra == "sftp"
Requires-Dist: pamela>=1.2.0; os_name == "posix" and extra == "sftp"
Requires-Dist: pywin32>=312; os_name == "nt" and extra == "sftp"
Provides-Extra: optional
Requires-Dist: psutil>=7.2.2; extra == "optional"
Requires-Dist: pyyaml>=6.0.3; extra == "optional"
Requires-Dist: uvloop>=0.23.0; os_name == "posix" and extra == "optional"
Provides-Extra: all
Requires-Dist: asyncssh>=2.24.1; extra == "all"
Requires-Dist: pamela>=1.2.0; os_name == "posix" and extra == "all"
Requires-Dist: pywin32>=312; os_name == "nt" and extra == "all"
Requires-Dist: psutil>=7.2.2; extra == "all"
Requires-Dist: pyyaml>=6.0.3; extra == "all"
Requires-Dist: uvloop>=0.23.0; os_name == "posix" and extra == "all"
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

Various utilities for networking with asyncio

Requires Python 3.10 or later.

## Selecting an event loop

Pass a loop factory instead of changing the global asyncio event-loop policy:

```python
from aionetworking.loops import get_loop_factory, run

async def main():
    ...

run(main(), loop_factory=get_loop_factory('selector'))
```

Available loop names are `selector`, `proactor` (Windows), and `uvloop`
(POSIX, with uvloop installed). Omitting the factory selects Proactor on
Windows and Selector on POSIX. Python 3.11+ uses `asyncio.Runner`; Python
3.10 uses a compatibility runner with task cancellation and loop cleanup.

`run_server()`, `run_server_default_tags()`, and methods decorated with
`run_in_loop` also accept a keyword-only `loop_factory` argument. The sample
server and benchmark retain their `--loop` option. Tests select their loop
through `pytest --loop=selector` (or another supported name).

The former `set_loop_policy()` and individual policy-setting helpers have
been removed. Loop detection inspects the running loop, so `is_selector()`
and `is_proactor()` must be called while a loop is running. Default port
helpers no longer inspect global loop configuration; their optional
`loop_type` argument selects a loop-specific port explicitly.
