
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
aiothrottle
Advanced tools
Throttling, flow controlling StreamReader for aiohttp
.. image:: https://img.shields.io/pypi/v/aiothrottle.svg :target: https://pypi.python.org/pypi/aiothrottle :alt: Package Version
.. image:: https://travis-ci.org/panda73111/aiothrottle.svg?branch=master :target: https://travis-ci.org/panda73111/aiothrottle :alt: Build Status
.. image:: https://coveralls.io/repos/panda73111/aiothrottle/badge.svg?branch=master&service=github :target: https://coveralls.io/github/panda73111/aiothrottle?branch=master :alt: Coverage Status
.. image:: https://readthedocs.org/projects/aiothrottle/badge/?version=latest :target: https://readthedocs.org/projects/aiothrottle/?badge=latest :alt: Documentation Status
.. image:: https://img.shields.io/pypi/pyversions/aiothrottle.svg :target: https://www.python.org/ :alt: Python Version
.. image:: https://img.shields.io/pypi/l/aiothrottle.svg :target: http://opensource.org/licenses/GPL-3.0 :alt: GPLv3
aiothrottle is offered under the GPL v3 license.
https://aiothrottle.readthedocs.org/
The latest developer version is available in a github repository: https://github.com/panda73111/aiothrottle
.. code:: python
import asyncio
import aiohttp
import aiothrottle
@asyncio.coroutine
def load_file(url):
response = yield from aiohttp.request("GET", url)
data = yield from response.read()
with open("largefile.zip", "wb") as file:
file.write(data)
response.close()
# 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()
loop.run_until_complete(load_file(
"http://example.com/largefile.zip"))
# unset the rate limit
aiothrottle.unlimit_rate()
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
Fixed resuming transport too often
Added 'rate_limit' and 'throttling' properties
Fixed buffer limit control
Added limit_rate() and unlimit_rate() globally and response-wise
Raising ValueError on invalid rate limit
Cancelling _check_handle in Throttle's destructor
FAQs
Throttling, flow controlling StreamReader for aiohttp
We found that aiothrottle demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.