https://github.com/senophyx/discord-rpc
An Python wrapper for Discord RPC
https://github.com/senophyx/discord-rpc
discord discord-rich-presence discord-rpc python rich-presence rpc
Last synced: 3 months ago
JSON representation
An Python wrapper for Discord RPC
- Host: GitHub
- URL: https://github.com/senophyx/discord-rpc
- Owner: Senophyx
- License: mit
- Created: 2021-12-13T05:17:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-30T06:44:17.000Z (5 months ago)
- Last Synced: 2025-04-07T12:05:36.731Z (3 months ago)
- Topics: discord, discord-rich-presence, discord-rpc, python, rich-presence, rpc
- Language: Python
- Homepage: https://pypi.org/project/discord-rpc
- Size: 223 KB
- Stars: 33
- Watchers: 0
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/Senophyx/Discord-RPC)
[](https://discord.gg/qpT2AeYZRN)
[](https://pepy.tech/project/discord-rpc)
[](https://pypi.org/project/discord-rpc)
[](https://pypi.org/project/discord-rpc)
[](https://github.com/Senophyx/discord-rpc)# Discord RPC
An Python wrapper for Discord RPC API. Allow you to make own custom RPC.[](https://senophyx.id/projects/discord-rpc/#change-logs)
## Install
- PyPI
```
pip install discord-rpc
```## Quick example
```py
import discordrpcrpc = discordrpc.RPC(app_id=12345678910)
rpc.set_activity(
state="A super simple rpc",
details="simple RPC"
)# Required if you only run Discord RPC on this file or current instance.
rpc.run()
```
`rpc.run()` is only used if you are only running Discord RPC on the current file/instance. If there are other programs/tasks on the current instance, `rpc.run()` does not need to be used.See documentation [here](https://github.com/Senophyx/Discord-RPC/blob/main/DOCS.md).
More examples [here](https://github.com/Senophyx/discord-rpc/tree/main/examples).## Contributors
Big thanks for contributors who help this project keep updated, and maintained.
Pukima
🐛
k9er
📖
Kale
🐛
TaIFeel
💻
Jesusaves
🐛
Dipesh Aggarwal
💻
Maxsspeaker
💻
Fixator10
📖
SleepyStatic
💻
## Links
- [Github Repository](https://github.com/Senophyx/Discord-RPC)
- [PyPI Project page](https://pypi.org/project/discord-rpc/)
- [TestPyPI Project page](https://test.pypi.org/project/discord-rpc/)
- [Discord Server](https://discord.gg/qpT2AeYZRN)## Licence & Copyright
```
This Project under MIT License
Copyright (c) 2021-2024 Senophyx
```