Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 6 days 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 (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-19T01:49:23.000Z (4 months ago)
- Last Synced: 2025-01-09T13:28:16.456Z (13 days ago)
- Topics: discord, discord-rich-presence, discord-rpc, python, rich-presence, rpc
- Language: Python
- Homepage: https://pypi.org/project/discord-rpc
- Size: 207 KB
- Stars: 30
- Watchers: 1
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Visitors](https://api.visitorbadge.io/api/visitors?path=https%3A%2F%2Fgithub.com%2FSenophyx%2FDiscord-RPC&label=Visitors&countColor=%2337d67a&style=flat&labelStyle=none)](https://github.com/Senophyx/Discord-RPC)
[![Discord](https://img.shields.io/discord/887650006977347594?label=EterNomm&logo=discord)](https://discord.gg/qpT2AeYZRN)
[![Total Downloads](https://static.pepy.tech/badge/discord-rpc)](https://pepy.tech/project/discord-rpc)
[![PyPI](https://img.shields.io/pypi/v/discord-rpc?label=PyPI%20Version&logo=pypi)](https://pypi.org/project/discord-rpc)
[![PyPI - Status](https://img.shields.io/pypi/status/discord-rpc?label=Packages%20Status&logo=pypi)](https://pypi.org/project/discord-rpc)
[![GitHub commit activity](https://img.shields.io/github/commit-activity/y/Senophyx/discord-rpc?label=Commit%20Activity&logo=github)](https://github.com/Senophyx/discord-rpc)# Discord RPC
An Python wrapper for Discord RPC API. Allow you to make own custom RPC.[![Changelog](https://img.shields.io/badge/Discord--RPC-Changelog-informational?style=for-the-badge&logo=github)](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
```