Skip to main content

Cython speedups for various parts of discord.py

Project description

discord-ext-speedups

Cython speedups for various parts of discord.py

Installation

pip install discord-ext-speedups

Usage

import discord
from discord.ext import speedups
speedups.install()

This monkeypatches all available C extensions into discord.py, replacing the existing ones. This is best done immediately after import discord. To only install specific patches, pass the names to install(). For more info, see the reference section below.

To revert patches, simply call speedups.uninstall() to restore all modules to normal. This function also takes specific module names as arguments. Note: You should probably avoid doing this while you're using the modules or objects this library alters.

Available patches

copus

Cython bindings for libopus. This was written as an experiment in cython and doesn't produce that much of a speedup. A benchmark indicated a 10% speedup of Encoder.encode(), but this also works out to a mere 0.5% of the total time window for this call (20ms/frame).

Reference

install(*install_modules, ignore=False)

Patches in replacement modules.

  • *install_modules (str)

    Module names to install. The list of available module names can be found above, or by calling get_available_patches().

  • ignore (bool)

    If True, install all available modules except the given modules.

Returns a list[str] of module names.

uninstall(*uninstall_modules, ignore=False)

Undo patching and restore the original modules.

  • *uninstall_modules (str)

    Modules names to uninstall. The list of installed module names can be found by calling get_installed_patches().

  • ignore (bool)

    If True, uninstall all available modules except the given modules.

get_available_patches()

Returns a tuple[str] of available module names.

get_installed_patches()

Returns a tuple[str] of installed module names.

Requirements

  • Python 3.6.4+
  • discord.py

Compiling from source requires:

  • cython 0.27.3

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

discord_ext_speedups-0.0.1-py3.7-win-amd64.egg (219.4 kB view details)

Uploaded Source

discord_ext_speedups-0.0.1-py3.7-win32.egg (168.9 kB view details)

Uploaded Source

discord_ext_speedups-0.0.1-py3.6-win-amd64.egg (219.2 kB view details)

Uploaded Source

discord_ext_speedups-0.0.1-py3.6-win32.egg (168.9 kB view details)

Uploaded Source

discord_ext_speedups-0.0.1-cp37-cp37m-win_amd64.whl (215.3 kB view details)

Uploaded CPython 3.7m Windows x86-64

discord_ext_speedups-0.0.1-cp37-cp37m-win32.whl (164.8 kB view details)

Uploaded CPython 3.7m Windows x86

discord_ext_speedups-0.0.1-cp37-cp37m-manylinux2010_x86_64.whl (391.6 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

discord_ext_speedups-0.0.1-cp36-cp36m-win_amd64.whl (215.1 kB view details)

Uploaded CPython 3.6m Windows x86-64

discord_ext_speedups-0.0.1-cp36-cp36m-win32.whl (164.8 kB view details)

Uploaded CPython 3.6m Windows x86

discord_ext_speedups-0.0.1-cp36-cp36m-manylinux2010_x86_64.whl (394.0 kB view details)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

File details

Details for the file discord_ext_speedups-0.0.1-py3.7-win-amd64.egg.

File metadata

  • Download URL: discord_ext_speedups-0.0.1-py3.7-win-amd64.egg
  • Upload date:
  • Size: 219.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for discord_ext_speedups-0.0.1-py3.7-win-amd64.egg
Algorithm Hash digest
SHA256 523c03593913e98068babf8195bfc0e0e4732db4bf8803b39028a43d8bc50a0f
MD5 ec06bbdb8b5e15acda0fa9ab32b2ac36
BLAKE2b-256 9fd88b17ed2dce970834a7ee7323e14f9e484a5518bf13dd8f2ce98d8dfd3e51

See more details on using hashes here.

File details

Details for the file discord_ext_speedups-0.0.1-py3.7-win32.egg.

File metadata

  • Download URL: discord_ext_speedups-0.0.1-py3.7-win32.egg
  • Upload date:
  • Size: 168.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for discord_ext_speedups-0.0.1-py3.7-win32.egg
Algorithm Hash digest
SHA256 960e209a378caab9f00e632b73246e6409bda96f773ece357ebee6b7c2d37d4f
MD5 247a29ee148fc5916b4f15035b7026dc
BLAKE2b-256 6b4c49cd165809bd07a25b4108f51cc6c17c2cce0159d19ba32a428c0cfe9a77

See more details on using hashes here.

File details

Details for the file discord_ext_speedups-0.0.1-py3.7-linux-x86_64.egg.

File metadata

  • Download URL: discord_ext_speedups-0.0.1-py3.7-linux-x86_64.egg
  • Upload date:
  • Size: 204.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for discord_ext_speedups-0.0.1-py3.7-linux-x86_64.egg
Algorithm Hash digest
SHA256 6a501548afa2c551ee72f41e5d49439d91d1789a161db03c00b63cddccb2dc14
MD5 b6f43597b82d92bc2082073c94395bdc
BLAKE2b-256 87dcf506b3ae4674810cdc308989de2dbd78e0f9e41d707411c0121ec1faf108

See more details on using hashes here.

File details

Details for the file discord_ext_speedups-0.0.1-py3.6-win-amd64.egg.

File metadata

  • Download URL: discord_ext_speedups-0.0.1-py3.6-win-amd64.egg
  • Upload date:
  • Size: 219.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for discord_ext_speedups-0.0.1-py3.6-win-amd64.egg
Algorithm Hash digest
SHA256 468b6d6a394ad6abda9e41cdb36b6830ba3ba9dd52b79f10473b5fce46e361aa
MD5 272f8ef7101e191d5ecd1ad880d356e2
BLAKE2b-256 f01398d03672a4480cc3295460a3d06ab07d4da3e0de0ff7e75aa792f5aed3b3

See more details on using hashes here.

File details

Details for the file discord_ext_speedups-0.0.1-py3.6-win32.egg.

File metadata

  • Download URL: discord_ext_speedups-0.0.1-py3.6-win32.egg
  • Upload date:
  • Size: 168.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for discord_ext_speedups-0.0.1-py3.6-win32.egg
Algorithm Hash digest
SHA256 6c961f7143eacc686bcdf1b7db54a48c2dce6baadeaf35f3b927bf7c19d8f985
MD5 9ab48f63e1062ef7ab0f0785c89012a0
BLAKE2b-256 baf78e0f91c4b670e15e60e368ffbdfbb87adf186ef1b3ca1bb3a3200e98299a

See more details on using hashes here.

File details

Details for the file discord_ext_speedups-0.0.1-py3.6-linux-x86_64.egg.

File metadata

  • Download URL: discord_ext_speedups-0.0.1-py3.6-linux-x86_64.egg
  • Upload date:
  • Size: 206.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for discord_ext_speedups-0.0.1-py3.6-linux-x86_64.egg
Algorithm Hash digest
SHA256 4e48216a6a5340c25e0e6f5a2b3b20c46308aaf879de3b5494e5cb4b35519b90
MD5 387457e411fdde243fca9848df11292b
BLAKE2b-256 475cb34070361007704dad61d8d2b99b9e79420e962bcc0e855996ad5786f840

See more details on using hashes here.

File details

Details for the file discord_ext_speedups-0.0.1-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: discord_ext_speedups-0.0.1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 215.3 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for discord_ext_speedups-0.0.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 3ed4abdc0c7becd9a196d0d6cbdb866331faf4d97c5495b990fc5a23b834195b
MD5 7f47846b86a639b936905837ece37295
BLAKE2b-256 590048767d9a8add6da5d423c235692c7cdb90d6f9e92c1dd3556013372fce18

See more details on using hashes here.

File details

Details for the file discord_ext_speedups-0.0.1-cp37-cp37m-win32.whl.

File metadata

  • Download URL: discord_ext_speedups-0.0.1-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 164.8 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for discord_ext_speedups-0.0.1-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 e69cb9ac10f8ebdeeaabb5aece8e9b72af6b9873ab8a0fa113b1f1f262e8d93b
MD5 21e25400569f1f30a1f70b7fe532f862
BLAKE2b-256 0d2d9e285a3a2b68fa6d4c2a8b2df9ca0ee3a37ad49e4de4371f3219ad0081ec

See more details on using hashes here.

File details

Details for the file discord_ext_speedups-0.0.1-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: discord_ext_speedups-0.0.1-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 391.6 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for discord_ext_speedups-0.0.1-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5f5bc7b881c9b65d0ebf7a79073d48bfb6a9f534557800e63b6b3cfc6744e48e
MD5 94ee72c18764f679e421ca889c0ed92d
BLAKE2b-256 bb2f4438007548eb5d9deac0a7427b546a97427cb7404ed44ca595aa56ce2508

See more details on using hashes here.

File details

Details for the file discord_ext_speedups-0.0.1-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for discord_ext_speedups-0.0.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a26aa201337ce209f2fadb786547354543e47f912330c7d70d373538f274203f
MD5 46933e09d9863493234d4e7ab2280df6
BLAKE2b-256 de1d3820503d6457fb2e17054efc17ac9f0d9236b942287e6e6f1f8d828b71e0

See more details on using hashes here.

File details

Details for the file discord_ext_speedups-0.0.1-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: discord_ext_speedups-0.0.1-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 215.1 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for discord_ext_speedups-0.0.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 c955c3e67bb634927b8faf12564a2e7882ea2d82f1122a52aa10c5211084337a
MD5 479e31a4f210c13e135ba98b506fc82a
BLAKE2b-256 fe29e8192e1cb83c16989a4f4712b7e14a834aa644f154c5652b009539c8d7e4

See more details on using hashes here.

File details

Details for the file discord_ext_speedups-0.0.1-cp36-cp36m-win32.whl.

File metadata

  • Download URL: discord_ext_speedups-0.0.1-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 164.8 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for discord_ext_speedups-0.0.1-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 e0de59249914c509a2a981986dd3b96668e7a1f4fbd2bfd7d9610f9c9842da1b
MD5 8363f1cedf1594a427b14c1639e4d5db
BLAKE2b-256 bb0c7fc61558b20de5952b32b7185e582dc9e65f9bc8a56b36fe25ce1ffc3642

See more details on using hashes here.

File details

Details for the file discord_ext_speedups-0.0.1-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: discord_ext_speedups-0.0.1-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 394.0 kB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for discord_ext_speedups-0.0.1-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 b4810f7a62a56f626cf5ac783970a27694aacea9f525c4a9c2870f48d8abc5e8
MD5 cc84866d2ff6ec55b85fbe454276bb95
BLAKE2b-256 559ca6b3739b0aac5d6b4134b1222d13cbacb51f21a20c00b547aa917b6d8759

See more details on using hashes here.

File details

Details for the file discord_ext_speedups-0.0.1-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for discord_ext_speedups-0.0.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e51af22c7d7b7dfb63ffecbc4fa5c03559511d8d821de3230010892cde846996
MD5 21b1c0f5d4e212e3c9a3d2bc55d129d5
BLAKE2b-256 00bdc1718138ecef5e97ad341b6413727478372b31d02d5018613db4bbdcc18d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page