Skip to main content
Pre-release

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

PyYapper

An intuitive, async Python library for the Yapper bot API. Designed to feel familiar to discord.py users while staying small and dependency-light.

Install

pip install pyyapper

Requires Python 3.9+ and aiohttp.

Quick start

from pyyapper import Bot

bot = Bot("yb_...")  # your token from Settings -> Developer


@bot.command("ping", description="Is the bot alive?")
async def ping(ctx):
    await ctx.reply("pong")


@bot.event
async def on_ready(me):
    print("online as", me.username)


bot.run()

Features

  • Async-first, with a synchronous bot.run() entry point.
  • Decorator-based commands and events (@bot.command, @bot.event, @bot.button).
  • Rich message context: ctx.reply, ctx.say, ctx.author_mention, ctx.argv.
  • Button/interaction helpers: i.reply, i.ephemeral, i.update, i.ack.
  • Embed, Button, Row builders with chaining.
  • Typed data models (User, Message, Channel, ...) and a full exception hierarchy.
  • Automatic retry on 429 with Retry-After, exponential backoff, timeouts.
  • Long-polling event loop with cursor tracking (nothing lost on reconnect).
  • New in 1.1.0: cogs/extensions (bot.add_cog, bot.load_extension), periodic tasks (tasks.loop), type-hint converters, checks (has_permissions, cooldown, ...), command groups, pagination (Paginator), bot.wait_for, and a Webhook client.

Error handling

from pyyapper import Bot, NotFound, Forbidden, RateLimited

bot = Bot("yb_...")

async def main():
    try:
        await bot.delete("some-channel", "some-message")
    except NotFound:
        print("message already gone")
    except Forbidden:
        print("missing Manage messages permission")
    except RateLimited as e:
        print("slow down, retry after", e.retry_after)

import asyncio
asyncio.run(main())

Documentation

See the Yapper developer docs: https://www.yapper.website/developers

License

MIT

Metadata

Release files for pyyapper 1.2.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyyapper 1.2.0a1
File Size Uploaded Provenance
pyyapper-1.2.0a1.tar.gz 37.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pyyapper 1.2.0a1
File Interpreter ABI Platform
pyyapper-1.2.0a1-py3-none-any.whl Python 3 none any Details

Total release size: 76.0 kB

Release files / pyyapper-1.2.0a1.tar.gz

Download URL pyyapper-1.2.0a1.tar.gz
Size 37.3 kB
Tags Source
SHA-256 checksum
How to use checksums
52559a04fb79a34095af8cd04d1040d0f1ccab9301987cec88a54f2819d4b436
BLAKE2b-256 checksum
How to use checksums
edf4667bfc16b184d418b861ad98eadb5f6109c55ffb05d33df77e84fb538812
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / pyyapper-1.2.0a1-py3-none-any.whl

Download URL pyyapper-1.2.0a1-py3-none-any.whl
Size 38.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a6066d493226cadbb076380c6d58cfa2249ab69acee8ee1d9eb4d5274a1af56c
BLAKE2b-256 checksum
How to use checksums
730e1a521a8b603ab1b6848e354ddb18b91137c6e986e7bd7af0108b202741d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for pyyapper 1.2.0a1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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