# discord.py
discord.py is an API wrapper for Discord written in Python.
This was written to allow easier writing of bots or chat logs.
## Installing
Installing is pretty easy.
```
pip install discord.py
```
Will install the latest 'stable' version of the library.
### This module is alpha!
The discord API is constantly changing and the wrapper API is as well. There will be no effort to keep backwards compatibility.
I recommend that you follow the discussion in the [unofficial Discord API discord channel][ch] and update your installation periodically through `pip install --upgrade discord.py`.
[ch]: https://discord.gg/0SBTUU1wZTUzBx2q
## Quick Example
```py
import discord
client = discord.Client()
client.login('email', 'password')
@client.event
def on_message(message):
if message.content.startswith('!hello'):
client.send_message(message.channel, 'Hello was received!')
@client.event
def on_ready():
print('Logged in as')
print(client.user.name)
print(client.user.id)
print('------')
client.run()
```
You can find examples in the examples directory.
## Requirements
- Python 2.7+ or Python 3.3+.
- `ws4py` library
- `requests` library
Usually `pip` will handle these for you.
## Related Projects
- [discord.js](https://github.com/discord-js/discord.js)
- [discord.io](https://github.com/izy521/discord.io)
- [Discord.NET](https://github.com/RogueException/Discord.Net)
- [DiscordSharp](https://github.com/Luigifan/DiscordSharp)
- [Discord4J](https://github.com/knobody/Discord4J)
- [discordrb](https://github.com/meew0/discordrb)
discord.py is an API wrapper for Discord written in Python.
This was written to allow easier writing of bots or chat logs.
## Installing
Installing is pretty easy.
```
pip install discord.py
```
Will install the latest 'stable' version of the library.
### This module is alpha!
The discord API is constantly changing and the wrapper API is as well. There will be no effort to keep backwards compatibility.
I recommend that you follow the discussion in the [unofficial Discord API discord channel][ch] and update your installation periodically through `pip install --upgrade discord.py`.
[ch]: https://discord.gg/0SBTUU1wZTUzBx2q
## Quick Example
```py
import discord
client = discord.Client()
client.login('email', 'password')
@client.event
def on_message(message):
if message.content.startswith('!hello'):
client.send_message(message.channel, 'Hello was received!')
@client.event
def on_ready():
print('Logged in as')
print(client.user.name)
print(client.user.id)
print('------')
client.run()
```
You can find examples in the examples directory.
## Requirements
- Python 2.7+ or Python 3.3+.
- `ws4py` library
- `requests` library
Usually `pip` will handle these for you.
## Related Projects
- [discord.js](https://github.com/discord-js/discord.js)
- [discord.io](https://github.com/izy521/discord.io)
- [Discord.NET](https://github.com/RogueException/Discord.Net)
- [DiscordSharp](https://github.com/Luigifan/DiscordSharp)
- [Discord4J](https://github.com/knobody/Discord4J)
- [discordrb](https://github.com/meew0/discordrb)
Metadata
Release files for discord.py 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| discord.py-0.5.1.zip | 26.7 kB | Details |
Release files / discord.py-0.5.1.zip
| Download URL | discord.py-0.5.1.zip |
|---|---|
| Size | 26.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ed2c9345deb745d4a4209409d688aca48152ca17c878d212aef202c79f9b2b6
|
|
BLAKE2b-256 checksum How to use checksums |
b03f0b2b1ca0084207012e04af66200c13109c10a2c0f76e0223346c8befd6cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |