Skip to content

Commit

Permalink
feat: aiohttp speedup
Browse files Browse the repository at this point in the history
  • Loading branch information
janu8ry committed Sep 3, 2021
1 parent 8139e4f commit 2ae63da
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -59,6 +67,8 @@ Optional Packages
~~~~~~~~~~~~~~~~~~

* `PyNaCl <https://pypi.org/project/PyNaCl/>`__ (for voice support)
* `aiodns <https://pypi.org/project/aiodns/>`__, `Brotli <https://pypi.org/project/Brotli/>`__, `cchardet <https://pypi.org/project/cchardet/>`__ (for aiohttp speedup)
* `orjson <https://pypi.org/project/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:

Expand Down
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
],
'speed': [
'orjson>=3.5.4',
'aiodns>=1.1',
'Brotli',
'cchardet',
]
}

Expand Down

0 comments on commit 2ae63da

Please sign in to comment.