skip to navigation
skip to content

aiothrottle 0.1.3

Throttling, flow controlling StreamReader for aiohttp


Throttling, flow controlling StreamReader for aiohttp



aiothrottle is offered under the GPL v3 license.

Source code

The latest developer version is available in a github repository:


import asyncio
import aiohttp
import aiothrottle

def load_file(url):
    response = yield from aiohttp.request("GET", url)

    data = yield from
    with open("", "wb") as file:


# setup the rate limit to 200 KB/s
aiothrottle.limit_rate(200 * 1024)

# download a large file without blocking bandwidth
loop = asyncio.get_event_loop()

# unset the rate limit


  • Upload rate limiting class
  • General socket limiting class


0.1.3 (30-08-2016)

  • Set minimum required Python version to 3.4.2, the same as aiohttp 1.0.0
  • Made aiothrottle compatible with current aiohttp version again (Now using aiohttp.StreamReader._buffer_size)
  • Catching RuntimeError when trying to pause a closing _SSLProtocolTransport

0.1.2 (08-08-2015)

  • Fixed resuming transport too often
  • Added ‘rate_limit’ and ‘throttling’ properties
  • Fixed buffer limit control

0.1.1 (08-02-2015)

  • Added limit_rate() and unlimit_rate() globally and response-wise
  • Raising ValueError on invalid rate limit
  • Cancelling _check_handle in Throttle’s destructor

0.1.0 (08-01-2015)

  • Initial release with basic throttling functionality
File Type Py Version Uploaded on Size
aiothrottle-0.1.3-py3-none-any.whl (md5) Python Wheel 3.5 2016-08-30 7KB
aiothrottle-0.1.3-py3.4.egg (md5) Python Egg 3.4 2016-08-30 10KB
aiothrottle-0.1.3-py3.5.egg (md5) Python Egg 3.5 2016-08-30 10KB (md5)
built for Windows-7
"dumb" binary any 2016-08-30 11KB (md5) Source 2016-08-30 53KB