A Python wrapper for the Discord RPC API
Project description
Discord RPC
A Python wrapper for the Discord RPC API that allows you to create your own custom Rich Presence.
Install
- PyPI
pip install discord-rpc
Quick example
import discordrpc
rpc = 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.
More examples here.
Contributors
Big thanks for contributors who help this project keep updated, and maintained.
Pukima 🐛 |
k9er 📖 |
Kale 🐛 |
TaIFeel 💻 |
Jesusaves 🐛 |
Dipesh Aggarwal 💻 |
Maxsspeaker 💻 |
Fixator10 📖 |
SleepyStatic 💻 |
Super Zombi 💻 |
jannuary 💻 |
Links
Licence & Copyright
This Project under MIT License
Copyright (c) 2021-2025 Senophyx
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file discord_rpc-5.5.tar.gz.
File metadata
- Download URL: discord_rpc-5.5.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47c04478bd656f32a1f7d5189dcb85d8b25740bb0967264b97e84cc4b89e89a5
|
|
| MD5 |
56f1fa2b91ebaffc183ef0a08bc694c6
|
|
| BLAKE2b-256 |
a5fb5de4c8b703d2eea4fdc3a80fac4571002237ed053c99a1790528629a1ec3
|
Provenance
The following attestation bundles were made for discord_rpc-5.5.tar.gz:
Publisher:
publish-pypi.yml on Senophyx/Discord-RPC
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
discord_rpc-5.5.tar.gz -
Subject digest:
47c04478bd656f32a1f7d5189dcb85d8b25740bb0967264b97e84cc4b89e89a5 - Sigstore transparency entry: 631959852
- Sigstore integration time:
-
Permalink:
Senophyx/Discord-RPC@66af9520abac6c92db8eb70ae9f009ee52091259 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Senophyx
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@66af9520abac6c92db8eb70ae9f009ee52091259 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file discord_rpc-5.5-py3-none-any.whl.
File metadata
- Download URL: discord_rpc-5.5-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2401936a441609ddff3466e63d7f473782622b96cf1e8133b0d0e0ab6687f209
|
|
| MD5 |
9e72d46164d8195e72294b3a1fcd968b
|
|
| BLAKE2b-256 |
a25830d71dbfaccc361061dbbc4d8e81bfc057004f0c454b888827bad2135c1b
|
Provenance
The following attestation bundles were made for discord_rpc-5.5-py3-none-any.whl:
Publisher:
publish-pypi.yml on Senophyx/Discord-RPC
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
discord_rpc-5.5-py3-none-any.whl -
Subject digest:
2401936a441609ddff3466e63d7f473782622b96cf1e8133b0d0e0ab6687f209 - Sigstore transparency entry: 631959882
- Sigstore integration time:
-
Permalink:
Senophyx/Discord-RPC@66af9520abac6c92db8eb70ae9f009ee52091259 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Senophyx
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@66af9520abac6c92db8eb70ae9f009ee52091259 -
Trigger Event:
workflow_dispatch
-
Statement type: