Personal tools
Skip to content. | Skip to navigation
aiodns provides a simple way for doing asynchronous DNS resolutions with a synchronous looking interface by using pycares.
aiofiles is an Apache2 licensed library, written in Python, for handling local disk files in asyncio applications.
This library exists to allow connecting with Happy Eyeballs (RFC 8305) when you already have a list of addrinfo and not a DNS name. The stdlib version of loop.create_connection() will only work when you pass in an unresolved name which is not a good fit when using DNS caching or resolving names via another method such as zeroconf.
Python HTTP client/server for asyncio which supports both the client and the server side of the HTTP protocol, client and server websocket, and webservers with middlewares and pluggable routing.
aiohttp_jinja2 jinja2_ template renderer for aiohttp.web__.
The library is a set of useful tools for aiohttp.web server. The full list of tools is: AllowedHosts – restrict a set of incoming connections to allowed hosts only. BasicAuth – protect web application by basic auth authorization. Cloudflare – make sure that web application is protected by CloudFlare. ForwardedRelaxed and ForwardedStrict – process Forwarded HTTP header and modify corresponding scheme, host, remote attributes in strong secured and relaxed modes. Secure – ensure that web application is handled by HTTPS (SSL/TLS) only, redirect plain HTTP to HTTPS automatically. XForwardedRelaxed and XForwardedStrict – the same as ForwardedRelaxed and ForwardedStrict but process old-fashion X-Forwarded-* headers instead of new standard Forwarded. Read https:/aiohttp-remotes.readthedocs.io for more information. The library was donated by Ocean S.A. https:/ocean.io/ Thanks to the company for contribution.
AIOHTTP XMLRPC .. image::
aioitertools Implementation of itertools, builtins, and more for AsyncIO and mixed-type iterables. Install aioitertools requires Python 3.6 or newer. You can install it from PyPI: $ pip install aioitertools Usage aioitertools shadows the standard library whenever possible to provide asynchronous version of the modules and functions you already know. It's fully compatible with standard iterators and async iterators alike, giving you one unified, familiar interface for interacting with iterable objects: from aioitertools import iter, next, map, zip something = iter(...) first_item = await next(something) async for item in iter(something): ... async def fetch(url): response = await aiohttp.request(...) return response.json async for value in map(fetch, MANY_URLS): ... async for a, b in zip(something, something_else): ... aioitertools emulates the entire itertools module, offering the same function signatures, but as async generators. All functions suppor
aiolimiter Introduction An efficient implementation of a rate limiter for asyncio. This project implements the Leaky bucket algorithm, giving you precise control over the rate a code section can be entered: from aiolimiter import AsyncLimiter rate_limit = AsyncLimiter(100, 30) async def some_coroutine(): async with rate_limit: await do_something() It was first developed as an answer on Stack Overflow.