aiohappyeyeballs
Happy Eyeballs for asyncio, currently at version 2.6.1. The library is actively maintained and facilitates easy connection establishment with fallback strategies using asyncio.
Warnings
- breaking Import paths have changed in v2.5.0. Ensure you import using the new structure.
- gotcha Python versions below 3.9.2 may lead to a TypeError during import.
Install
-
pip install aiohappyeyeballs
Imports
- HappyEyeballs
from aiohappyeyeballs import HappyEyeballs
Quickstart
import asyncio
from aiohappyeyeballs import HappyEyeballs
async def main():
resolver = HappyEyeballs()
addr = await resolver.resolve('example.com')
print(addr)
asyncio.run(main())