yapper.py
Unofficial Python library for building bots on Yapper.
Install
pip install yapper.py
Quick start
import yapper
bot = yapper.Bot() # reads YAPPER_BOT_TOKEN from env
@bot.command("ping", "Check if the bot is alive")
def ping(msg):
msg.reply("pong")
@bot.on("member_join")
def welcome(ev):
print(f"{ev.username} joined")
@bot.button("vote:")
def vote(i):
i.ephemeral("You picked " + i.custom_id[5:])
bot.run()
Set YAPPER_BOT_TOKEN in your environment (token starts with yb_).
Main concepts
- Commands: register slash/prefix commands with
@bot.command(...). - Events: listen with
@bot.on("event_name")or@bot.event. - Interactions: handle button clicks with
@bot.button("prefix:"). - Components: build rows/buttons with
yapper.row(...),yapper.btn(...), andyapper.link_button(...). - Cogs/extensions: split features into classes/files using
yapper.Cog,bot.add_cog(...),bot.load_extension(...), andbot.load_extensions(...).
Useful bot methods
- Messaging:
send,edit,delete,react - Interactions:
respond - Server data:
servers,server,channels,members,roles,user - Moderation:
add_role,remove_role,kick,ban,unban,timeout - Presence/profile:
set_status,set_profile
API reference
Use the official Yapper developer docs for API payload details: https://www.yapper.website/developers
Metadata
Release files for yapper.py 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| yapper_py-1.0.0.tar.gz | 25.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yapper_py-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 48.9 kB
Release files / yapper_py-1.0.0.tar.gz
| Download URL | yapper_py-1.0.0.tar.gz |
|---|---|
| Size | 25.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e2a23f3b06e8c3c07bdd586123040494d02ab178dd4f4e6b66b1ea7685fcda7
|
|
BLAKE2b-256 checksum How to use checksums |
8e4dcacf80e07a710c473c2abd127f26b49beafb2aa73328003d32a6612389f0
|
| 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 Oct 19, 2026.
Transparency logRelease files / yapper_py-1.0.0-py3-none-any.whl
| Download URL | yapper_py-1.0.0-py3-none-any.whl |
|---|---|
| Size | 23.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
50bf21450fa1ffc00d8b6d704e1fc2700ab0ebb08ffdb6b5e395db523ba9b277
|
|
BLAKE2b-256 checksum How to use checksums |
ec6eea120f76ef91ca58a729f0aea9f2fa23d17074bf91950ee8ac75e04316e3
|
| 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 Oct 19, 2026.
Transparency log