Skip to content

Installation

Requirements

  • Python 3.10 or higher
  • No additional dependencies required
  • uvloop (optional): aiocop works with both standard asyncio and uvloop out of the box

Install from PyPI

The recommended way to install aiocop is from PyPI:

uv add aiocop

Using pip

pip install aiocop

Using poetry

poetry add aiocop

Install from Source

For development or to get the latest changes:

Clone and install

git clone https://github.com/Feverup/aiocop.git
cd aiocop
uv sync

Install with test dependencies

uv sync --extra test

Download tarball

curl -OJL https://github.com/Feverup/aiocop/tarball/master
tar -xzf aiocop-master.tar.gz
cd aiocop-master
uv pip install .

Verify Installation

After installation, verify aiocop is working:

import aiocop

print(f"aiocop version: {aiocop.__version__}")
print(f"Available functions: {len(aiocop.get_blocking_events_dict())} blocking events monitored")

Next Steps