Skip to main content

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(...), and yapper.link_button(...).
  • Cogs/extensions: split features into classes/files using yapper.Cog, bot.add_cog(...), bot.load_extension(...), and bot.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)

Source distribution for yapper.py 1.0.0
File Size Uploaded
yapper_py-1.0.0.tar.gz 25.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yapper.py 1.0.0
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

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