From 2ae63daabc1746814386ed1b8719602ba10e7e6b Mon Sep 17 00:00:00 2001 From: janu8ry Date: Sat, 4 Sep 2021 00:38:04 +0900 Subject: [PATCH] feat: aiohttp speedup --- README.rst | 10 ++++++++++ setup.py | 3 +++ 2 files changed, 13 insertions(+) diff --git a/README.rst b/README.rst index 95bde78729..888844b05c 100644 --- a/README.rst +++ b/README.rst @@ -45,6 +45,14 @@ Otherwise to get voice support you should run the following command: # Windows py -3 -m pip install -U py-cord[voice] +To install additional packages for speedup, run the following command: + +.. code:: sh + # Linux/macOS + python3 -m pip install -U "nextcord[speed]" + # Windows + py -3 -m pip install -U nextcord[speed] + To install the development version, do the following: @@ -59,6 +67,8 @@ Optional Packages ~~~~~~~~~~~~~~~~~~ * `PyNaCl `__ (for voice support) +* `aiodns `__, `Brotli `__, `cchardet `__ (for aiohttp speedup) +* `orjson `__ (for json speedup) Please note that on Linux installing voice you must install the following packages via your favourite package manager (e.g. ``apt``, ``dnf``, etc) before running the above commands: diff --git a/setup.py b/setup.py index 0492fac8fe..bcebc44339 100644 --- a/setup.py +++ b/setup.py @@ -42,6 +42,9 @@ ], 'speed': [ 'orjson>=3.5.4', + 'aiodns>=1.1', + 'Brotli', + 'cchardet', ] }