Skip to main content

Visitors Discord Total Downloads PyPI GitHub commit activity

Discord RPC

Dicord-RPC preview

A Python wrapper for the Discord RPC API that allows you to create your own custom Rich Presence.

Changelog Documentation

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.

Star History

discord-rpc star history chart
This Project under MIT License
Copyright (c) 2021-2025 Senophyx

Metadata

Release files for discord-rpc 7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for discord-rpc 7.0
File Size Uploaded Provenance Actions
discord_rpc-7.0.tar.gz 22.1 kB With provenance Details for discord_rpc-7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for discord-rpc 7.0
File Interpreter ABI Platform Actions
discord_rpc-7.0-py3-none-any.whl Python 3 none any Details for discord_rpc-7.0-py3-none-any.whl

Total release size: 37.0 kB

Release files / discord_rpc-7.0.tar.gz

Download URL discord_rpc-7.0.tar.gz
Size 22.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d758f5e89a2d1c8ee70f0609c7038577bc364cd3a77e6e8cd9aaf9ba9963a1f4
BLAKE2b-256 checksum
How to use checksums
8dd645584c9d9f46fe8bd803c8ab8fd44f786ffd32f4243e3657798d13c22168
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 10, 2026.

Transparency log

Release files / discord_rpc-7.0-py3-none-any.whl

Download URL discord_rpc-7.0-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6376b64cf5b070c760547f50535290c10c7595064a0b9a0e7ce49b1fd887bc8a
BLAKE2b-256 checksum
How to use checksums
ae4fcd27f900e595c159415a564609c0bf409e60c38751052ac3e50633fdd6bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 10, 2026.

Transparency log

Security for discord-rpc 7.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for discord_rpc-7.0.tar.gz

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 Nov 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page