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.
Links
Licence & Copyright
This Project under MIT License
Copyright (c) 2021-2025 Senophyx
Metadata
Release files for discord-rpc 6.5
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_rpc-6.5.tar.gz | 16.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| discord_rpc-6.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.8 kB
Release files / discord_rpc-6.5.tar.gz
| Download URL | discord_rpc-6.5.tar.gz |
|---|---|
| Size | 16.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b4655a6313ecc8ee08c35f0b4c9b28614354689eb88aadc03f5e150686643995
|
|
BLAKE2b-256 checksum How to use checksums |
76b2314b03f4c33bd3856cf5bed532e8b65a127ef832cb9a521021ddebe848a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 5, 2026.
Transparency logRelease files / discord_rpc-6.5-py3-none-any.whl
| Download URL | discord_rpc-6.5-py3-none-any.whl |
|---|---|
| Size | 13.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f4dac2ebaf6b33be50fed6a8de7f3faeffe0cc1ae4b002d65f6de88ef718651e
|
|
BLAKE2b-256 checksum How to use checksums |
cc28c9ee3cbb26bf9bee06d74dd2a6d9c1a9f6e0fecb37668fc41b4f9042d341
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 5, 2026.
Transparency log