Skip to main content

Asynchronous networking library for IP interface and address management

Project description

aionetiface

Python: >= 3.5 asyncio Windows, Linux, Mac, BSD, Android

Part of the Warpgate project: https://www.warpgate.io/

Event loops: Selector, Proactor (Windows), "CustomEventLoop" (aionetifaces slightly better version of selector), uvloop

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.

   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.16.tar.gz (408.9 kB 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.16-py3-none-any.whl (373.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aionetiface-0.0.16.tar.gz
  • Upload date:
  • Size: 408.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.8.2 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/1.0.0 tqdm/4.64.1 CPython/3.5.10

File hashes

Hashes for aionetiface-0.0.16.tar.gz
Algorithm Hash digest
SHA256 09675dcde4167890de7fc1301220784d06932504199ba84ce38713bcee8d6872
MD5 c3c020e318a26fac11a9a95a36f461be
BLAKE2b-256 f58c2704f0a8ae8a85a87fe1a7729546e9c2f23933d26976b6f69153d3602c3f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aionetiface-0.0.16-py3-none-any.whl
  • Upload date:
  • Size: 373.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.8.2 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/1.0.0 tqdm/4.64.1 CPython/3.5.10

File hashes

Hashes for aionetiface-0.0.16-py3-none-any.whl
Algorithm Hash digest
SHA256 3a88299c26c310585ea705b979bbeac1604ddce02e7b599ece8b13fbe530d0ae
MD5 7f2ec7bd22b347e6a8171e16b21ddd67
BLAKE2b-256 cc758168ec32362439682c2948f617508cb24ffbae8b04cb6a692da1666a9e40

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