Skip to main content

ScurryPy

PyPI version Discord

Fire-breathing squirrel

✨ Clarity over magic: build a bot that lasts ✨

Development Note: While ScurryPy has not received an update in a while, it is still actively maintained!

Features

  • Lightweight core
  • Strictly typed
  • Rate limit handling
  • Automatic session & gateway management
  • Automatic sharding
  • Predictable event models and resource classes

Your focus is building what you want instead of fighting a framework.

ScurryPy is a stability-first Discord runtime built around explicit API coverage and strict scope boundaries to minimize long-term breakage.

Installation

Install ScurryPy with pip:

pip install scurrypy

Examples

The following examples are quick drop-in starters if you wish to try ScurryPy.

Slash Command

# Set TOKEN, APP_ID (bot user ID), and GUILD_ID (for guild command)

# --- Core library imports ---
from scurrypy import Client

from scurrypy.ext.commands import CommandsAddon, ApplicationCommandContext

# --- Setup bot ---
client = Client(token=TOKEN)
commands = CommandsAddon(client, APP_ID)

@commands.slash_command('greet', 'Greet the bot!', guild_ids=[GUILD_ID])
async def on_greet(ctx: ApplicationCommandContext):
    await ctx.respond("Hello!")

# --- Run the bot ---
client.run()

Prefix Command (Legacy)

# Set TOKEN and APP_ID (bot user ID)

# --- Core library imports ---
from scurrypy import Client, Intents

from scurrypy.ext.prefixes import PrefixAddon, PrefixCommandContext

client = Client(token=TOKEN, intents=Intents.DEFAULT | Intents.MESSAGE_CONTENT)
prefixes = PrefixAddon(client, APP_ID, '!')

# --- Setup bot ---
@prefixes.listen('ping')
async def on_ping(ctx: PrefixCommandContext):
    await ctx.send("Pong!")

# --- Run the bot ---
client.run()

Dependencies

ScurryPy has exactly 3 required dependencies:

  • aiohttp (HTTP client)
  • websockets (Gateway connection)
  • aiofiles (Async file operations)

These dependencies are automatically installed with ScurryPy's pip package.

Learn More

Explore the full documentation for more examples, guides, and API reference.

See the manifesto section for details!

Got some questions? Check out the FAQ page for commonly asked questions!

Looking for changes? See the Changelog.

Metadata

Release files for scurrypy 2.3.1.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 scurrypy 2.3.1.0
File Size Uploaded Provenance Actions
scurrypy-2.3.1.0.tar.gz 76.4 kB Without provenance Details for scurrypy-2.3.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scurrypy 2.3.1.0
File Interpreter ABI Platform Actions
scurrypy-2.3.1.0-py3-none-any.whl Python 3 none any Details for scurrypy-2.3.1.0-py3-none-any.whl

Total release size: 193.8 kB

Release files / scurrypy-2.3.1.0.tar.gz

Download URL scurrypy-2.3.1.0.tar.gz
Size 76.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7d5b7dbc0aacbbdd8c37cb126e7c68cdcac9eacb02cf7087c566d43671e686ea
BLAKE2b-256 checksum
How to use checksums
c5d27bff964205a81f20669de4e12aa0542e0d2ab45edcecc933ef3d1911a4b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release files / scurrypy-2.3.1.0-py3-none-any.whl

Download URL scurrypy-2.3.1.0-py3-none-any.whl
Size 117.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5f8c6726e40cf742101463892dc56df903db8dce3a2be983a19150fa0a848e8
BLAKE2b-256 checksum
How to use checksums
e19799cb8ae32ba8690c1a624916ee702761a195c62d11d6e819df60ce91707b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Security for scurrypy 2.3.1.0

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.

Release history Release notifications | RSS feed

This release

2.3.1.0 This release

2 release files No provenance

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