discord.py

An API wrapper for Discord written in Python.

https://github.com/rapptz/discord.py

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    4 of 445 committers (0.9%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (5.3%) to scientific vocabulary

Keywords

bot discord discord-api discord-bot discord-py python python-3

Keywords from Contributors

asyncio aiohttp cog http-client http-server progress-bar codeformatter formatter ansi-colors tables
Last synced: 6 months ago · JSON representation

Repository

An API wrapper for Discord written in Python.

Basic Info
Statistics
  • Stars: 15,656
  • Watchers: 254
  • Forks: 3,882
  • Open Issues: 143
  • Releases: 0
Topics
bot discord discord-api discord-bot discord-py python python-3
Created over 10 years ago · Last pushed 6 months ago
Metadata Files
Readme Contributing Funding License

README.ja.rst

discord.py
==========

.. image:: https://discord.com/api/guilds/336642139381301249/embed.png
   :target: https://discord.gg/nXzj3dg
   :alt: Discordサーバーの招待
.. image:: https://img.shields.io/pypi/v/discord.py.svg
   :target: https://pypi.python.org/pypi/discord.py
   :alt: PyPIのバージョン情報
.. image:: https://img.shields.io/pypi/pyversions/discord.py.svg
   :target: https://pypi.python.org/pypi/discord.py
   :alt: PyPIのサポートしているPythonのバージョン

discord.py は機能豊富かつモダンで使いやすい、非同期処理にも対応したDiscord用のAPIラッパーです。

主な特徴
-------------

- ``async`` と ``await`` を使ったモダンなPythonらしいAPI。
- 適切なレート制限処理
- メモリと速度の両方を最適化。

インストール
-------------

**Python 3.8 以降のバージョンが必須です**

完全な音声サポートなしでライブラリをインストールする場合は次のコマンドを実行してください:

.. code:: sh

    # Linux/macOS
    python3 -m pip install -U discord.py

    # Windows
    py -3 -m pip install -U discord.py

音声サポートが必要なら、次のコマンドを実行しましょう:

.. code:: sh

    # Linux/macOS
    python3 -m pip install -U discord.py[voice]

    # Windows
    py -3 -m pip install -U discord.py[voice]


開発版をインストールしたいのならば、次の手順に従ってください:

.. code:: sh

    $ git clone https://github.com/Rapptz/discord.py
    $ cd discord.py
    $ python3 -m pip install -U .[voice]


オプションパッケージ
~~~~~~~~~~~~~~~~~~~~~~

* PyNaCl (音声サポート用)

Linuxで音声サポートを導入するには、前述のコマンドを実行する前にお気に入りのパッケージマネージャー(例えば ``apt`` や ``dnf`` など)を使って以下のパッケージをインストールする必要があります:

* libffi-dev (システムによっては ``libffi-devel``)
* python-dev (例えばPython 3.8用の ``python3.8-dev``)

簡単な例
--------------

.. code:: py

    import discord

    class MyClient(discord.Client):
        async def on_ready(self):
            print('Logged on as', self.user)

        async def on_message(self, message):
            # don't respond to ourselves
            if message.author == self.user:
                return

            if message.content == 'ping':
                await message.channel.send('pong')

    intents = discord.Intents.default()
    intents.message_content = True
    client = MyClient(intents=intents)
    client.run('token')

Botの例
~~~~~~~~~~~~~

.. code:: py

    import discord
    from discord.ext import commands

    intents = discord.Intents.default()
    intents.message_content = True
    bot = commands.Bot(command_prefix='>', intents=intents)

    @bot.command()
    async def ping(ctx):
        await ctx.send('pong')

    bot.run('token')

examplesディレクトリに更に多くのサンプルがあります。

リンク
------

- `ドキュメント `_
- `公式Discordサーバー `_
- `Discord API `_

Owner

  • Name: Danny
  • Login: Rapptz
  • Kind: user

GitHub Events

Total
  • Create event: 6
  • Commit comment event: 8
  • Issues event: 116
  • Watch event: 991
  • Delete event: 3
  • Issue comment event: 428
  • Push event: 169
  • Pull request review comment event: 265
  • Pull request review event: 211
  • Pull request event: 311
  • Fork event: 244
Last Year
  • Create event: 6
  • Commit comment event: 8
  • Issues event: 116
  • Watch event: 991
  • Delete event: 3
  • Issue comment event: 428
  • Push event: 169
  • Pull request review comment event: 265
  • Pull request review event: 211
  • Pull request event: 311
  • Fork event: 244

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 5,220
  • Total Committers: 445
  • Avg Commits per committer: 11.73
  • Development Distribution Score (DDS): 0.399
Past Year
  • Commits: 167
  • Committers: 43
  • Avg Commits per committer: 3.884
  • Development Distribution Score (DDS): 0.784
Top Committers
Name Email Commits
Rapptz r****z@g****m 3,135
Nadir Chowdhury c****0@o****m 149
Josh j****t@g****m 142
khazhyk k****y@g****m 69
Sebastian Law 4****w 56
Soheab 3****b 55
Puncher 6****1 55
z03h 7****h 53
jack1142 6****2 50
Steve C d****3@g****m 46
Hornwitser d****d@h****o 42
Alex Nørgaard U****a@A****v 40
Lilly Rose Berner l****y@l****v 38
Imayhaveborkedit i****t 36
apple502j 3****j 35
Stocker 4****C 35
Michael H m****l@m****h 32
bmintz b****z@p****m 28
owocado 2****o 26
Bryan Forbes b****n@r****t 26
James Hilton-Balfe g****t@g****m 23
Maya 1****e 21
DA344 1****4 20
I. Ahmad 5****d 18
github-actions[bot] 4****] 18
Mikey 8****y 17
Devon R G****s 16
Harmon H****8@g****m 15
Myst(MysterialPy) m****y@g****m 14
Vexs m****d@g****m 13
and 415 more...

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 313
  • Total pull requests: 785
  • Average time to close issues: about 1 month
  • Average time to close pull requests: about 1 month
  • Total issue authors: 275
  • Total pull request authors: 199
  • Average comments per issue: 2.9
  • Average comments per pull request: 1.37
  • Merged pull requests: 438
  • Bot issues: 0
  • Bot pull requests: 7
Past Year
  • Issues: 88
  • Pull requests: 331
  • Average time to close issues: 3 days
  • Average time to close pull requests: 16 days
  • Issue authors: 76
  • Pull request authors: 77
  • Average comments per issue: 1.22
  • Average comments per pull request: 1.09
  • Merged pull requests: 172
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • 2br-2b (6)
  • EricPanDev (4)
  • SirPigari (4)
  • TheRoskomnadzor (4)
  • PythonCoderAS (3)
  • Soheab (3)
  • lexicalunit (2)
  • modernNeo (2)
  • wookie184 (2)
  • LostLuma (2)
  • simoovara (2)
  • Luc1412 (2)
  • 0xSage (2)
  • shark-speare (2)
  • RazzerDE (2)
Pull Request Authors
  • Soheab (95)
  • Puncher1 (54)
  • DA-344 (52)
  • mikeshardmind (43)
  • owocado (38)
  • AbstractUmbra (22)
  • imayhaveborkedit (20)
  • z03h (16)
  • bijij (15)
  • LeoCx1000 (14)
  • dolfies (14)
  • iyad-f (14)
  • nkjh104 (8)
  • Jackenmen (8)
  • lmaotrigine (7)
Top Labels
Issue Labels
unconfirmed bug (119) feature request (72) invalid (27) as designed (25) bug (18) wontfix (14) discord limitation (12) off-topic (8) duplicate (6) question (6) discord bug (6) no repro (4) dep bug (3) needs info (3) RFC (1) pending (1) suggestion (1)
Pull Request Labels
pending (16) guide (15) merged (2) as designed (2) stale (2) needs review (2) breaking change (1)

Packages

  • Total packages: 15
  • Total downloads:
    • pypi 2,841,092 last-month
  • Total docker downloads: 88,002
  • Total dependent packages: 235
    (may contain duplicates)
  • Total dependent repositories: 19,043
    (may contain duplicates)
  • Total versions: 331
  • Total maintainers: 8
pypi.org: discord.py

A Python wrapper for the Discord API

  • Documentation: https://discordpy.readthedocs.io/en/latest/
  • License: The MIT License (MIT) Copyright (c) 2015-present Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  • Latest release: 2.6.3
    published 6 months ago
  • Versions: 85
  • Dependent Packages: 150
  • Dependent Repositories: 14,594
  • Downloads: 2,522,170 Last month
  • Docker Downloads: 79,847
Rankings
Dependent repos count: 0.1%
Forks count: 0.1%
Downloads: 0.1%
Dependent packages count: 0.1%
Stargazers count: 0.1%
Average: 0.2%
Docker downloads count: 0.7%
Maintainers (1)
Last synced: 6 months ago
pypi.org: discord

A mirror package for discord.py. Please install that instead.

  • Versions: 13
  • Dependent Packages: 85
  • Dependent Repositories: 4,437
  • Downloads: 318,631 Last month
  • Docker Downloads: 8,155
Rankings
Forks count: 0.1%
Downloads: 0.1%
Stargazers count: 0.1%
Dependent repos count: 0.1%
Dependent packages count: 0.2%
Average: 0.3%
Docker downloads count: 1.3%
Maintainers (1)
Last synced: 6 months ago
pypi.org: discord-python-api

A Python wrapper for the Discord API

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Forks count: 0.1%
Stargazers count: 0.2%
Average: 2.9%
Dependent packages count: 4.8%
Dependent repos count: 6.3%
Last synced: 6 months ago
proxy.golang.org: github.com/Rapptz/discord.py
  • Versions: 84
  • Dependent Packages: 0
  • Dependent Repositories: 2
Rankings
Forks count: 0.1%
Stargazers count: 0.5%
Average: 3.4%
Dependent repos count: 3.5%
Dependent packages count: 9.6%
Last synced: 6 months ago
proxy.golang.org: github.com/rapptz/discord.py
  • Versions: 84
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 1.6%
Average: 4.1%
Dependent packages count: 6.5%
Last synced: 6 months ago
pypi.org: discord-api-wrapper

A Python wrapper for the Discord API

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 4.8%
Average: 5.6%
Dependent repos count: 6.3%
Last synced: about 1 year ago
pypi.org: coolcord.py

A Python wrapper for the Discord API

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 34 Last month
Rankings
Forks count: 0.1%
Stargazers count: 0.2%
Dependent packages count: 4.8%
Average: 5.9%
Dependent repos count: 6.3%
Downloads: 17.9%
Maintainers (1)
Last synced: 7 months ago
pypi.org: discord-py-api

A Python wrapper for the Discord API

  • Versions: 47
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 122 Last month
Rankings
Forks count: 0.1%
Stargazers count: 0.1%
Average: 9.3%
Dependent packages count: 10.1%
Downloads: 14.4%
Dependent repos count: 21.5%
Maintainers (1)
Last synced: 6 months ago
pypi.org: fightman01dc.pymod

A python wrapper for the Discord API

  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 22 Last month
Rankings
Forks count: 0.1%
Stargazers count: 0.1%
Dependent packages count: 6.6%
Average: 14.5%
Dependent repos count: 30.6%
Downloads: 34.9%
Maintainers (1)
Last synced: 6 months ago
pypi.org: maxcord.py

A Python wrapper for the Discord API

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 17 Last month
Rankings
Forks count: 0.1%
Stargazers count: 0.1%
Dependent packages count: 6.6%
Average: 15.3%
Dependent repos count: 30.6%
Downloads: 39.1%
Maintainers (1)
Last synced: 6 months ago
pypi.org: discord.pyaio

A python wrapper for the Discord API

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 2
  • Downloads: 22 Last month
Rankings
Forks count: 0.1%
Stargazers count: 0.1%
Dependent packages count: 10.1%
Dependent repos count: 11.5%
Average: 16.6%
Downloads: 61.2%
Maintainers (1)
Last synced: 6 months ago
pypi.org: temp-discordpy-without-websockets-requirement

A python wrapper for the Discord API

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 9 Last month
Rankings
Forks count: 0.1%
Stargazers count: 0.1%
Dependent packages count: 10.1%
Average: 16.9%
Dependent repos count: 21.5%
Downloads: 52.5%
Maintainers (1)
Last synced: 6 months ago
pypi.org: kko-discord

A Python wrapper for the Discord API

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 9 Last month
Rankings
Forks count: 0.1%
Stargazers count: 0.1%
Dependent packages count: 10.1%
Average: 17.5%
Dependent repos count: 21.5%
Downloads: 55.7%
Maintainers (1)
Last synced: 6 months ago
conda-forge.org: discord.py
  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 5
Rankings
Forks count: 1.8%
Stargazers count: 2.4%
Dependent repos count: 14.8%
Average: 17.6%
Dependent packages count: 51.6%
Last synced: 6 months ago
pypi.org: discord.py-slipstream-fork

A Python wrapper for the Discord API

  • Documentation: https://discordpy.readthedocs.io/en/latest/
  • License: The MIT License (MIT) Copyright (c) 2015-present Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  • Latest release: 2.6.0a0
    published 8 months ago
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 56 Last month
Rankings
Dependent packages count: 8.9%
Average: 29.5%
Dependent repos count: 50.1%
Maintainers (1)
Last synced: 6 months ago

Dependencies

.github/workflows/build.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
.github/workflows/crowdin_download.yml actions
  • actions/checkout v2 composite
  • actions/github-script v3 composite
  • peter-evans/create-pull-request v3 composite
.github/workflows/crowdin_upload.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
.github/workflows/lint.yml actions
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
  • actions/setup-python v4 composite
  • jakebailey/pyright-action v1 composite
.github/workflows/test.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
requirements.txt pypi
  • aiohttp >=3.7.4,<4
pyproject.toml pypi
setup.py pypi