pypresence
Discord RPC client written in Python
What it is and what it does
Pypresence is a Discord Rich Presence client library that lets you programmatically update what appears in your Discord profile status. It wraps Discord's RPC API, allowing Python applications to display custom activity information—such as game state, elapsed time, or application details—directly in Discord's UI.
The package is designed for developers who want to integrate Discord presence updates into their applications or games. It requires Python 3.9 or above and has no external runtime dependencies, making it straightforward to add to existing projects. The library supports modern Python versions through 3.13 and is typed for better IDE support.
Use it for:
- Display game state and progress in Discord while playing, showing elapsed time and current activity
- Update your Discord status from a custom application to show what you're currently working on
- Integrate Discord presence into a bot or automation script to reflect its operational state
- Show music playback information in Discord from a Python music player or streaming application
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Pypresence is a Python client for Discord Rich Presence, allowing you to update your Discord profile status with custom activity information from your Python application.
Yes. Pypresence is a stable, actively maintained library with no dependencies, a permissive MIT license, and no known vulnerabilities. Install it if you need to update Discord Rich Presence from a Python application. The only prerequisite is Python 3.9+ and a Discord application token for anything beyond basic rich presence updates.
Install
pypresence on PyPI
pip
pip install pypresenceuv
uv add pypresencepoetry
poetry add pypresenceInstalling pypresence
Before you install
Low install friction with no runtime dependencies. The package is actively maintained with a recent release 37 days ago, and the repository shows consistent activity. Supports current Python versions from 3.9 onward.
License in practice
Licensed under MIT, a permissive license that allows free use, modification, and distribution with minimal restrictions.
Quickstart
pip install pypresence
from pypresence import Presence
client_id = 'YOUR_CLIENT_ID'
Presence(client_id).connect()
Presence(client_id).update(state='Playing', details='Example')
Requires a Discord application ID and Python 3.9 or above; Discord application must be authorized for RPC use.
Verify before relying
- Whether the package requires Discord application credentials or OAuth setup beyond what the description mentions
- Whether asyncio support is built-in or optional, given the AsyncIO framework classifier
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 37 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 176,164/month — #10,251 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pypresence-4.6.2-py3-none-any.whl
Keywords: discord, rich presence, pypresence, rpc, api, wrapper, gamers, chat, irc
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
discordA Python API wrapper for Discord that provides…
unclear · top 15,000 on PyPI
discord.pydiscord.py is an async-ready Python wrapper for…
permissive · top 5,000 on PyPI
aa-inactivityMonitors member activity in Alliance Auth using…
unclear · top 15,000 on PyPI
dhooks-liteSends messages and embeds to Discord channels…
unclear · top 15,000 on PyPI
realtimeA Python client for Supabase Realtime that…
permissive · top 1,000 on PyPI
grpcio-channelzProvides live debugging and introspection of…
permissive · top 15,000 on PyPI
py-cordpy-cord is an async Python wrapper for the…
permissive · top 15,000 on PyPI
pusherPusher is a Python client library for the…
permissive · top 5,000 on PyPI
hikariHikari is an async Discord bot framework for…
permissive · top 15,000 on PyPI
discord.py-selfAn async Python wrapper for Discord's user…
permissive · top 15,000 on PyPI