Skip to main content

Asynchronous networking library

Project description

aionetiface

Aionetiface is a networking library for >= Python 3.5 that supports multi-interface networking on most modern OSes. It includes back-ported patches from recent Python versions to make asyncio work better on older versions of Python as well as new features that aren't possible with asyncio today. EG:

   from aionetiface import *
   nic = await Interface() # Or add a name there "eth0"
   # nic_list = await list_interfaces()

You can use aionetiface to write software that works across multiple networks (like VPNs, proxies, file software, servers, etc.) The software has many interesting features that set it apart from other libraries like being able to correctly identify external addressing information and making that easy to use.

   # Bind to the first external IPv6 available
   route = nic.rp[IP6][0]
   pipe = await Pipe(TCP, ("example.com", 80), route).connect()

Above, shows an example of a unified interface for both client and server code based around the idea of "pipes." Programming can be done in a similar way to Python's regular protocol classes (callback style) or awaiting the pipe directly.

That's the tip of the ice berg though -- and the deeper you go -- the more interesting (and maybe bizarre) things you will discover.

python3 -m pip install aionetiface

https://aionetiface.readthedocs.io/en/latest/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aionetiface-0.0.8.tar.gz (3.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aionetiface-0.0.8-py3-none-any.whl (190.7 kB view details)

Uploaded Python 3

File details

Details for the file aionetiface-0.0.8.tar.gz.

File metadata

  • Download URL: aionetiface-0.0.8.tar.gz
  • Upload date:
  • Size: 3.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for aionetiface-0.0.8.tar.gz
Algorithm Hash digest
SHA256 f12404a6f4f5b68d98e1579a753c7953998a23ca9c35e451f41c2b8473190740
MD5 7c024a1c7e9cc9aac8dce10b5ca963ea
BLAKE2b-256 81b00937c13ee1adcfed836df3c066e08cbf52dd84b9639abb72dc4b9010b9ca

See more details on using hashes here.

File details

Details for the file aionetiface-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: aionetiface-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 190.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for aionetiface-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 674dbcdeb1ba6634e7f960e0ef1f8c075258691827bdaa3b35c224bd16822c66
MD5 1a10df11a89f7675ff1b485e84c7ee20
BLAKE2b-256 dfe3b91aed9b2e17c49eb76137224099df79863781317782cd14a8d1755e5b4a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page