Skip to main content

A Python wrapper for the Discord RPC API

Project description

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

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

discord_rpc-5.6.tar.gz (8.0 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-5.6-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file discord_rpc-5.6.tar.gz.

File metadata

  • Download URL: discord_rpc-5.6.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for discord_rpc-5.6.tar.gz
Algorithm Hash digest
SHA256 c80cf9a8902243fa69604239ea8af0a6cc3184c15eff814b99c1e855328608b9
MD5 100b6b790aaee278d0659eb0ff4fb626
BLAKE2b-256 deb3dfcf10fc80c1cf1ba755c8bb16b17af464553d6b600cae04d1261bd05e84

See more details on using hashes here.

Provenance

The following attestation bundles were made for discord_rpc-5.6.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-5.6-py3-none-any.whl.

File metadata

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

File hashes

Hashes for discord_rpc-5.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b0bf87a91181b2d5145b6b9a7bf3b5ecaf9f7c2480efa03d22b4360d281a7816
MD5 c8776ee6592470c3d07af257f375725c
BLAKE2b-256 5e564b277d5dc4ac328f0a6ee6a9d0aba6b2c560b7900dd997a6b798001780e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for discord_rpc-5.6-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.

Supported by

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