Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.

Links

Licence & Copyright

This Project under MIT License
Copyright (c) 2021-2025 Senophyx

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

discord_rpc-6.5b1.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

discord_rpc-6.5b1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file discord_rpc-6.5b1.tar.gz.

File metadata

  • Download URL: discord_rpc-6.5b1.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for discord_rpc-6.5b1.tar.gz
Algorithm Hash digest
SHA256 2903c59c14a7edf15e1acb0f880dba3868241e3c8cd0cd6207b96fd5c8d88198
MD5 01aad72443057c684fc656a28f611c0c
BLAKE2b-256 2320a3d988c2eb181682596bcebfd638a5da2b058e52fe083ee1534aebae3a50

See more details on using hashes here.

Provenance

The following attestation bundles were made for discord_rpc-6.5b1.tar.gz:

Publisher: publish-pypi.yml on Senophyx/Discord-RPC

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file discord_rpc-6.5b1-py3-none-any.whl.

File metadata

  • Download URL: discord_rpc-6.5b1-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for discord_rpc-6.5b1-py3-none-any.whl
Algorithm Hash digest
SHA256 4849df7e87451fdba414ce517d53666bc8ac563a9ab93ff676ba69fed7ec5c8a
MD5 423202bed8a8418cf9c9244cd786a9f0
BLAKE2b-256 893fa11e5e6b652dc1c7bf40c9382ef6537ecbb6287e48819559f2a39ca70093

See more details on using hashes here.

Provenance

The following attestation bundles were made for discord_rpc-6.5b1-py3-none-any.whl:

Publisher: publish-pypi.yml on Senophyx/Discord-RPC

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

6.5

2 files

This release

6.5b1 This release

2 files

6.0

2 files

5.6

2 files

5.5

2 files

5.1

2 files

5.0

2 files

4.0

2 files

3.5

2 files

3.0

2 files

2.0

2 files

1.2

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page