Metadata-Version: 2.4
Name: aionetworking
Version: 2.2.0
Summary: Various utilities for asyncio networking
Author: Unknown
License-Expression: MIT
Project-URL: Homepage, https://github.com/primal100/aionetworking
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: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Framework :: AsyncIO
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"
Provides-Extra: systemd
Requires-Dist: systemd-python>=235; sys_platform == "linux" and extra == "systemd"
Dynamic: license-file

Various utilities for networking with asyncio

Requires Python 3.10 or later.

## Installation and building

Install with `python -m pip install aionetworking`. Existing extras remain
available as `aionetworking[sftp]`, `aionetworking[optional]`, and
`aionetworking[all]` (SFTP plus optional dependencies).

On Linux, systemd integration is opt-in: install the system development
dependencies (for example, `libsystemd-dev` and `pkg-config` on Debian/Ubuntu),
then run `python -m pip install "aionetworking[systemd]"`. The `all` extra
does not include systemd. Builds no longer detect installed system packages.

Build the wheel and source distribution with:

```sh
python -m pip install build
python -m build
```

Maintainers can run `publish.ps1` or `bash publish.sh` from an activated virtual
environment to build, validate, and upload both distributions to the configured
`aionetworking` Twine repository. These scripts clear old wheel and source
distribution artifacts from `dist` before building.

For development, use `python -m pip install -e ".[all]"` and install
`requirements_tests.txt`. Packaging configuration lives in `pyproject.toml`;
the version and dependency requirement files remain the sources of truth.

## 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.
