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:
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:
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.
Metadata
Release files for aionetworking 2.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aionetworking-2.2.0.tar.gz | 57.0 kB | Without provenance | Details for aionetworking-2.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aionetworking-2.2.0-py3-none-any.whl | Python 3 | none | any | Details for aionetworking-2.2.0-py3-none-any.whl |
Total release size: 135.8 kB
Release files / aionetworking-2.2.0.tar.gz
| Download URL | aionetworking-2.2.0.tar.gz |
|---|---|
| Size | 57.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab000db0e4463a1e91984f8a0f373a129ee7c7d0bd83d55629e18c40d82298c0
|
|
BLAKE2b-256 checksum How to use checksums |
18e3a4a59641e83edf461540a1c2dbb882be0ee20ad41ae849248be08cbc9d30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.11
|
Release files / aionetworking-2.2.0-py3-none-any.whl
| Download URL | aionetworking-2.2.0-py3-none-any.whl |
|---|---|
| Size | 78.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
09b62eb859b98e72fef3564a16cb3cb44f4332f13ec6acbc7ded7fbb79eb6eb0
|
|
BLAKE2b-256 checksum How to use checksums |
ee9749ed901291eee067f43b0c50d219d5640e664c1a494639c3265aa49acdf2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.11
|
Security for aionetworking 2.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.