commit ae08961a3872117df892145b0e909073c6c31f82 Author: Ziad Arafat Date: Wed Nov 4 17:29:17 2026 -0700 Dogebot: Red-DiscordBot with self-updating music, deployed with quadlets - Red 3.5.24 (Postgres storage) with the dogesetup cog, which installs, loads and daily updates the cogs listed in src/dogebot/manifest.py and points Audio at our Lavalink - Lavalink: Red's 3.7 build plus youtube-source (OAuth, TV/WEB clients) and yt-cipher; dogebot-update builds new versions, smoke tests them next to the live server and swaps them in with rollback, falling back from the plugin release to its newest snapshot - Rootless podman quadlets for Red, Lavalink, yt-cipher and Postgres, a daily update timer, and deploy/install.sh - mise for tools and tasks, uv for Python 3.11 and dependencies, ruff with the lptn settings, ty type checking, 37 pytest tests including a contract test for the Red internals dogesetup uses Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01GUebqhE8dK19vyn4Ct5g1L diff --git a/.containerignore b/.containerignore new file mode 100644 index 0000000..33bd73f --- /dev/null +++ b/.containerignore @@ -0,0 +1,7 @@ +.venv +.git +.pytest_cache +.ruff_cache +**/__pycache__ +deploy +tests diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d63333c --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +.venv/ +__pycache__/ +*.py[cod] +.pytest_cache/ +.ruff_cache/ +*.env +!example.env diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..2c07333 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.11 diff --git a/README.md b/README.md new file mode 100644 index 0000000..94a807d --- /dev/null +++ b/README.md @@ -0,0 +1,122 @@ +# Dogebot + +A Discord bot built on [Red-DiscordBot](https://github.com/Cog-Creators/Red-DiscordBot) 3.5, deployed as +rootless podman containers with quadlets. Music (Audio, AudioTrivia) runs on its own Lavalink, which updates +itself daily, together with its YouTube plugin and yt-cipher, so that playback keeps working when YouTube +changes. + +## What runs + +```mermaid +graph LR + discord[Discord] --- red[dogebot-red
Red 3.5 + dogesetup cog] + red --> pg[(dogebot-postgres)] + red -->|ws :2333| lava[dogebot-lavalink
Lavalink 3.7 red build
+ youtube-plugin] + lava -->|signatures| cipher[dogebot-yt-cipher] + lava --> yt[YouTube / SoundCloud / ...] + timer[dogebot-update.timer] -.->|build, smoke test, swap| lava + timer -.->|podman auto-update| cipher +``` + +| Container | Image | Updates | +|---|---|---| +| `dogebot-red` | `localhost/dogebot-red:latest`, built from `containers/red` | rebuild after changing `uv.lock` | +| `dogebot-lavalink` | `localhost/dogebot-lavalink:current`, built from `containers/lavalink` | daily, by `dogebot-update` (below) | +| `dogebot-yt-cipher` | `ghcr.io/kikkia/yt-cipher:master` | daily, `podman auto-update` with rollback | +| `dogebot-postgres` | `docker.io/library/postgres:16-alpine` | daily, `podman auto-update` with rollback | + +All four share the `dogebot` network. Only Lavalink publishes a port, on `127.0.0.1:2333`, for the smoke test. + +## Cogs + +`src/dogebot/manifest.py` lists them. On every start the `dogesetup` cog adds the repos, installs missing +cogs, loads everything, and points Audio at `dogebot-lavalink`. It then updates the repos and reloads changed +cogs every 24 hours (`DOGEBOT_COG_UPDATE_HOURS`). Owners can run `d!dogesetup` to do all of that at once. + +| Cog | From | +|---|---| +| admin, audio, mod, modlog, permissions, reports, warnings | Red (core) | +| starboard, roletools, serverstats | [TrustyJAID/Trusty-cogs](https://github.com/TrustyJAID/Trusty-cogs) | +| audiotrivia | [bobloy/Fox-V3](https://github.com/bobloy/Fox-V3) | +| reactchannel | [PhasecoreX/PCXCogs](https://github.com/PhasecoreX/PCXCogs) | +| timezone | [aikaterna/aikaterna-cogs](https://github.com/aikaterna/aikaterna-cogs) (branch v3) | +| userinfo | [flaree/Flare-Cogs](https://github.com/flaree/Flare-Cogs) | + +## Music: how it stays working + +YouTube playback depends on three moving parts: +- Lavalink itself. Red 3.5 speaks Lavalink's v3 protocol, so this is Red's own build of Lavalink 3.7, from + [Cog-Creators/Lavalink-Jars](https://github.com/Cog-Creators/Lavalink-Jars), not upstream Lavalink 4. +- The [youtube-source](https://github.com/lavalink-devs/youtube-source) plugin. It signs in to YouTube with + an OAuth refresh token and uses the `TV` and `WEB` clients. +- [yt-cipher](https://github.com/kikkia/yt-cipher), which deciphers YouTube's stream signatures for the plugin. + +`dogebot-update` (daily, from `dogebot-update.timer`): + +1. Finds the newest Red Lavalink build, the newest youtube-source release, and the newest youtube-source + snapshot (a build of every commit, where YouTube fixes land first). +2. For each new combination, release first, builds an image tagged `:candidate`. +3. Starts that candidate next to the live Lavalink and checks that it can search YouTube and load a YouTube + video (`src/dogebot/lavalink.py`). +4. Promotes the first candidate that passes: it becomes `:current` (the old one is kept as `:previous`), and + Lavalink restarts. If the restarted service fails the same check, it rolls back. +5. If the version already running still passes, it stops there. If it fails, for example because YouTube + broke the release, it goes on to try the snapshot. +6. Runs `podman auto-update` for yt-cipher and Postgres. + +The versions running now are in `~/.local/state/dogebot/lavalink.json`. To check music by hand: + +```sh +LAVALINK_PASSWORD=$(podman secret inspect --showsecret --format '{{.SecretData}}' dogebot-lavalink-password) mise run smoke +``` + +The smoke test covers loading tracks, not actual playback, which needs a Discord voice connection. + +## Deploy + +Needs rootless podman 4.4 or newer (quadlets), [mise](https://mise.jdx.dev), and lingering for the user +(`loginctl enable-linger`). + +```sh +git clone https://gitea.godemperordoge.org/ziadarafat/dogebot.git ~/src/dogebot +cd ~/src/dogebot && mise trust && mise install && mise run sync +DOGEBOT_DISCORD_TOKEN=... DOGEBOT_YOUTUBE_REFRESH_TOKEN=... deploy/install.sh # add --start to start the bot too +``` + +`install.sh` creates the podman secrets, builds both images, installs the quadlets into +`~/.config/containers/systemd/dogebot/` and the timer into `~/.config/systemd/user/`, and starts everything except +the bot. It leaves the bot stopped unless you pass `--start`, so that two copies never log in with one token. + +| Podman secret | Used by | Source | +|---|---|---| +| `dogebot-discord-token` | Red (`RED_TOKEN`) | `DOGEBOT_DISCORD_TOKEN` | +| `dogebot-youtube-refresh-token` | Lavalink | `DOGEBOT_YOUTUBE_REFRESH_TOKEN` | +| `dogebot-postgres-password` | Postgres, Red | generated | +| `dogebot-lavalink-password` | Lavalink, Red | generated | +| `dogebot-yt-cipher-token` | yt-cipher, Lavalink | generated | + +If the YouTube refresh token stops working, Lavalink logs a device code: sign in at google.com/device with the +bot's YouTube account, then put the new refresh token from the log into the secret. + +```sh +systemctl --user status dogebot-red dogebot-lavalink dogebot-yt-cipher dogebot-postgres +journalctl --user -u dogebot-red -f +systemctl --user start dogebot-update # update Lavalink now +``` + +## Development + +mise installs uv, and uv installs Python 3.11 and the dependencies. + +```sh +mise install && mise run sync +mise run fmt # ruff format + ruff check --fix +mise run check # lint, ty type check, tests +mise run build # both images +``` + +Ruff settings are the ones from the lptn projects (80 columns, 8-space indents, a wide rule set). Code is fully +annotated and checked with [ty](https://docs.astral.sh/ty/). + +`dogesetup` uses Red's internal Downloader and Core methods (the same ones behind `[p]cog install`). Red is +pinned in `pyproject.toml`, and `tests/test_red_contract.py` fails if an upgrade removes or renames them. diff --git a/cogs/dogesetup/__init__.py b/cogs/dogesetup/__init__.py new file mode 100644 index 0000000..c1d2a18 --- /dev/null +++ b/cogs/dogesetup/__init__.py @@ -0,0 +1,5 @@ +"""Red cog that provisions dogebot. See dogesetup.py.""" + +from .dogesetup import setup + +__all__ = ["setup"] diff --git a/cogs/dogesetup/dogesetup.py b/cogs/dogesetup/dogesetup.py new file mode 100644 index 0000000..bb51353 --- /dev/null +++ b/cogs/dogesetup/dogesetup.py @@ -0,0 +1,219 @@ +"""Install, load and update dogebot's cogs, and point Audio at our Lavalink. + +On every start (after Red is ready) this cog: + +1. sets Audio to use the external Lavalink from ``LAVALINK_*`` variables; +2. adds the repos in :mod:`dogebot.manifest`, installs missing cogs and loads + everything in order; + +then, every ``DOGEBOT_COG_UPDATE_HOURS`` (default 24), updates the repos and +reloads cogs that changed. + +It uses Downloader's and Core's internal methods, the same ones behind +``[p]repo add``, ``[p]cog install``, ``[p]cog update`` and ``[p]load``. They are +private, so Red is pinned in pyproject.toml and ``tests/test_red_contract.py`` +checks they still exist before an upgrade. +""" + +import asyncio +import logging +import os +from typing import Any + +from redbot.core import Config, commands +from redbot.core.bot import Red + +from dogebot import manifest + +log = logging.getLogger("red.dogebot.setup") + +# Audio's Config identifier, from redbot/cogs/audio/core/__init__.py +AUDIO_IDENTIFIER = 2711759130 + + +def lavalink_settings() -> dict[str, Any]: + """Return Audio's external Lavalink settings from the environment.""" + port = int(os.environ.get("LAVALINK_PORT", "2333")) + return { + "use_external_lavalink": True, + "host": os.environ.get("LAVALINK_HOST", "dogebot-lavalink"), + "password": os.environ.get("LAVALINK_PASSWORD", ""), + "rest_port": port, + "ws_port": port, + "secured_ws": False, + } + + +class DogeSetup(commands.Cog): + """Keeps dogebot's cogs installed, loaded and up to date.""" + + def __init__(self, bot: Red) -> None: + """Create the cog.""" + self.bot = bot + self._task: asyncio.Task[None] | None = None + hours = float(os.environ.get("DOGEBOT_COG_UPDATE_HOURS", "24")) + self.update_interval = hours * 3600 + + async def cog_load(self) -> None: + """Start provisioning once Red is ready.""" + self._task = asyncio.create_task(self._run()) + + async def cog_unload(self) -> None: + """Stop the background task.""" + if self._task is not None: + self._task.cancel() + + async def _run(self) -> None: + await self.bot.wait_until_red_ready() + try: + await self.configure_audio() + await self.provision() + except Exception: + log.exception("Provisioning failed") + while True: + await asyncio.sleep(self.update_interval) + try: + await self.update_cogs() + except Exception: + log.exception("Cog update failed") + + def _core(self) -> Any: # noqa: ANN401 (Red's Core cog is untyped) + return self.bot.get_cog("Core") + + def _downloader(self) -> Any: # noqa: ANN401 (untyped, like Core) + downloader = self.bot.get_cog("Downloader") + if downloader is None: + msg = "Downloader is not loaded" + raise RuntimeError(msg) + return downloader + + async def configure_audio(self) -> bool: + """Point Audio at our Lavalink; return whether it changed.""" + config = Config.get_conf( + None, identifier=AUDIO_IDENTIFIER, cog_name="Audio" + ) + changed = False + for key, value in lavalink_settings().items(): + current = await config.get_raw(key, default=None) + if current != value: + await config.set_raw(key, value=value) + changed = True + if changed and self.bot.get_cog("Audio") is not None: + log.info("Lavalink settings changed; reloading Audio") + await self._core()._reload(["audio"]) + return changed + + async def install_missing(self) -> list[str]: + """Add missing repos, install missing cogs; return failures.""" + downloader = self._downloader() + repos = downloader._repo_manager + installed = {m.name for m in await downloader.installed_cogs()} + failed: list[str] = [] + for wanted in manifest.REPOS: + cogs = [ + c + for c in manifest.cogs_from(wanted) + if c not in installed + ] + if not cogs: + continue + repo = repos.get_repo(wanted.name) + if repo is None: + log.info("Adding repo %s", wanted.name) + repo = await repos.add_repo( + wanted.url, wanted.name, wanted.branch + ) + ( + available, + message, + ) = await downloader._filter_incorrect_cogs_by_names( + repo, cogs + ) + if message: + log.warning( + "%s: %s", wanted.name, message.strip() + ) + if not available: + failed += cogs + continue + if reqs := await downloader._install_requirements( + available + ): + log.error("Requirements failed: %s", reqs) + failed += [c.name for c in available] + continue + done, broken = await downloader._install_cogs(available) + await downloader._save_to_installed(done) + log.info("Installed %s", [c.name for c in done]) + failed += [c.name for c in broken] + return failed + + async def provision(self) -> dict[str, Any]: + """Install and load every cog in the manifest.""" + await self._core()._load(["downloader"]) + failed = await self.install_missing() + if failed: + log.error("Could not install: %s", failed) + result = await self._core()._load(manifest.load_order()) + for key in ("failed_packages", "notfound_packages"): + if result.get(key): + log.error("%s: %s", key, result[key]) + if result.get("loaded_packages"): + log.info("Loaded %s", result["loaded_packages"]) + return result + + async def update_cogs(self) -> list[str]: + """Update repos, install changed cogs and reload them.""" + downloader = self._downloader() + to_check, failed_repos = await downloader._get_cogs_to_check() + if failed_repos: + log.warning( + "Repos that failed to update: %s", failed_repos + ) + cogs, libs = await downloader._available_updates(to_check) + cogs, _ = downloader._filter_incorrect_cogs(cogs) + if not cogs and not libs: + return [] + if reqs := await downloader._install_requirements(cogs): + log.error("Requirements failed: %s", reqs) + return [] + done, broken = await downloader._install_cogs(cogs) + done_libs, _ = await downloader._reinstall_libraries(libs) + await downloader._save_to_installed(done + done_libs) + if broken: + log.error( + "Failed to update %s", [c.name for c in broken] + ) + loaded = set(self.bot.extensions) + names = [c.name for c in done if c.name in loaded] + if names: + await self._core()._reload(names) + log.info("Updated cogs %s", [c.name for c in done]) + return names + + @commands.is_owner() + @commands.command(name="dogesetup") + async def dogesetup_command(self, ctx: commands.Context) -> None: + """Reinstall missing cogs and update all cogs now.""" + async with ctx.typing(): + await self.configure_audio() + result = await self.provision() + updated = await self.update_cogs() + problems = { + k: v + for k, v in result.items() + if v + and k + not in ("loaded_packages", "alreadyloaded_packages") + } + loaded = result.get("loaded_packages") or "nothing new" + await ctx.send( + f"Loaded: {loaded}. " + f"Updated: {updated or 'nothing'}. " + f"Problems: {problems or 'none'}." + ) + + +async def setup(bot: Red) -> None: + """Red's entry point.""" + await bot.add_cog(DogeSetup(bot)) diff --git a/cogs/dogesetup/info.json b/cogs/dogesetup/info.json new file mode 100644 index 0000000..7eaf149 --- /dev/null +++ b/cogs/dogesetup/info.json @@ -0,0 +1,9 @@ +{ + "name": "DogeSetup", + "short": "Installs, loads and updates dogebot's cogs.", + "description": "Keeps the cogs listed in dogebot.manifest installed, loaded and updated, and points Audio at dogebot's Lavalink.", + "author": ["ziadarafat"], + "end_user_data_statement": "This cog does not store any end user data.", + "hidden": true, + "min_bot_version": "3.5.0" +} diff --git a/containers/lavalink/Containerfile b/containers/lavalink/Containerfile new file mode 100644 index 0000000..a8c327f --- /dev/null +++ b/containers/lavalink/Containerfile @@ -0,0 +1,33 @@ +# Lavalink for dogebot: Red's build of Lavalink 3.7 (Red 3.5 speaks the v3 protocol) +# plus the youtube-source plugin. dogebot-update picks the versions and passes +# them as build arguments; the defaults are only a fallback. +FROM docker.io/library/eclipse-temurin:17-jre-noble + +ARG LAVALINK_VERSION=3.7.13+red.5 +ARG YOUTUBE_PLUGIN_VERSION=1.18.2 +ARG YOUTUBE_PLUGIN_REPO=https://maven.lavalink.dev/releases + +RUN apt-get update \ + && apt-get install -y --no-install-recommends curl \ + && rm -rf /var/lib/apt/lists/* + +WORKDIR /opt/lavalink +RUN useradd --system --uid 322 --home-dir /opt/lavalink lavalink \ + && mkdir -p plugins logs \ + && curl -fsSL -o Lavalink.jar \ + "https://github.com/Cog-Creators/Lavalink-Jars/releases/download/$(printf %s "$LAVALINK_VERSION" | sed 's/+/%2B/g')/Lavalink.jar" \ + && curl -fsSL -o "plugins/youtube-plugin-${YOUTUBE_PLUGIN_VERSION}.jar" \ + "${YOUTUBE_PLUGIN_REPO}/dev/lavalink/youtube/youtube-plugin/${YOUTUBE_PLUGIN_VERSION}/youtube-plugin-${YOUTUBE_PLUGIN_VERSION}.jar" \ + && chown -R lavalink:lavalink logs plugins + +COPY application.yml ./ + +# Read by application.yml, so Lavalink finds the plugin jar instead of downloading it +ENV YOUTUBE_PLUGIN_VERSION=${YOUTUBE_PLUGIN_VERSION} \ + YOUTUBE_PLUGIN_REPO=${YOUTUBE_PLUGIN_REPO} \ + LAVALINK_VERSION=${LAVALINK_VERSION} \ + JAVA_OPTS="-Xmx1G" + +USER lavalink +EXPOSE 2333 +ENTRYPOINT ["sh", "-c", "exec java $JAVA_OPTS -jar Lavalink.jar"] diff --git a/containers/lavalink/application.yml b/containers/lavalink/application.yml new file mode 100644 index 0000000..dfb4fdd --- /dev/null +++ b/containers/lavalink/application.yml @@ -0,0 +1,70 @@ +# Lavalink settings for dogebot. Secrets come from the environment (podman secrets): +# LAVALINK_PASSWORD password Red uses to connect +# YOUTUBE_REFRESH_TOKEN OAuth refresh token of the YouTube account music plays as +# YT_CIPHER_TOKEN API_TOKEN of the yt-cipher container +server: + address: 0.0.0.0 + port: 2333 + +lavalink: + pluginsDir: ./plugins + plugins: + # The jar is baked into the image; Lavalink only downloads it if it's missing + - dependency: "dev.lavalink.youtube:youtube-plugin:${YOUTUBE_PLUGIN_VERSION}" + repository: "${YOUTUBE_PLUGIN_REPO}" + server: + password: "${LAVALINK_PASSWORD}" + sources: + # YouTube is handled by the youtube-source plugin, not Lavalink's old built-in source + youtube: false + bandcamp: true + soundcloud: true + twitch: true + vimeo: true + http: true + local: false + bufferDurationMs: 400 + frameBufferDurationMs: 1000 + youtubePlaylistLoadLimit: 100 + playerUpdateInterval: 1 + youtubeSearchEnabled: true + soundcloudSearchEnabled: true + gc-warnings: true + +plugins: + youtube: + enabled: true + allowSearch: true + allowDirectVideoIds: true + allowDirectPlaylistIds: true + # Same clients as the old setup. TV is the only one that works with OAuth. + clients: + - TV + - WEB + oauth: + enabled: true + # Without a token the plugin logs a device code to sign in with instead + refreshToken: "${YOUTUBE_REFRESH_TOKEN:}" + # Signature deciphering by the yt-cipher container, updated separately + remoteCipher: + url: "http://dogebot-yt-cipher:8001" + password: "${YT_CIPHER_TOKEN}" + userAgent: "androidTV" + +metrics: + prometheus: + enabled: false + +sentry: + dsn: "" + +logging: + file: + path: ./logs/ + level: + root: INFO + lavalink: INFO + logback: + rollingpolicy: + max-history: 7 + max-size: 10MB diff --git a/containers/red/Containerfile b/containers/red/Containerfile new file mode 100644 index 0000000..b045022 --- /dev/null +++ b/containers/red/Containerfile @@ -0,0 +1,26 @@ +# Red-DiscordBot for dogebot. Python and dependencies come from uv.lock. +FROM ghcr.io/astral-sh/uv:python3.11-bookworm-slim + +# Downloader clones cog repos with git; some cog requirements build C extensions +RUN apt-get update \ + && apt-get install -y --no-install-recommends git build-essential \ + && rm -rf /var/lib/apt/lists/* + +ENV UV_COMPILE_BYTECODE=1 \ + UV_LINK_MODE=copy \ + UV_PYTHON_DOWNLOADS=never \ + PYTHONUNBUFFERED=1 + +WORKDIR /app +COPY pyproject.toml uv.lock .python-version README.md ./ +RUN --mount=type=cache,target=/root/.cache/uv \ + uv sync --frozen --no-dev --no-install-project +COPY src ./src +COPY cogs ./cogs +RUN --mount=type=cache,target=/root/.cache/uv \ + uv sync --frozen --no-dev + +ENV PATH=/app/.venv/bin:$PATH \ + RED_DATA_PATH=/data +VOLUME /data +ENTRYPOINT ["dogebot-start"] diff --git a/deploy/install.sh b/deploy/install.sh new file mode 100755 index 0000000..5622a1e --- /dev/null +++ b/deploy/install.sh @@ -0,0 +1,71 @@ +#!/usr/bin/env bash +# Install dogebot for the current user (rootless podman + quadlets). +# +# DOGEBOT_DISCORD_TOKEN=... DOGEBOT_YOUTUBE_REFRESH_TOKEN=... deploy/install.sh [--start] +# +# - Creates the podman secrets that don't exist yet. The Discord token and the +# YouTube refresh token come from the environment; the Postgres, Lavalink and +# yt-cipher passwords are generated. +# - Builds the Red and Lavalink images. +# - Installs the quadlets and the daily update timer, and starts Postgres, +# yt-cipher and Lavalink. +# - Starts the bot itself only with --start, so a second copy never logs in +# with the same token by accident. +set -euo pipefail + +repo=$(cd "$(dirname "$0")/.." && pwd) +quadlet_dir=${XDG_CONFIG_HOME:-$HOME/.config}/containers/systemd/dogebot +unit_dir=${XDG_CONFIG_HOME:-$HOME/.config}/systemd/user +start_bot=false +[[ ${1:-} == --start ]] && start_bot=true + +secret() { # name, value-or-empty-to-generate + local name=$1 value=${2:-} + if podman secret exists "$name"; then + echo "secret $name: exists, kept" + return + fi + if [[ -z $value ]]; then + value=$(head -c 32 /dev/urandom | base64 | tr -d '/+=' | head -c 40) + fi + printf %s "$value" | podman secret create "$name" - >/dev/null + echo "secret $name: created" +} + +need() { # name of a secret that can't be generated, env var with its value + if ! podman secret exists "$1" && [[ -z ${!2:-} ]]; then + echo "$2 must be set the first time (secret $1 doesn't exist yet)" >&2 + exit 1 + fi + secret "$1" "${!2:-}" +} + +need dogebot-discord-token DOGEBOT_DISCORD_TOKEN +need dogebot-youtube-refresh-token DOGEBOT_YOUTUBE_REFRESH_TOKEN +secret dogebot-postgres-password +secret dogebot-lavalink-password +secret dogebot-yt-cipher-token + +cd "$repo" +podman build -t localhost/dogebot-red:latest -f containers/red/Containerfile . +if ! podman image exists localhost/dogebot-lavalink:current; then + mise exec -- uv run --frozen dogebot-update --build-only +fi + +mkdir -p "$quadlet_dir" "$unit_dir" +install -m 644 deploy/quadlet/* "$quadlet_dir/" +sed "s|%h/src/dogebot|$repo|" deploy/systemd/dogebot-update.service >"$unit_dir/dogebot-update.service" +install -m 644 deploy/systemd/dogebot-update.timer "$unit_dir/" +systemctl --user daemon-reload + +systemctl --user start dogebot-postgres.service dogebot-yt-cipher.service dogebot-lavalink.service +systemctl --user enable --now dogebot-update.timer +if $start_bot; then + systemctl --user start dogebot-red.service + echo "dogebot started: journalctl --user -u dogebot-red -f" +else + echo "Ready. Start the bot with: systemctl --user start dogebot-red" +fi +if [[ $(loginctl show-user "$USER" -p Linger --value 2>/dev/null) != yes ]]; then + echo "Note: run 'loginctl enable-linger $USER' so dogebot runs without a login session." +fi diff --git a/deploy/quadlet/dogebot-lavalink.container b/deploy/quadlet/dogebot-lavalink.container new file mode 100644 index 0000000..ce290d1 --- /dev/null +++ b/deploy/quadlet/dogebot-lavalink.container @@ -0,0 +1,26 @@ +[Unit] +Description=dogebot: Lavalink (music) +Wants=dogebot-yt-cipher.service +After=dogebot-yt-cipher.service + +[Container] +ContainerName=dogebot-lavalink +# Built and swapped in by dogebot-update.timer after a smoke test (see README) +Image=localhost/dogebot-lavalink:current +Network=dogebot.network +# Localhost only, for dogebot-smoke and the update job +PublishPort=127.0.0.1:2333:2333 +Secret=dogebot-lavalink-password,type=env,target=LAVALINK_PASSWORD +Secret=dogebot-yt-cipher-token,type=env,target=YT_CIPHER_TOKEN +Secret=dogebot-youtube-refresh-token,type=env,target=YOUTUBE_REFRESH_TOKEN +HealthCmd=sh -c 'curl -fsS -H "Authorization: $LAVALINK_PASSWORD" http://127.0.0.1:2333/version' +HealthInterval=60s +HealthStartPeriod=120s +Notify=healthy + +[Service] +Restart=always +TimeoutStartSec=300 + +[Install] +WantedBy=default.target diff --git a/deploy/quadlet/dogebot-postgres.container b/deploy/quadlet/dogebot-postgres.container new file mode 100644 index 0000000..438be27 --- /dev/null +++ b/deploy/quadlet/dogebot-postgres.container @@ -0,0 +1,21 @@ +[Unit] +Description=dogebot: Postgres (Red's storage) + +[Container] +ContainerName=dogebot-postgres +Image=docker.io/library/postgres:16-alpine +AutoUpdate=registry +Network=dogebot.network +Volume=dogebot-postgres.volume:/var/lib/postgresql/data +Environment=POSTGRES_USER=dogebot POSTGRES_DB=dogebot +Secret=dogebot-postgres-password,type=env,target=POSTGRES_PASSWORD +HealthCmd=pg_isready -U dogebot -d dogebot +HealthInterval=30s +HealthStartPeriod=30s +Notify=healthy + +[Service] +Restart=always + +[Install] +WantedBy=default.target diff --git a/deploy/quadlet/dogebot-postgres.volume b/deploy/quadlet/dogebot-postgres.volume new file mode 100644 index 0000000..a5ea3b9 --- /dev/null +++ b/deploy/quadlet/dogebot-postgres.volume @@ -0,0 +1,2 @@ +[Volume] +VolumeName=dogebot-postgres diff --git a/deploy/quadlet/dogebot-red.container b/deploy/quadlet/dogebot-red.container new file mode 100644 index 0000000..69d2cf6 --- /dev/null +++ b/deploy/quadlet/dogebot-red.container @@ -0,0 +1,26 @@ +[Unit] +Description=dogebot: Red-DiscordBot +Requires=dogebot-postgres.service +After=dogebot-postgres.service dogebot-lavalink.service +Wants=dogebot-lavalink.service + +[Container] +ContainerName=dogebot-red +Image=localhost/dogebot-red:latest +Network=dogebot.network +Volume=dogebot-red.volume:/data +Environment=PGHOST=dogebot-postgres PGPORT=5432 PGUSER=dogebot PGDATABASE=dogebot +Environment=LAVALINK_HOST=dogebot-lavalink LAVALINK_PORT=2333 +Environment=RED_PREFIX=d! +Secret=dogebot-discord-token,type=env,target=RED_TOKEN +Secret=dogebot-postgres-password,type=env,target=PGPASSWORD +Secret=dogebot-lavalink-password,type=env,target=LAVALINK_PASSWORD + +[Service] +Restart=always +RestartSec=10 +# 78 = Red's configuration error (e.g. a bad token): restarting won't help +RestartPreventExitStatus=78 + +[Install] +WantedBy=default.target diff --git a/deploy/quadlet/dogebot-red.volume b/deploy/quadlet/dogebot-red.volume new file mode 100644 index 0000000..168034c --- /dev/null +++ b/deploy/quadlet/dogebot-red.volume @@ -0,0 +1,3 @@ +# Red's data path: installed cogs, Downloader repos, Audio's local cache +[Volume] +VolumeName=dogebot-red diff --git a/deploy/quadlet/dogebot-yt-cipher.container b/deploy/quadlet/dogebot-yt-cipher.container new file mode 100644 index 0000000..a518594 --- /dev/null +++ b/deploy/quadlet/dogebot-yt-cipher.container @@ -0,0 +1,17 @@ +[Unit] +Description=dogebot: yt-cipher (YouTube signature deciphering for Lavalink) + +[Container] +ContainerName=dogebot-yt-cipher +# Follows upstream: podman auto-update pulls new builds and rolls back if it fails to start +Image=ghcr.io/kikkia/yt-cipher:master +AutoUpdate=registry +Network=dogebot.network +Environment=OVERRIDE_PLAYER_VARIANT=IAS +Secret=dogebot-yt-cipher-token,type=env,target=API_TOKEN + +[Service] +Restart=always + +[Install] +WantedBy=default.target diff --git a/deploy/quadlet/dogebot.network b/deploy/quadlet/dogebot.network new file mode 100644 index 0000000..e580b92 --- /dev/null +++ b/deploy/quadlet/dogebot.network @@ -0,0 +1,3 @@ +# Private network for dogebot's containers; they find each other by container name +[Network] +NetworkName=dogebot diff --git a/deploy/systemd/dogebot-update.service b/deploy/systemd/dogebot-update.service new file mode 100644 index 0000000..0f6583a --- /dev/null +++ b/deploy/systemd/dogebot-update.service @@ -0,0 +1,14 @@ +[Unit] +Description=dogebot: update Lavalink, its YouTube plugin and yt-cipher +After=network-online.target dogebot-lavalink.service + +[Service] +Type=oneshot +WorkingDirectory=%h/src/dogebot +# Lavalink + youtube-plugin: build, smoke test, swap in (rolls back on failure) +ExecStart=%h/.local/bin/mise exec -- uv run --frozen dogebot-update +# yt-cipher and Postgres follow their registry tags, with rollback +ExecStartPost=/usr/bin/podman auto-update +# Exit code 2 means no new build passed, so the running one was kept +SuccessExitStatus=2 +TimeoutStartSec=30min diff --git a/deploy/systemd/dogebot-update.timer b/deploy/systemd/dogebot-update.timer new file mode 100644 index 0000000..65f889d --- /dev/null +++ b/deploy/systemd/dogebot-update.timer @@ -0,0 +1,10 @@ +[Unit] +Description=dogebot: daily Lavalink/yt-cipher update + +[Timer] +OnCalendar=*-*-* 05:30:00 +RandomizedDelaySec=30min +Persistent=true + +[Install] +WantedBy=timers.target diff --git a/mise.toml b/mise.toml new file mode 100644 index 0000000..73c33fe --- /dev/null +++ b/mise.toml @@ -0,0 +1,50 @@ +# Dev tools and tasks. Python and the Python dependencies are managed by uv. +[tools] +uv = "0.13" + +[env] +# uv installs and uses the Python pinned in .python-version +UV_PYTHON_PREFERENCE = "only-managed" + +[tasks.sync] +description = "Install Python and all dependencies with uv" +run = "uv sync" + +[tasks.fmt] +description = "Format the code with ruff" +run = ["uv run ruff format", "uv run ruff check --fix"] + +[tasks.lint] +description = "Check formatting and lint rules" +run = ["uv run ruff format --check", "uv run ruff check"] + +[tasks.typecheck] +description = "Type check with ty" +run = "uv run ty check" + +[tasks.test] +description = "Run the tests" +run = "uv run pytest" + +[tasks.check] +description = "Everything CI would run" +depends = ["lint", "typecheck", "test"] + +[tasks.build] +description = "Build the Red and Lavalink images with podman" +run = """ +podman build -t localhost/dogebot-red:latest -f containers/red/Containerfile . +uv run dogebot-update --build-only +""" + +[tasks.install] +description = "Install the quadlets for the current user (see README)" +run = "deploy/install.sh" + +[tasks.update] +description = "Update Lavalink and its YouTube plugin now (normally a daily timer)" +run = "uv run dogebot-update" + +[tasks.smoke] +description = "Check that the running Lavalink can still load YouTube tracks" +run = "uv run dogebot-smoke" diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..6cb7f5d --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,166 @@ +[project] +name = "dogebot" +version = "1.0.0" +description = "Dogebot: a Red-DiscordBot instance with self-updating music (Lavalink + yt-cipher)" +readme = "README.md" +# Red 3.5 supports Python up to 3.11 +requires-python = ">=3.11,<3.12" +dependencies = [ + "red-discordbot[postgres]==3.5.24", + # Red's Downloader installs cog requirements with pip + "pip", +] + +[project.scripts] +dogebot-start = "dogebot.start:main" +dogebot-update = "dogebot.update:main" +dogebot-smoke = "dogebot.lavalink:main" + +[dependency-groups] +dev = [ + "pytest>=8", + "pytest-asyncio>=0.24", + "ruff>=0.17", + "ty>=0.0.97", +] + +[build-system] +requires = ["uv_build>=0.8.8,<0.14"] +build-backend = "uv_build" + +[tool.pytest.ini_options] +testpaths = ["tests"] +asyncio_mode = "auto" +asyncio_default_fixture_loop_scope = "function" + +[tool.ty.environment] +python-version = "3.11" +# Red imports the dogesetup cog from cogs/, so the tests do too +extra-paths = ["cogs"] + +[tool.ty.src] +include = ["src", "cogs", "tests"] + +# Formatting and lint settings copied from the lptn projects +# (Load_Payment_Tracker_Neo/lptn_employee_manager), with target-version set to +# the Python that Red supports. +[tool.ruff] +exclude = [ + ".bzr", + ".direnv", + ".eggs", + ".git", + ".git-rewrite", + ".hg", + ".ipynb_checkpoints", + ".mypy_cache", + ".nox", + ".pants.d", + ".pyenv", + ".pytest_cache", + ".pytype", + ".ruff_cache", + ".svn", + ".tox", + ".venv", + ".vscode", + "__pypackages__", + "_build", + "buck-out", + "build", + "dist", + "node_modules", + "site-packages", + "venv", +] + +# Same as Black. +line-length = 80 +indent-width = 8 + +target-version = "py311" + +[tool.ruff.lint] +# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default. +# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or +# McCabe complexity (`C901`) by default. +select = [ + "E2", + "E3", + "E4", + "E5", + "E7", + "E9", + "F", + "FAST", + "ANN", + "ASYNC", + "S", + "BLE", + "FBT", + "B", + "A", + # "COM", + "C4", + "DTZ", + "EM", + "FIX", + "INT", + "ISC", + "ICN", + "LOG", + "G", + "PIE", + "RET", + "SIM", + "TID", + "TC", + "ARG", + "PTH", + "I", + "C90", + "N", + "PERF", + "D", + "UP", + "TRY", +] +ignore = [] + +# Allow fix for all enabled rules (when `--fix`) is provided. +fixable = ["ALL"] +unfixable = [] + +# Allow unused variables when underscore-prefixed. +dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" + +[tool.ruff.lint.per-file-ignores] +# assert is how pytest checks things +"tests/**" = ["S101", "S105", "S106"] + +[tool.ruff.format] +# Like Black, use double quotes for strings. +quote-style = "double" + +# Like Black, indent with spaces, rather than tabs. +indent-style = "space" + +# Like Black, respect magic trailing commas. +skip-magic-trailing-comma = false + +# Like Black, automatically detect the appropriate line ending. +line-ending = "auto" + +# Enable auto-formatting of code examples in docstrings. Markdown, +# reStructuredText code/literal blocks and doctests are all supported. +# +# This is currently disabled by default, but it is planned for this +# to be opt-out in the future. +docstring-code-format = false + +# Set the line length limit used when formatting code snippets in +# docstrings. +# +# This only has an effect when the `docstring-code-format` setting is +# enabled. +docstring-code-line-length = "dynamic" diff --git a/src/dogebot/__init__.py b/src/dogebot/__init__.py new file mode 100644 index 0000000..4c0bd83 --- /dev/null +++ b/src/dogebot/__init__.py @@ -0,0 +1 @@ +"""Dogebot: a Red-DiscordBot instance with self-updating music.""" diff --git a/src/dogebot/lavalink.py b/src/dogebot/lavalink.py new file mode 100644 index 0000000..2cec0e3 --- /dev/null +++ b/src/dogebot/lavalink.py @@ -0,0 +1,160 @@ +"""Talk to a Lavalink v3 server and check that music still loads. + +``dogebot-smoke`` runs these checks against the running Lavalink. The update job +runs them against a freshly built image before it replaces the running one. +""" + +import json +import os +import sys +import time +import urllib.error +import urllib.parse +import urllib.request +from dataclasses import dataclass + + +@dataclass(frozen=True) +class Check: + """One track lookup that a healthy Lavalink must answer.""" + + name: str + identifier: str + expected: tuple[str, ...] + required: bool + + +@dataclass(frozen=True) +class CheckResult: + """What Lavalink answered for a :class:`Check`.""" + + check: Check + load_type: str + tracks: int + error: str + + @property + def passed(self) -> bool: + """Whether Lavalink returned tracks of the expected kind.""" + return self.load_type in self.check.expected and self.tracks > 0 + + +# YouTube is the source that breaks; SoundCloud shows Lavalink itself works. +CHECKS: tuple[Check, ...] = ( + Check( + "youtube search", + "ytsearch:Rick Astley Never Gonna Give You Up", + ("SEARCH_RESULT",), + required=True, + ), + Check( + "youtube video", + "https://www.youtube.com/watch?v=dQw4w9WgXcQ", + ("TRACK_LOADED",), + required=True, + ), + Check( + "soundcloud search", + "scsearch:lofi hip hop", + ("SEARCH_RESULT",), + required=False, + ), +) + + +class LavalinkClient: + """A minimal client for Lavalink's v3 REST API.""" + + def __init__(self, base_url: str, password: str) -> None: + """Create a client for the server at ``base_url``.""" + self.base_url = base_url.rstrip("/") + self.password = password + + def _get(self, path: str, timeout: float) -> bytes: + if not self.base_url.startswith(("http://", "https://")): + msg = f"not an http URL: {self.base_url}" + raise ValueError(msg) + request = urllib.request.Request( # noqa: S310 (checked above) + self.base_url + path, + headers={"Authorization": self.password}, + ) + with urllib.request.urlopen(request, timeout=timeout) as resp: # noqa: S310 + return resp.read() + + def version(self, timeout: float = 5) -> str: + """Return the server's version string.""" + return self._get("/version", timeout).decode().strip() + + def wait_ready(self, timeout: float = 120) -> str: + """Wait until the server answers, and return its version. + + Raises: + TimeoutError: if it doesn't answer within ``timeout``. + + """ + deadline = time.monotonic() + timeout + while True: + try: + return self.version() + except (OSError, urllib.error.URLError): + if time.monotonic() > deadline: + raise + time.sleep(2) + + def load_tracks(self, identifier: str, timeout: float = 30) -> dict: + """Look ``identifier`` up with ``/loadtracks``.""" + query = urllib.parse.urlencode({"identifier": identifier}) + return json.loads(self._get(f"/loadtracks?{query}", timeout)) + + def run_check(self, check: Check) -> CheckResult: + """Run one :class:`Check`.""" + try: + answer = self.load_tracks(check.identifier) + except (OSError, ValueError) as exc: + return CheckResult(check, "ERROR", 0, str(exc)) + exception = answer.get("exception") or {} + return CheckResult( + check, + str(answer.get("loadType", "")), + len(answer.get("tracks") or []), + str(exception.get("message", "")), + ) + + +def smoke(client: LavalinkClient) -> list[CheckResult]: + """Run all :data:`CHECKS` against ``client``.""" + return [client.run_check(check) for check in CHECKS] + + +def healthy(results: list[CheckResult]) -> bool: + """Whether every required check passed.""" + return all(r.passed for r in results if r.check.required) + + +def describe(results: list[CheckResult]) -> str: + """Return one line per check, for logs.""" + lines = [] + for r in results: + mark = ( + "ok " + if r.passed + else ("FAIL" if r.check.required else "warn") + ) + detail = f" ({r.error})" if r.error else "" + lines.append( + f"{mark} {r.check.name}: {r.load_type}, " + f"{r.tracks} tracks{detail}" + ) + return "\n".join(lines) + + +def main() -> None: + """Smoke test the Lavalink at $LAVALINK_URL (default localhost:2333).""" + client = LavalinkClient( + os.environ.get("LAVALINK_URL", "http://127.0.0.1:2333"), + os.environ.get("LAVALINK_PASSWORD", ""), + ) + print(f"Lavalink {client.wait_ready(timeout=10)}") # noqa: T201 + results = smoke(client) + print(describe(results)) # noqa: T201 + sys.exit(0 if healthy(results) else 1) diff --git a/src/dogebot/manifest.py b/src/dogebot/manifest.py new file mode 100644 index 0000000..7af018f --- /dev/null +++ b/src/dogebot/manifest.py @@ -0,0 +1,88 @@ +"""Which cogs dogebot runs, and where the third-party ones come from. + +The ``dogesetup`` cog reads this on every start: it adds missing repos, installs +missing cogs and loads them in :func:`load_order`. Edit this file to change the +bot's cogs. +""" + +from dataclasses import dataclass + + +@dataclass(frozen=True) +class CogRepo: + """A Downloader repository of third-party cogs.""" + + name: str + url: str + branch: str + + +REPOS: tuple[CogRepo, ...] = ( + CogRepo( + "trusty-cogs", + "https://github.com/TrustyJAID/Trusty-cogs", + "master", + ), + CogRepo("fox-v3", "https://github.com/bobloy/Fox-V3", "master"), + CogRepo("pcxcogs", "https://github.com/PhasecoreX/PCXCogs", "master"), + CogRepo( + "aikaterna-cogs", + "https://github.com/aikaterna/aikaterna-cogs", + "v3", + ), + CogRepo("flare-cogs", "https://github.com/flaree/Flare-Cogs", "master"), +) + +# Cogs that ship with Red. Downloader is needed to install the others. +CORE_COGS: tuple[str, ...] = ( + "downloader", + "admin", + "audio", + "mod", + "modlog", + "permissions", + "reports", + "warnings", +) + +# Third-party cog name -> name of the repo in REPOS that provides it +THIRD_PARTY_COGS: dict[str, str] = { + "starboard": "trusty-cogs", + "roletools": "trusty-cogs", + "serverstats": "trusty-cogs", + "audiotrivia": "fox-v3", + "reactchannel": "pcxcogs", + "timezone": "aikaterna-cogs", + "userinfo": "flare-cogs", +} + + +def repo_by_name(name: str) -> CogRepo: + """Return the repo called ``name``. + + Raises: + KeyError: if no repo in REPOS has that name. + + """ + for repo in REPOS: + if repo.name == name: + return repo + raise KeyError(name) + + +def cogs_from(repo: CogRepo) -> list[str]: + """Return the third-party cogs that come from ``repo``.""" + return [ + cog + for cog, repo_name in THIRD_PARTY_COGS.items() + if repo_name == repo.name + ] + + +def load_order() -> list[str]: + """Return every cog in the order it should be loaded. + + Core cogs come first: audiotrivia needs audio, and flare's userinfo + replaces the userinfo command from mod. + """ + return [*CORE_COGS, *THIRD_PARTY_COGS] diff --git a/src/dogebot/start.py b/src/dogebot/start.py new file mode 100644 index 0000000..3bb05eb --- /dev/null +++ b/src/dogebot/start.py @@ -0,0 +1,83 @@ +"""Container entry point: configure the Red instance, then run it. + +Everything comes from the environment, so the container needs no interactive +``redbot-setup``: + +- ``RED_TOKEN``: the Discord bot token (Red reads it itself). +- ``PGHOST``, ``PGPORT``, ``PGUSER``, ``PGPASSWORD``, ``PGDATABASE``: the + Postgres database (asyncpg reads them itself). +- ``RED_INSTANCE`` (default ``dogebot``), ``RED_DATA_PATH`` (default ``/data``) + and ``RED_PREFIX`` (default ``d!``, comma-separated for more than one). +""" + +import json +import os +import shutil +from pathlib import Path + +from redbot.core import data_manager + +SETUP_COG = Path(__file__).resolve().parents[2] / "cogs/dogesetup" + + +def instance_config(data_path: Path) -> dict: + """Return Red's instance settings for a Postgres-backed instance. + + The connection details are left empty so that asyncpg takes them from + the ``PG*`` environment variables, which keeps the password out of + the config file. + """ + return { + "DATA_PATH": str(data_path), + "COG_PATH_APPEND": "cogs", + "CORE_PATH_APPEND": "core", + "STORAGE_TYPE": "Postgres", + "STORAGE_DETAILS": { + "host": None, + "port": None, + "user": None, + "password": None, + "database": None, + }, + } + + +def write_instance_config( + config_file: Path, name: str, data_path: Path +) -> None: + """Add or replace instance ``name`` in Red's config file.""" + config_file.parent.mkdir(parents=True, exist_ok=True) + try: + instances = json.loads(config_file.read_text()) + except (OSError, ValueError): + instances = {} + instances[name] = instance_config(data_path) + config_file.write_text(json.dumps(instances, indent=4) + "\n") + + +def install_setup_cog(data_path: Path, source: Path = SETUP_COG) -> Path: + """Copy the dogesetup cog into Red's default cog install path.""" + target = data_path / "cogs/CogManager/cogs/dogesetup" + shutil.rmtree(target, ignore_errors=True) + shutil.copytree(source, target) + return target + + +def redbot_args(name: str, prefixes: list[str]) -> list[str]: + """Return the ``redbot`` command line.""" + args = ["redbot", name, "--no-prompt", "--load-cogs", "dogesetup"] + for prefix in prefixes: + args += ["--prefix", prefix] + return args + + +def main() -> None: + """Configure the instance and replace this process with Red.""" + name = os.environ.get("RED_INSTANCE", "dogebot") + data_path = Path(os.environ.get("RED_DATA_PATH", "/data")) + prefixes = os.environ.get("RED_PREFIX", "d!").split(",") + data_path.mkdir(parents=True, exist_ok=True) + write_instance_config(Path(data_manager.config_file), name, data_path) + install_setup_cog(data_path) + args = redbot_args(name, [p for p in prefixes if p]) + os.execvp(args[0], args) # noqa: S606 diff --git a/src/dogebot/update.py b/src/dogebot/update.py new file mode 100644 index 0000000..d2e4412 --- /dev/null +++ b/src/dogebot/update.py @@ -0,0 +1,323 @@ +"""Keep Lavalink and its YouTube plugin up to date without breaking music. + +YouTube changes often, and the youtube-source plugin follows within days. This +job, run daily by ``dogebot-update.timer``: + +1. finds the newest Red build of Lavalink and the newest youtube-source + release and snapshot; +2. builds a candidate image for each new combination, release first; +3. starts the candidate next to the running Lavalink and checks that it can + still load YouTube tracks (:mod:`dogebot.lavalink`); +4. promotes the first candidate that passes and restarts Lavalink, rolling back + if the restarted service doesn't pass the same checks. + +If nothing passes, the running Lavalink is left alone. +""" + +import argparse +import json +import os +import secrets +import shutil +import subprocess +import sys +import urllib.request +from dataclasses import asdict, dataclass +from pathlib import Path + +from dogebot.lavalink import LavalinkClient, describe, healthy, smoke + +IMAGE = "localhost/dogebot-lavalink" +CONTAINERFILE_DIR = Path(__file__).resolve().parents[2] / "containers/lavalink" +NETWORK = "dogebot" +SERVICE = "dogebot-lavalink.service" +LIVE_URL = "http://127.0.0.1:2333" +CANDIDATE_PORT = 12333 + +LAVALINK_RELEASES = ( + "https://api.github.com/repos/Cog-Creators/Lavalink-Jars/releases" +) +PLUGIN_RELEASES = "https://api.github.com/repos/lavalink-devs/youtube-source/releases/latest" +PLUGIN_MAIN = ( + "https://api.github.com/repos/lavalink-devs/youtube-source/commits/main" +) +MAVEN = "https://maven.lavalink.dev" + +# Podman secret -> environment variable in the Lavalink container +SECRETS = { + "dogebot-lavalink-password": "LAVALINK_PASSWORD", + "dogebot-yt-cipher-token": "YT_CIPHER_TOKEN", + "dogebot-youtube-refresh-token": "YOUTUBE_REFRESH_TOKEN", +} + + +@dataclass(frozen=True) +class Versions: + """A Lavalink build and the YouTube plugin to run with it.""" + + lavalink: str + plugin: str + plugin_repo: str + + def build_args(self) -> list[str]: + """Return ``podman build`` arguments for these versions.""" + return [ + f"--build-arg=LAVALINK_VERSION={self.lavalink}", + f"--build-arg=YOUTUBE_PLUGIN_VERSION={self.plugin}", + f"--build-arg=YOUTUBE_PLUGIN_REPO={MAVEN}/{self.plugin_repo}", + ] + + +def state_file() -> Path: + """Return where the versions of the running image are recorded.""" + base = os.environ.get("XDG_STATE_HOME") or Path.home() / ".local/state" + return Path(base) / "dogebot/lavalink.json" + + +def read_state() -> Versions | None: + """Return the versions of the running image, if known.""" + try: + return Versions(**json.loads(state_file().read_text())) + except (OSError, ValueError, TypeError): + return None + + +def write_state(versions: Versions) -> None: + """Record ``versions`` as the running image.""" + path = state_file() + path.parent.mkdir(parents=True, exist_ok=True) + path.write_text(json.dumps(asdict(versions), indent=2) + "\n") + + +def _get_json(url: str) -> dict | list: + headers = {"Accept": "application/vnd.github+json"} + if token := os.environ.get("GITHUB_TOKEN"): + headers["Authorization"] = f"Bearer {token}" + request = urllib.request.Request(url, headers=headers) # noqa: S310 + with urllib.request.urlopen(request, timeout=30) as resp: # noqa: S310 + return json.load(resp) + + +def _exists(url: str) -> bool: + request = urllib.request.Request(url, method="HEAD") # noqa: S310 + try: + with urllib.request.urlopen(request, timeout=30): # noqa: S310 + return True + except OSError: + return False + + +def plugin_jar_url(plugin: str, repo: str) -> str: + """Return the Maven URL of a youtube-plugin build.""" + return ( + f"{MAVEN}/{repo}/dev/lavalink/youtube/youtube-plugin/" + f"{plugin}/youtube-plugin-{plugin}.jar" + ) + + +def latest_lavalink(releases: list[dict]) -> str: + """Return the newest non-prerelease Red build of Lavalink. + + Red 3.5 speaks Lavalink's v3 protocol, so only Red's own builds of + Lavalink 3.7 are used, never upstream Lavalink 4. + + Raises: + LookupError: if there is no usable release. + + """ + for release in releases: + tag = str(release.get("tag_name", "")) + if release.get("prerelease") or release.get("draft"): + continue + if "+red" in tag and tag.startswith("3."): + return tag + msg = "no Red Lavalink release found" + raise LookupError(msg) + + +def resolve_candidates() -> list[Versions]: + """Return the newest versions to try, the release plugin first.""" + releases = _get_json(LAVALINK_RELEASES) + if not isinstance(releases, list): + msg = "unexpected answer from GitHub releases" + raise TypeError(msg) + lavalink = latest_lavalink(releases) + candidates = [] + release = _get_json(PLUGIN_RELEASES) + if isinstance(release, dict) and release.get("tag_name"): + candidates.append( + Versions(lavalink, str(release["tag_name"]), "releases") + ) + main = _get_json(PLUGIN_MAIN) + if isinstance(main, dict) and main.get("sha"): + snapshot = Versions(lavalink, str(main["sha"]), "snapshots") + if _exists(plugin_jar_url(snapshot.plugin, "snapshots")): + candidates.append(snapshot) + return candidates + + +def run(*args: str, check: bool = True) -> subprocess.CompletedProcess[str]: + """Run a command (podman, systemctl) and return the result.""" + print("+", " ".join(args), flush=True) # noqa: T201 + return subprocess.run(args, check=check, text=True) # noqa: S603 + + +def build(versions: Versions, tag: str) -> None: + """Build the Lavalink image for ``versions`` as ``IMAGE:tag``.""" + run( + "podman", + "build", + "--pull=newer", + *versions.build_args(), + f"--label=dogebot.lavalink={versions.lavalink}", + f"--label=dogebot.youtube-plugin={versions.plugin}", + "-t", + f"{IMAGE}:{tag}", + str(CONTAINERFILE_DIR), + ) + + +def test_candidate(tag: str) -> bool: + """Start ``IMAGE:tag`` next to the live Lavalink and smoke test it.""" + name = "dogebot-lavalink-candidate" + password = secrets.token_urlsafe(24) + run("podman", "rm", "-f", name, check=False) + secret_args = [ + f"--secret={secret},type=env,target={env}" + for secret, env in SECRETS.items() + if env != "LAVALINK_PASSWORD" + ] + run( + "podman", + "run", + "-d", + "--rm", + f"--name={name}", + f"--network={NETWORK}", + f"--publish=127.0.0.1:{CANDIDATE_PORT}:2333", + f"--env=LAVALINK_PASSWORD={password}", + *secret_args, + f"{IMAGE}:{tag}", + ) + try: + client = LavalinkClient( + f"http://127.0.0.1:{CANDIDATE_PORT}", password + ) + print(f"candidate Lavalink {client.wait_ready()}") # noqa: T201 + results = smoke(client) + print(describe(results), flush=True) # noqa: T201 + return healthy(results) + except (OSError, TimeoutError) as exc: + print(f"candidate did not start: {exc}") # noqa: T201 + return False + finally: + run("podman", "logs", "--tail=20", name, check=False) + run("podman", "rm", "-f", name, check=False) + + +def live_password() -> str: + """Return the live Lavalink's password from its podman secret.""" + podman = shutil.which("podman") or "podman" + result = subprocess.run( # noqa: S603 (fixed arguments) + ( + podman, + "secret", + "inspect", + "--showsecret", + "--format", + "{{.SecretData}}", + "dogebot-lavalink-password", + ), + check=True, + capture_output=True, + text=True, + ) + return result.stdout.strip() + + +def live_is_healthy() -> bool: + """Smoke test the running Lavalink service.""" + client = LavalinkClient(LIVE_URL, live_password()) + try: + client.wait_ready(timeout=180) + except (OSError, TimeoutError): + return False + results = smoke(client) + print(describe(results), flush=True) # noqa: T201 + return healthy(results) + + +def promote(versions: Versions, previous: Versions | None) -> bool: + """Make the candidate the running image; roll back if it fails live.""" + have_current = ( + run( + "podman", + "image", + "exists", + f"{IMAGE}:current", + check=False, + ).returncode + == 0 + ) + if have_current: + run("podman", "tag", f"{IMAGE}:current", f"{IMAGE}:previous") + run("podman", "tag", f"{IMAGE}:candidate", f"{IMAGE}:current") + run("systemctl", "--user", "restart", SERVICE) + if live_is_healthy(): + write_state(versions) + return True + print("live Lavalink failed after the update; rolling back") # noqa: T201 + if have_current: + run("podman", "tag", f"{IMAGE}:previous", f"{IMAGE}:current") + run("systemctl", "--user", "restart", SERVICE) + if previous is not None: + write_state(previous) + return False + + +def main() -> None: + """Update Lavalink if a newer, working combination exists.""" + parser = argparse.ArgumentParser(description=__doc__.splitlines()[0]) + parser.add_argument( + "--build-only", + action="store_true", + help="build the newest release as :current without testing " + "(first install, before the secrets and network exist)", + ) + parser.add_argument( + "--force", + action="store_true", + help="rebuild and test even if the versions are unchanged", + ) + args = parser.parse_args() + if shutil.which("podman") is None: + sys.exit("podman is not installed") + + candidates = resolve_candidates() + if not candidates: + sys.exit("could not find any youtube-plugin build") + if args.build_only: + build(candidates[0], "current") + write_state(candidates[0]) + return + + current = read_state() + for versions in candidates: + if versions == current and not args.force: + # Unchanged; still try newer builds if YouTube broke it + if live_is_healthy(): + print(f"already running {versions}") # noqa: T201 + return + print(f"{versions} is running but failing") # noqa: T201 + continue + print(f"trying {versions}", flush=True) # noqa: T201 + try: + build(versions, "candidate") + except subprocess.CalledProcessError as exc: + print(f"build failed ({exc}); skipping") # noqa: T201 + continue + if test_candidate("candidate") and promote(versions, current): + print(f"now running {versions}") # noqa: T201 + return + print(f"no candidate passed; still running {current}") # noqa: T201 + sys.exit(2) diff --git a/tests/conftest.py b/tests/conftest.py new file mode 100644 index 0000000..09b7cc7 --- /dev/null +++ b/tests/conftest.py @@ -0,0 +1,6 @@ +"""Make the dogesetup cog importable the way Red imports it.""" + +import sys +from pathlib import Path + +sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "cogs")) diff --git a/tests/test_dogesetup.py b/tests/test_dogesetup.py new file mode 100644 index 0000000..c068997 --- /dev/null +++ b/tests/test_dogesetup.py @@ -0,0 +1,163 @@ +"""dogesetup installs exactly what's missing and loads the manifest in order.""" + +from dataclasses import dataclass, field +from typing import TYPE_CHECKING, Any, cast + +import pytest +from dogesetup.dogesetup import DogeSetup, lavalink_settings + +from dogebot import manifest + +if TYPE_CHECKING: + from redbot.core.bot import Red + + +@dataclass +class FakeCog: + """Stands in for Downloader's Installable.""" + + name: str + + +@dataclass +class FakeRepo: + """Stands in for a Downloader Repo.""" + + name: str + + +@dataclass +class FakeRepoManager: + """Records which repos were added.""" + + repos: dict[str, FakeRepo] = field(default_factory=dict) + added: list[str] = field(default_factory=list) + + def get_repo(self, name: str) -> FakeRepo | None: + """Return a repo by name.""" + return self.repos.get(name) + + async def add_repo(self, url: str, name: str, branch: str) -> FakeRepo: + """Add a repo.""" + assert url.startswith("https://") + assert branch + self.added.append(name) + self.repos[name] = FakeRepo(name) + return self.repos[name] + + +@dataclass +class FakeDownloader: + """Stands in for Red's Downloader cog.""" + + installed: list[str] + broken: set[str] = field(default_factory=set) + _repo_manager: FakeRepoManager = field(default_factory=FakeRepoManager) + saved: list[str] = field(default_factory=list) + + async def installed_cogs(self) -> list[FakeCog]: + """Return the cogs already installed.""" + return [FakeCog(n) for n in self.installed] + + async def _filter_incorrect_cogs_by_names( + self, _repo: FakeRepo, names: list[str] + ) -> tuple[list[FakeCog], str]: + return [FakeCog(n) for n in names], "" + + async def _install_requirements(self, _cogs: list[FakeCog]) -> tuple: + return () + + async def _install_cogs( + self, cogs: list[FakeCog] + ) -> tuple[list[FakeCog], list[FakeCog]]: + ok = [c for c in cogs if c.name not in self.broken] + return ok, [c for c in cogs if c.name in self.broken] + + async def _save_to_installed(self, cogs: list[FakeCog]) -> None: + self.saved += [c.name for c in cogs] + + +class FakeCore: + """Records loads.""" + + def __init__(self) -> None: + """Start with nothing loaded.""" + self.loaded: list[list[str]] = [] + + async def _load(self, names: list[str]) -> dict[str, Any]: + self.loaded.append(list(names)) + return {"loaded_packages": list(names)} + + +class FakeBot: + """Just enough of Red for dogesetup.""" + + def __init__(self, downloader: FakeDownloader) -> None: + """Wrap ``downloader``.""" + self.cogs = {"Downloader": downloader, "Core": FakeCore()} + self.extensions: dict[str, object] = {} + + def get_cog(self, name: str) -> object | None: + """Return a cog by name.""" + return self.cogs.get(name) + + +def make(installed: list[str], broken: set[str] | None = None) -> DogeSetup: + """Return a DogeSetup on a fake bot.""" + downloader = FakeDownloader(installed, broken or set()) + return DogeSetup(cast("Red", FakeBot(downloader))) + + +async def test_fresh_install_adds_every_repo_and_cog() -> None: + """On an empty instance every repo is added and every cog installed.""" + setup = make([]) + assert await setup.install_missing() == [] + downloader = setup.bot.get_cog("Downloader") + assert isinstance(downloader, FakeDownloader) + assert sorted(downloader._repo_manager.added) == sorted( + r.name for r in manifest.REPOS + ) + assert sorted(downloader.saved) == sorted(manifest.THIRD_PARTY_COGS) + + +async def test_installed_cogs_are_left_alone() -> None: + """Nothing is reinstalled and no repo is added.""" + setup = make(list(manifest.THIRD_PARTY_COGS)) + assert await setup.install_missing() == [] + downloader = setup.bot.get_cog("Downloader") + assert isinstance(downloader, FakeDownloader) + assert downloader.saved == [] + assert downloader._repo_manager.added == [] + + +async def test_failures_are_reported() -> None: + """A cog that fails to install is returned, the rest still install.""" + setup = make([], broken={"timezone"}) + assert await setup.install_missing() == ["timezone"] + + +async def test_provision_loads_downloader_then_manifest() -> None: + """Downloader loads first, then everything in load order.""" + setup = make([]) + await setup.provision() + core = setup.bot.get_cog("Core") + assert isinstance(core, FakeCore) + assert core.loaded == [["downloader"], manifest.load_order()] + + +def test_lavalink_settings_from_env(monkeypatch: pytest.MonkeyPatch) -> None: + """Audio is pointed at the Lavalink in the environment.""" + monkeypatch.setenv("LAVALINK_HOST", "lava") + monkeypatch.setenv("LAVALINK_PORT", "1234") + monkeypatch.setenv("LAVALINK_PASSWORD", "pw") + settings = lavalink_settings() + assert settings["use_external_lavalink"] is True + assert ( + settings["host"], + settings["rest_port"], + settings["ws_port"], + ) == ( + "lava", + 1234, + 1234, + ) diff --git a/tests/test_lavalink.py b/tests/test_lavalink.py new file mode 100644 index 0000000..750a425 --- /dev/null +++ b/tests/test_lavalink.py @@ -0,0 +1,103 @@ +"""The smoke test tells a working Lavalink from a broken one.""" + +import json +import threading +from collections.abc import Iterator +from http.server import BaseHTTPRequestHandler, HTTPServer +from urllib.parse import parse_qs, urlparse + +import pytest + +from dogebot.lavalink import LavalinkClient, describe, healthy, smoke + +PASSWORD = "test-password" + + +class FakeLavalink(BaseHTTPRequestHandler): + """Answers like Lavalink 3.7; YouTube works unless ``broken``.""" + + broken = False + + def do_GET(self) -> None: # noqa: N802 (http.server's naming) + """Serve /version and /loadtracks.""" + if self.headers.get("Authorization") != PASSWORD: + self.send_response(401) + self.end_headers() + return + url = urlparse(self.path) + if url.path == "/version": + self._send(b"3.7.13+red.5") + return + identifier = parse_qs(url.query)["identifier"][0] + if ( + self.broken + and "youtube" in identifier + or (self.broken and identifier.startswith("ytsearch:")) + ): + answer = { + "loadType": "LOAD_FAILED", + "tracks": [], + "exception": {"message": "Sign in to confirm"}, + } + elif identifier.startswith(("ytsearch:", "scsearch:")): + answer = { + "loadType": "SEARCH_RESULT", + "tracks": [{}, {}], + } + else: + answer = {"loadType": "TRACK_LOADED", "tracks": [{}]} + self._send(json.dumps(answer).encode()) + + def _send(self, body: bytes) -> None: + self.send_response(200) + self.end_headers() + self.wfile.write(body) + + def log_message(self, format: str, *args: object) -> None: # noqa: A002, ARG002 + """Keep test output quiet.""" + + +@pytest.fixture +def server() -> Iterator[HTTPServer]: + """Run a FakeLavalink on a free port.""" + httpd = HTTPServer(("127.0.0.1", 0), FakeLavalink) + thread = threading.Thread(target=httpd.serve_forever, daemon=True) + thread.start() + yield httpd + httpd.shutdown() + FakeLavalink.broken = False + + +def client_for(httpd: HTTPServer, password: str = PASSWORD) -> LavalinkClient: + """Return a client for ``httpd``.""" + return LavalinkClient(f"http://127.0.0.1:{httpd.server_port}", password) + + +def test_working_lavalink_is_healthy(server: HTTPServer) -> None: + """All checks pass against a working server.""" + client = client_for(server) + assert client.wait_ready(timeout=5) == "3.7.13+red.5" + results = smoke(client) + assert healthy(results) + assert all(r.passed for r in results) + + +def test_broken_youtube_is_unhealthy(server: HTTPServer) -> None: + """YouTube failing is reported even when SoundCloud works.""" + FakeLavalink.broken = True + results = smoke(client_for(server)) + assert not healthy(results) + assert "Sign in to confirm" in describe(results) + + +def test_wrong_password_is_unhealthy(server: HTTPServer) -> None: + """A 401 counts as a failure, not a crash.""" + assert not healthy(smoke(client_for(server, "wrong"))) + + +def test_rejects_non_http_urls() -> None: + """Only http(s) URLs are ever opened.""" + result = LavalinkClient("file:///etc/passwd", "x").run_check( + smoke.__globals__["CHECKS"][0] + ) + assert result.load_type == "ERROR" diff --git a/tests/test_manifest.py b/tests/test_manifest.py new file mode 100644 index 0000000..69f67a7 --- /dev/null +++ b/tests/test_manifest.py @@ -0,0 +1,52 @@ +"""The cog manifest has what the bot needs.""" + +from dogebot import manifest + +REQUIRED = { + "starboard", + "audiotrivia", + "audio", + "admin", + "mod", + "modlog", + "permissions", + "reactchannel", + "reports", + "roletools", + "serverstats", + "timezone", + "userinfo", + "warnings", +} + + +def test_has_every_required_cog() -> None: + """All 14 cogs from the requirements are loaded.""" + assert set(manifest.load_order()) >= REQUIRED + + +def test_third_party_cogs_have_a_repo() -> None: + """Every third-party cog names a repo in REPOS.""" + for repo_name in manifest.THIRD_PARTY_COGS.values(): + assert manifest.repo_by_name(repo_name).url.startswith( + "https://" + ) + + +def test_load_order() -> None: + """Dependencies load first and nothing loads twice.""" + order = manifest.load_order() + assert len(order) == len(set(order)) + assert order[0] == "downloader" + assert order.index("audio") < order.index("audiotrivia") + assert order.index("mod") < order.index("userinfo") + + +def test_cogs_from() -> None: + """Cogs are grouped by the repo they come from.""" + trusty = manifest.repo_by_name("trusty-cogs") + assert sorted(manifest.cogs_from(trusty)) == [ + "roletools", + "serverstats", + "starboard", + ] diff --git a/tests/test_red_contract.py b/tests/test_red_contract.py new file mode 100644 index 0000000..9cf7e4e --- /dev/null +++ b/tests/test_red_contract.py @@ -0,0 +1,54 @@ +"""Red's internals that dogesetup calls still exist with the same shape. + +These are private methods, so a Red upgrade may change them. If this fails +after bumping red-discordbot, update cogs/dogesetup before deploying. +""" + +import inspect + +import pytest +from redbot.cogs.downloader.downloader import Downloader +from redbot.cogs.downloader.repo_manager import RepoManager +from redbot.core.core_commands import CoreLogic + +EXPECTED: list[tuple[type, str, list[str]]] = [ + (Downloader, "installed_cogs", ["self"]), + ( + Downloader, + "_filter_incorrect_cogs_by_names", + ["self", "repo", "cog_names"], + ), + (Downloader, "_install_requirements", ["self", "cogs"]), + (Downloader, "_install_cogs", ["self", "cogs"]), + (Downloader, "_save_to_installed", ["self", "modules"]), + ( + Downloader, + "_get_cogs_to_check", + ["self", "repos", "cogs", "update_repos"], + ), + (Downloader, "_available_updates", ["self", "cogs"]), + (Downloader, "_filter_incorrect_cogs", ["self", "cogs"]), + (Downloader, "_reinstall_libraries", ["self", "libraries"]), + (RepoManager, "add_repo", ["self", "url", "name", "branch"]), + (RepoManager, "get_repo", ["self", "name"]), + (CoreLogic, "_load", ["self", "pkg_names"]), + (CoreLogic, "_reload", ["self", "pkg_names"]), +] + + +@pytest.mark.parametrize(("cls", "name", "params"), EXPECTED) +def test_internal_method_exists( + cls: type, name: str, params: list[str] +) -> None: + """``cls.name`` exists and takes ``params``.""" + method = getattr(cls, name) + assert list(inspect.signature(method).parameters) == params + + +def test_audio_config_identifier() -> None: + """Audio's settings are written under Audio's own identifier.""" + import redbot.cogs.audio.core as audio_core # noqa: PLC0415 + from dogesetup.dogesetup import AUDIO_IDENTIFIER + + source = inspect.getsource(audio_core).replace(" ", "") + assert f"Config.get_conf(self,{AUDIO_IDENTIFIER}," in source diff --git a/tests/test_start.py b/tests/test_start.py new file mode 100644 index 0000000..91f3481 --- /dev/null +++ b/tests/test_start.py @@ -0,0 +1,43 @@ +"""The container entry point configures Red correctly.""" + +import json +from pathlib import Path + +from dogebot import start + + +def test_instance_config_leaves_connection_to_env(tmp_path: Path) -> None: + """No password ends up in Red's config file.""" + config = start.instance_config(tmp_path) + assert config["STORAGE_TYPE"] == "Postgres" + assert set(config["STORAGE_DETAILS"].values()) == {None} + assert config["DATA_PATH"] == str(tmp_path) + + +def test_write_instance_config_keeps_other_instances(tmp_path: Path) -> None: + """Writing one instance doesn't drop the others.""" + config_file = tmp_path / "Red-DiscordBot/config.json" + config_file.parent.mkdir() + config_file.write_text(json.dumps({"other": {"DATA_PATH": "/x"}})) + start.write_instance_config(config_file, "dogebot", tmp_path / "data") + instances = json.loads(config_file.read_text()) + assert set(instances) == {"other", "dogebot"} + + +def test_install_setup_cog_replaces_old_copy(tmp_path: Path) -> None: + """The cog is copied into Red's install path, replacing stale files.""" + stale = tmp_path / "cogs/CogManager/cogs/dogesetup/old.py" + stale.parent.mkdir(parents=True) + stale.write_text("") + target = start.install_setup_cog(tmp_path) + assert (target / "dogesetup.py").is_file() + assert (target / "info.json").is_file() + assert not stale.exists() + + +def test_redbot_args() -> None: + """Red runs without prompts, loads dogesetup and gets every prefix.""" + args = start.redbot_args("dogebot", ["d!", "!"]) + assert args[:3] == ["redbot", "dogebot", "--no-prompt"] + assert args[args.index("--load-cogs") + 1] == "dogesetup" + assert args.count("--prefix") == 2 diff --git a/tests/test_update.py b/tests/test_update.py new file mode 100644 index 0000000..31db2ec --- /dev/null +++ b/tests/test_update.py @@ -0,0 +1,61 @@ +"""Version resolution and state for the Lavalink update job.""" + +from pathlib import Path + +import pytest + +from dogebot import update + + +def test_latest_lavalink_picks_newest_red_build() -> None: + """Prereleases and non-Red builds are skipped.""" + releases = [ + {"tag_name": "4.0.0", "prerelease": False}, + {"tag_name": "3.7.14+red.1", "prerelease": True}, + {"tag_name": "3.7.13+red.5", "prerelease": False}, + {"tag_name": "3.7.13+red.3", "prerelease": False}, + ] + assert update.latest_lavalink(releases) == "3.7.13+red.5" + + +def test_latest_lavalink_needs_a_release() -> None: + """No usable release is an error, not a silent downgrade.""" + with pytest.raises(LookupError): + update.latest_lavalink([{"tag_name": "4.0.0"}]) + + +def test_build_args_point_at_maven() -> None: + """The plugin repository is a full Maven URL.""" + args = update.Versions( + "3.7.13+red.5", "abc123", "snapshots" + ).build_args() + assert "--build-arg=YOUTUBE_PLUGIN_VERSION=abc123" in args + assert ( + "--build-arg=YOUTUBE_PLUGIN_REPO=https://maven.lavalink.dev/snapshots" + in args + ) + + +def test_plugin_jar_url() -> None: + """Jar URLs follow Maven's layout.""" + assert update.plugin_jar_url("1.18.2", "releases") == ( + "https://maven.lavalink.dev/releases/dev/lavalink/youtube/" + "youtube-plugin/1.18.2/youtube-plugin-1.18.2.jar" + ) + + +def test_state_round_trip( + tmp_path: Path, monkeypatch: pytest.MonkeyPatch +) -> None: + """Recorded versions read back the same; a missing file is None.""" + monkeypatch.setenv("XDG_STATE_HOME", str(tmp_path)) + assert update.read_state() is None + versions = update.Versions("3.7.13+red.5", "1.18.2", "releases") + update.write_state(versions) + assert update.read_state() == versions + + +def test_containerfile_dir_exists() -> None: + """The build context the job uses is in the repo.""" + assert (update.CONTAINERFILE_DIR / "Containerfile").is_file() + assert (update.CONTAINERFILE_DIR / "application.yml").is_file() diff --git a/uv.lock b/uv.lock new file mode 100644 index 0000000..6a72a61 --- /dev/null +++ b/uv.lock @@ -0,0 +1,752 @@ +version = 1 +revision = 5 +requires-python = "==3.11.*" + +[[package]] +name = "aiohttp" +version = "3.9.5" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "aiosignal" }, + { name = "attrs" }, + { name = "frozenlist" }, + { name = "multidict" }, + { name = "yarl" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/04/a4/e3679773ea7eb5b37a2c998e25b017cc5349edf6ba2739d1f32855cfb11b/aiohttp-3.9.5.tar.gz", hash = "sha256:edea7d15772ceeb29db4aff55e482d4bcfb6ae160ce144f2682de02f6d693551", size = 7504841, upload-time = "2024-04-16T17:49:10.915Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/67/f5/aa23d04a1bb57e5f51108a6473964a2618cc83e608e23e3543031aa2bb3a/aiohttp-3.9.5-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:e0ae53e33ee7476dd3d1132f932eeb39bf6125083820049d06edcdca4381f342", size = 599387, upload-time = "2024-04-16T17:46:27.238Z" }, + { url = "https://files.pythonhosted.org/packages/97/e7/575ca16871071313a7a7a03fa055f0c3d52f77eb8583b373ac17fc87ec15/aiohttp-3.9.5-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:c088c4d70d21f8ca5c0b8b5403fe84a7bc8e024161febdd4ef04575ef35d474d", size = 402427, upload-time = "2024-04-16T17:46:29.027Z" }, + { url = "https://files.pythonhosted.org/packages/4e/78/266be6e31daad1a2dc99c777dfb12b62044691ec573b6e48409a0d804fc7/aiohttp-3.9.5-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:639d0042b7670222f33b0028de6b4e2fad6451462ce7df2af8aee37dcac55424", size = 390243, upload-time = "2024-04-16T17:46:31.583Z" }, + { url = "https://files.pythonhosted.org/packages/73/f1/084f82069428b87d2b5c1e3e2d1d51911981f4cccd94c5c3691f10061c99/aiohttp-3.9.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f26383adb94da5e7fb388d441bf09c61e5e35f455a3217bfd790c6b6bc64b2ee", size = 1312924, upload-time = "2024-04-16T17:46:33.966Z" }, + { url = "https://files.pythonhosted.org/packages/1f/d6/412156ea1aa44a5cc95421db85b0c7a5d1ee3ba71efad04db84305ca1968/aiohttp-3.9.5-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:66331d00fb28dc90aa606d9a54304af76b335ae204d1836f65797d6fe27f1ca2", size = 1349620, upload-time = "2024-04-16T17:46:36.616Z" }, + { url = "https://files.pythonhosted.org/packages/3f/42/376e5e4b6f167358e1e8c6a78cae64ca49d30d6edecbab80796dbb838855/aiohttp-3.9.5-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4ff550491f5492ab5ed3533e76b8567f4b37bd2995e780a1f46bca2024223233", size = 1387070, upload-time = "2024-04-16T17:46:39.46Z" }, + { url = "https://files.pythonhosted.org/packages/24/99/e76e65ca811100b445d3c8af9764b27c5180ca11a15af694366424896647/aiohttp-3.9.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f22eb3a6c1080d862befa0a89c380b4dafce29dc6cd56083f630073d102eb595", size = 1297781, upload-time = "2024-04-16T17:46:41.964Z" }, + { url = "https://files.pythonhosted.org/packages/01/af/8da680fa69632f413860d3f4dcace47f7fc50486fe920ec43447ffaccee7/aiohttp-3.9.5-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a81b1143d42b66ffc40a441379387076243ef7b51019204fd3ec36b9f69e77d6", size = 1257586, upload-time = "2024-04-16T17:46:44.295Z" }, + { url = "https://files.pythonhosted.org/packages/90/ae/a0741922ef3e99e71faa18ddf1a3a00309dd01107d3dc51f46bedd30e5c6/aiohttp-3.9.5-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:f64fd07515dad67f24b6ea4a66ae2876c01031de91c93075b8093f07c0a2d93d", size = 1319016, upload-time = "2024-04-16T17:46:47.173Z" }, + { url = "https://files.pythonhosted.org/packages/ef/bd/61671d071518ac18875c1471cf5f6e210f48c855bdfc9e6cbe47134e2921/aiohttp-3.9.5-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:93e22add827447d2e26d67c9ac0161756007f152fdc5210277d00a85f6c92323", size = 1268646, upload-time = "2024-04-16T17:46:49.682Z" }, + { url = "https://files.pythonhosted.org/packages/ea/d1/0e1d60543d68583ed5b87f4d2eb1c72e54c68933e7799e649de04ffbb6b0/aiohttp-3.9.5-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:55b39c8684a46e56ef8c8d24faf02de4a2b2ac60d26cee93bc595651ff545de9", size = 1350674, upload-time = "2024-04-16T17:46:51.912Z" }, + { url = "https://files.pythonhosted.org/packages/46/60/4f5225360aebb03d9fbf2a26c79fa01c6da326eeb160d212050990a7f658/aiohttp-3.9.5-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:4715a9b778f4293b9f8ae7a0a7cef9829f02ff8d6277a39d7f40565c737d3771", size = 1394599, upload-time = "2024-04-16T17:46:54.081Z" }, + { url = "https://files.pythonhosted.org/packages/6b/99/c742967d54091496a5675ae9faa910765f572e7863461ccc7fb22a1501e2/aiohttp-3.9.5-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:afc52b8d969eff14e069a710057d15ab9ac17cd4b6753042c407dcea0e40bf75", size = 1302531, upload-time = "2024-04-16T17:46:56.706Z" }, + { url = "https://files.pythonhosted.org/packages/a7/a5/e8e0e4bf0adb3ebd3773ebb0fb006d4e4850d1a9eef0a911482eba883814/aiohttp-3.9.5-cp311-cp311-win32.whl", hash = "sha256:b3df71da99c98534be076196791adca8819761f0bf6e08e07fd7da25127150d6", size = 350613, upload-time = "2024-04-16T17:46:59.819Z" }, + { url = "https://files.pythonhosted.org/packages/a4/69/0d415c6d8450842652ce01b29f43416a0f30122b75899de01485623c7850/aiohttp-3.9.5-cp311-cp311-win_amd64.whl", hash = "sha256:88e311d98cc0bf45b62fc46c66753a83445f5ab20038bcc1b8a1cc05666f428a", size = 370792, upload-time = "2024-04-16T17:47:02.843Z" }, +] + +[[package]] +name = "aiohttp-json-rpc" +version = "0.13.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "aiohttp" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/53/98/11d7a28734cbea1dd5ceb3e6603402169541a4f1a429b810988680975293/aiohttp-json-rpc-0.13.3.tar.gz", hash = "sha256:6237a104478c22c6ef96c7227a01d6832597b414e4b79a52d85593356a169e99", size = 28657, upload-time = "2020-12-14T10:13:07.636Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c1/a3/82986305dc5e917bd05c530bd2ec951aff82a63afb6ae512f3c56046cc94/aiohttp_json_rpc-0.13.3-py3-none-any.whl", hash = "sha256:4fbd197aced61bd2df7ae3237ead7d3e08833c2ccf48b8581e1828c95ebee680", size = 30720, upload-time = "2020-12-14T10:13:05.469Z" }, +] + +[[package]] +name = "aiosignal" +version = "1.3.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "frozenlist" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ae/67/0952ed97a9793b4958e5736f6d2b346b414a2cd63e82d05940032f45b32f/aiosignal-1.3.1.tar.gz", hash = "sha256:54cd96e15e1649b75d6c87526a6ff0b6c1b0dd3459f43d9ca11d48c339b68cfc", size = 19422, upload-time = "2022-11-08T16:03:58.806Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/76/ac/a7305707cb852b7e16ff80eaf5692309bde30e2b1100a1fcacdc8f731d97/aiosignal-1.3.1-py3-none-any.whl", hash = "sha256:f8376fb07dd1e86a584e4fcdec80b36b7f81aac666ebc724e2c090300dd83b17", size = 7617, upload-time = "2022-11-08T16:03:57.483Z" }, +] + +[[package]] +name = "apsw" +version = "3.46.1.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/2e/9f/29be0326b2178cfe10d6d45de83163c70cd0b4985502f398fe32791943e2/apsw-3.46.1.0.tar.gz", hash = "sha256:96e3dfad1fd0cc77a778aa6b27468292041a8e9cb1f2dcf06bd773762c9b0c0c", size = 403954, upload-time = "2024-08-13T23:40:23.057Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d0/64/772661433d50473bf09b4f3e777cb5580dd29093461138e897f57402be51/apsw-3.46.1.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:8acacf3a0187cbd4c82c9eaa2c7e2704c13997a351efdffbdfa69ea1778bda1f", size = 1330000, upload-time = "2024-08-13T23:39:01.318Z" }, + { url = "https://files.pythonhosted.org/packages/09/08/2311678a00314fcf3c007d1b17780c0ba19084c09afca89c082353785616/apsw-3.46.1.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:2fcc5fd76a4a21fb1cc1694495e221206a46d932c675ba5dda8f070262347e0b", size = 1252124, upload-time = "2024-08-13T23:39:02.825Z" }, + { url = "https://files.pythonhosted.org/packages/51/01/bf171dec627935691bcf8e900151031ad9b50689d488d9ef2069f5179aa2/apsw-3.46.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ca319360995762fbed9e7d252c3ae4ea84af2d7bc1aef21adbcb4e088a416373", size = 5332494, upload-time = "2024-08-13T23:39:04.414Z" }, + { url = "https://files.pythonhosted.org/packages/5e/1d/be64af8c3043d2d39bab4fc6bfc55aadfa24bffc3d8bf522908b9b831a92/apsw-3.46.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:42036093f8b7dd66bbb18b717ef6dfa62c4a2acd9bcdf05fdf5caedf77a47c01", size = 5380153, upload-time = "2024-08-13T23:39:05.753Z" }, + { url = "https://files.pythonhosted.org/packages/00/32/d9ebff5ecc7fd0100e7cb62dbbebc9edbd70d3812c4cc811ee823ec1c33c/apsw-3.46.1.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4d54efc7d7d58b782dc84f29c5d25d190984dec20d8233484d3b092ded1241e1", size = 5264455, upload-time = "2024-08-13T23:39:07.832Z" }, + { url = "https://files.pythonhosted.org/packages/f9/46/ebe89b57f229a0db9eb44eafa87077a1b23881d3f366dc035047327dbeac/apsw-3.46.1.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:3864151c23edd3a232e059925bd37044e2c1b90f20ba1d0b46005d0e5d97d10d", size = 5361349, upload-time = "2024-08-13T23:39:09.441Z" }, + { url = "https://files.pythonhosted.org/packages/a2/72/25955d7d36264e705d8be86fdc49b1ff4a5438a8a9ff8ce78f9a806b10d1/apsw-3.46.1.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:3e42ebb5997fcd6234cdb888f641ca37a7e9d03c13c4f2e1e0ac66151a182e79", size = 5351742, upload-time = "2024-08-13T23:39:11.704Z" }, + { url = "https://files.pythonhosted.org/packages/56/9c/a15ed769f3b5f5012e9216598ed6db333c74bfbe3b197a217aa67c46094a/apsw-3.46.1.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:7ea887719b60d48ac569eb42594f7dd772ab2b2287aaae9c9a007789467aa26a", size = 5423667, upload-time = "2024-08-13T23:39:13.798Z" }, + { url = "https://files.pythonhosted.org/packages/a6/ed/a1f3437764ae69efebff2b64de0e9e7e3169fe0e44b52763cb808dbb74c3/apsw-3.46.1.0-cp311-cp311-win32.whl", hash = "sha256:67754bc4c0b2dda1a112f0adfdd6d25c2f724d8c086decb9690349056f799eed", size = 1030732, upload-time = "2024-08-13T23:39:15.848Z" }, + { url = "https://files.pythonhosted.org/packages/8c/05/d3a57fd6da3093f12b1e92e93cf1a036e0293879198697fe2b500bfd8a17/apsw-3.46.1.0-cp311-cp311-win_amd64.whl", hash = "sha256:fef6891bc388d92ac8208db2e6f5cd90bd75a64930147f515f2e28526a278c81", size = 1203793, upload-time = "2024-08-13T23:39:17.005Z" }, +] + +[[package]] +name = "asyncpg" +version = "0.30.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/2f/4c/7c991e080e106d854809030d8584e15b2e996e26f16aee6d757e387bc17d/asyncpg-0.30.0.tar.gz", hash = "sha256:c551e9928ab6707602f44811817f82ba3c446e018bfe1d3abecc8ba5f3eac851", size = 957746, upload-time = "2024-10-20T00:30:41.127Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/4c/0e/f5d708add0d0b97446c402db7e8dd4c4183c13edaabe8a8500b411e7b495/asyncpg-0.30.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:5e0511ad3dec5f6b4f7a9e063591d407eee66b88c14e2ea636f187da1dcfff6a", size = 674506, upload-time = "2024-10-20T00:29:27.988Z" }, + { url = "https://files.pythonhosted.org/packages/6a/a0/67ec9a75cb24a1d99f97b8437c8d56da40e6f6bd23b04e2f4ea5d5ad82ac/asyncpg-0.30.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:915aeb9f79316b43c3207363af12d0e6fd10776641a7de8a01212afd95bdf0ed", size = 645922, upload-time = "2024-10-20T00:29:29.391Z" }, + { url = "https://files.pythonhosted.org/packages/5c/d9/a7584f24174bd86ff1053b14bb841f9e714380c672f61c906eb01d8ec433/asyncpg-0.30.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1c198a00cce9506fcd0bf219a799f38ac7a237745e1d27f0e1f66d3707c84a5a", size = 3079565, upload-time = "2024-10-20T00:29:30.832Z" }, + { url = "https://files.pythonhosted.org/packages/a0/d7/a4c0f9660e333114bdb04d1a9ac70db690dd4ae003f34f691139a5cbdae3/asyncpg-0.30.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3326e6d7381799e9735ca2ec9fd7be4d5fef5dcbc3cb555d8a463d8460607956", size = 3109962, upload-time = "2024-10-20T00:29:33.114Z" }, + { url = "https://files.pythonhosted.org/packages/3c/21/199fd16b5a981b1575923cbb5d9cf916fdc936b377e0423099f209e7e73d/asyncpg-0.30.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:51da377487e249e35bd0859661f6ee2b81db11ad1f4fc036194bc9cb2ead5056", size = 3064791, upload-time = "2024-10-20T00:29:34.677Z" }, + { url = "https://files.pythonhosted.org/packages/77/52/0004809b3427534a0c9139c08c87b515f1c77a8376a50ae29f001e53962f/asyncpg-0.30.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:bc6d84136f9c4d24d358f3b02be4b6ba358abd09f80737d1ac7c444f36108454", size = 3188696, upload-time = "2024-10-20T00:29:36.389Z" }, + { url = "https://files.pythonhosted.org/packages/52/cb/fbad941cd466117be58b774a3f1cc9ecc659af625f028b163b1e646a55fe/asyncpg-0.30.0-cp311-cp311-win32.whl", hash = "sha256:574156480df14f64c2d76450a3f3aaaf26105869cad3865041156b38459e935d", size = 567358, upload-time = "2024-10-20T00:29:37.915Z" }, + { url = "https://files.pythonhosted.org/packages/3c/0a/0a32307cf166d50e1ad120d9b81a33a948a1a5463ebfa5a96cc5606c0863/asyncpg-0.30.0-cp311-cp311-win_amd64.whl", hash = "sha256:3356637f0bd830407b5597317b3cb3571387ae52ddc3bca6233682be88bbbc1f", size = 629375, upload-time = "2024-10-20T00:29:39.987Z" }, +] + +[[package]] +name = "attrs" +version = "25.3.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/5a/b0/1367933a8532ee6ff8d63537de4f1177af4bff9f3e829baf7331f595bb24/attrs-25.3.0.tar.gz", hash = "sha256:75d7cefc7fb576747b2c81b4442d4d4a1ce0900973527c011d1030fd3bf4af1b", size = 812032, upload-time = "2025-03-13T11:10:22.779Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/77/06/bb80f5f86020c4551da315d78b3ab75e8228f89f0162f2c3a819e407941a/attrs-25.3.0-py3-none-any.whl", hash = "sha256:427318ce031701fea540783410126f03899a97ffc6f61596ad581ac2e40e3bc3", size = 63815, upload-time = "2025-03-13T11:10:21.14Z" }, +] + +[[package]] +name = "babel" +version = "2.18.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/7d/b2/51899539b6ceeeb420d40ed3cd4b7a40519404f9baf3d4ac99dc413a834b/babel-2.18.0.tar.gz", hash = "sha256:b80b99a14bd085fcacfa15c9165f651fbb3406e66cc603abf11c5750937c992d", size = 9959554, upload-time = "2026-02-01T12:30:56.078Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/77/f5/21d2de20e8b8b0408f0681956ca2c69f1320a3848ac50e6e7f39c6159675/babel-2.18.0-py3-none-any.whl", hash = "sha256:e2b422b277c2b9a9630c1d7903c2a00d0830c409c59ac8cae9081c92f1aeba35", size = 10196845, upload-time = "2026-02-01T12:30:53.445Z" }, +] + +[[package]] +name = "brotli" +version = "1.2.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f7/16/c92ca344d646e71a43b8bb353f0a6490d7f6e06210f8554c8f874e454285/brotli-1.2.0.tar.gz", hash = "sha256:e310f77e41941c13340a95976fe66a8a95b01e783d430eeaf7a2f87e0a57dd0a", size = 7388632, upload-time = "2025-11-05T18:39:42.86Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7a/ef/f285668811a9e1ddb47a18cb0b437d5fc2760d537a2fe8a57875ad6f8448/brotli-1.2.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:15b33fe93cedc4caaff8a0bd1eb7e3dab1c61bb22a0bf5bdfdfd97cd7da79744", size = 863110, upload-time = "2025-11-05T18:38:12.978Z" }, + { url = "https://files.pythonhosted.org/packages/50/62/a3b77593587010c789a9d6eaa527c79e0848b7b860402cc64bc0bc28a86c/brotli-1.2.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:898be2be399c221d2671d29eed26b6b2713a02c2119168ed914e7d00ceadb56f", size = 445438, upload-time = "2025-11-05T18:38:14.208Z" }, + { url = "https://files.pythonhosted.org/packages/cd/e1/7fadd47f40ce5549dc44493877db40292277db373da5053aff181656e16e/brotli-1.2.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:350c8348f0e76fff0a0fd6c26755d2653863279d086d3aa2c290a6a7251135dd", size = 1534420, upload-time = "2025-11-05T18:38:15.111Z" }, + { url = "https://files.pythonhosted.org/packages/12/8b/1ed2f64054a5a008a4ccd2f271dbba7a5fb1a3067a99f5ceadedd4c1d5a7/brotli-1.2.0-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:2e1ad3fda65ae0d93fec742a128d72e145c9c7a99ee2fcd667785d99eb25a7fe", size = 1632619, upload-time = "2025-11-05T18:38:16.094Z" }, + { url = "https://files.pythonhosted.org/packages/89/5a/7071a621eb2d052d64efd5da2ef55ecdac7c3b0c6e4f9d519e9c66d987ef/brotli-1.2.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:40d918bce2b427a0c4ba189df7a006ac0c7277c180aee4617d99e9ccaaf59e6a", size = 1426014, upload-time = "2025-11-05T18:38:17.177Z" }, + { url = "https://files.pythonhosted.org/packages/26/6d/0971a8ea435af5156acaaccec1a505f981c9c80227633851f2810abd252a/brotli-1.2.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:2a7f1d03727130fc875448b65b127a9ec5d06d19d0148e7554384229706f9d1b", size = 1489661, upload-time = "2025-11-05T18:38:18.41Z" }, + { url = "https://files.pythonhosted.org/packages/f3/75/c1baca8b4ec6c96a03ef8230fab2a785e35297632f402ebb1e78a1e39116/brotli-1.2.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:9c79f57faa25d97900bfb119480806d783fba83cd09ee0b33c17623935b05fa3", size = 1599150, upload-time = "2025-11-05T18:38:19.792Z" }, + { url = "https://files.pythonhosted.org/packages/0d/1a/23fcfee1c324fd48a63d7ebf4bac3a4115bdb1b00e600f80f727d850b1ae/brotli-1.2.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:844a8ceb8483fefafc412f85c14f2aae2fb69567bf2a0de53cdb88b73e7c43ae", size = 1493505, upload-time = "2025-11-05T18:38:20.913Z" }, + { url = "https://files.pythonhosted.org/packages/36/e5/12904bbd36afeef53d45a84881a4810ae8810ad7e328a971ebbfd760a0b3/brotli-1.2.0-cp311-cp311-win32.whl", hash = "sha256:aa47441fa3026543513139cb8926a92a8e305ee9c71a6209ef7a97d91640ea03", size = 334451, upload-time = "2025-11-05T18:38:21.94Z" }, + { url = "https://files.pythonhosted.org/packages/02/8b/ecb5761b989629a4758c394b9301607a5880de61ee2ee5fe104b87149ebc/brotli-1.2.0-cp311-cp311-win_amd64.whl", hash = "sha256:022426c9e99fd65d9475dce5c195526f04bb8be8907607e27e747893f6ee3e24", size = 369035, upload-time = "2025-11-05T18:38:22.941Z" }, +] + +[[package]] +name = "cffi" +version = "2.1.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pycparser", marker = "implementation_name != 'PyPy'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/9e/ef/008a1939e372c06329a3fce4279c02f328488f3526744906eeec3da7ad5f/cffi-2.1.1.tar.gz", hash = "sha256:dd31f52ea1086513bb9df30f8fcee9b8918323ae067a3d5b78bc826a000712be", size = 530807, upload-time = "2026-08-03T21:21:18.939Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/70/d2/16d99a0c4948febc0ebd133a13b2f688ff7f8cb04da971e1128872ce0c03/cffi-2.1.1-cp311-cp311-macosx_10_15_x86_64.whl", hash = "sha256:c8d2c9fd1f2d16f780d15127abb050d13d1a76c03a4bd87d7e4980e45e511e12", size = 183838, upload-time = "2026-08-03T21:19:29.637Z" }, + { url = "https://files.pythonhosted.org/packages/cd/95/31b535a9f0220ae9f357de4a08d57ce89cb417653c2fd9f075f50822a388/cffi-2.1.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:398aff33cee2767e3e781d2554c54bd0dff386bb437581e0d8011fde1a942ec1", size = 184168, upload-time = "2026-08-03T21:19:30.764Z" }, + { url = "https://files.pythonhosted.org/packages/ad/5a/4707a0dc1f203f5dde5a907b0d4e3c25d71120241048bd5bc6f1bb9d4e71/cffi-2.1.1-cp311-cp311-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:154852545011f779917b11c78db2358d095da62a9a172b78ad0a583ee5adc0d0", size = 211805, upload-time = "2026-08-03T21:19:31.867Z" }, + { url = "https://files.pythonhosted.org/packages/ad/66/c19feabb28485b6e0bbaaafa90837a1ef5d302e90f2178bd33f17a49879b/cffi-2.1.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:3311ed60d36f83378794e1009ac6258bafbf81f7888b4caa7b35a521e3f95813", size = 218716, upload-time = "2026-08-03T21:19:32.896Z" }, + { url = "https://files.pythonhosted.org/packages/a7/92/500760486c8baab49a7a8a58ba7fc3355ec3974b454b8a09e528efde9e1d/cffi-2.1.1-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:6e192623c49c94421616a5778fba35cf0d5a8d000650c1967ef4448ee5cdd990", size = 205569, upload-time = "2026-08-03T21:19:34.142Z" }, + { url = "https://files.pythonhosted.org/packages/a5/a7/a67c733254d6e7373f7822f8082d8d6beade791e0cf12a7611f376fa61c7/cffi-2.1.1-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:a6e721d4b0e45d5b65e87534470e67b18dcd092c83f68fba09f152b9cbc061af", size = 204907, upload-time = "2026-08-03T21:19:35.174Z" }, + { url = "https://files.pythonhosted.org/packages/f7/a4/4399daaf8f7dfee9d7c3327fdb0426ee041cc63edc358b93911ceb2bfc7a/cffi-2.1.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:34e261f78cb6ceaaa36f42f2613f4380d94d9c759a9c73c769ee6e0247364632", size = 217807, upload-time = "2026-08-03T21:19:36.286Z" }, + { url = "https://files.pythonhosted.org/packages/28/f7/dabe6da2466ecbd82dc62e7342dc6b1065dad990c06f00f0ede9ebf2a0ed/cffi-2.1.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:7225e4514edb64eb6740324353e0da0711954fd8d7da4576755b1c6e09b697cd", size = 221252, upload-time = "2026-08-03T21:19:37.416Z" }, + { url = "https://files.pythonhosted.org/packages/ce/87/616202d8e51342c07d2534c510111c4cc37201775ce8f60802c9335d1edd/cffi-2.1.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:df913725b79db7bcf03448f36b7bf8815363417d5b58deecf9305e3e30f0f21a", size = 214214, upload-time = "2026-08-03T21:19:38.507Z" }, + { url = "https://files.pythonhosted.org/packages/b4/c6/ab025d75d2c26c19b087c0124e75ee31cb65032f4fe345d356d8c507ab97/cffi-2.1.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:f5cfbc5fe74540d335175b656c725d74d90e3730c626d92575eea35029d9afaa", size = 219408, upload-time = "2026-08-03T21:19:39.809Z" }, + { url = "https://files.pythonhosted.org/packages/db/e2/7e8109f65445bdc673a7b54f02c677de462db75674220fd1335efc8eb598/cffi-2.1.1-cp311-cp311-win32.whl", hash = "sha256:f8ec5e643a9a937f64e1999eb9f75d072263751912dc5cd06d3c85f8f44be7c3", size = 174470, upload-time = "2026-08-03T21:19:41.246Z" }, + { url = "https://files.pythonhosted.org/packages/73/c0/77ba02423c2f7d7091143c45cd49e0e6575c4c1967394bb542bd923a9b74/cffi-2.1.1-cp311-cp311-win_amd64.whl", hash = "sha256:42f6930c31dc7f50732c9ae793c2786c7b6b044195967bbdde40bb9be81c4cc0", size = 185096, upload-time = "2026-08-03T21:19:42.615Z" }, + { url = "https://files.pythonhosted.org/packages/7c/47/9f1f85f9672ceda4984dc6c4f8824e8558992a2972c3d3c81fb8eb28d4ba/cffi-2.1.1-cp311-cp311-win_arm64.whl", hash = "sha256:c7659f22557c5a0bc4855cd635f55edec690cc008a40768527762cb9fb263455", size = 179941, upload-time = "2026-08-03T21:19:43.747Z" }, +] + +[[package]] +name = "click" +version = "8.1.8" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "colorama", marker = "sys_platform == 'win32'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/b9/2e/0090cbf739cee7d23781ad4b89a9894a41538e4fcf4c31dcdd705b78eb8b/click-8.1.8.tar.gz", hash = "sha256:ed53c9d8990d83c2a27deae68e4ee337473f6330c040a31d4225c9574d16096a", size = 226593, upload-time = "2024-12-21T18:38:44.339Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7e/d4/7ebdbd03970677812aac39c869717059dbb71a4cfc033ca6e5221787892c/click-8.1.8-py3-none-any.whl", hash = "sha256:63c132bbbed01578a06712a2d1f497bb62d9c1c0d329b7903a866228027263b2", size = 98188, upload-time = "2024-12-21T18:38:41.666Z" }, +] + +[[package]] +name = "colorama" +version = "0.4.6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" }, +] + +[[package]] +name = "discord-py" +version = "2.7.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "aiohttp" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ef/57/9a2d9abdabdc9db8ef28ce0cf4129669e1c8717ba28d607b5ba357c4de3b/discord_py-2.7.1.tar.gz", hash = "sha256:24d5e6a45535152e4b98148a9dd6b550d25dc2c9fb41b6d670319411641249da", size = 1106326, upload-time = "2026-03-03T18:40:46.24Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f7/a7/17208c3b3f92319e7fad259f1c6d5a5baf8fd0654c54846ced329f83c3eb/discord_py-2.7.1-py3-none-any.whl", hash = "sha256:849dca2c63b171146f3a7f3f8acc04248098e9e6203412ce3cf2745f284f7439", size = 1227550, upload-time = "2026-03-03T18:40:44.492Z" }, +] + +[[package]] +name = "distro" +version = "1.9.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/fc/f8/98eea607f65de6527f8a2e8885fc8015d3e6f5775df186e443e0964a11c3/distro-1.9.0.tar.gz", hash = "sha256:2fa77c6fd8940f116ee1d6b94a2f90b13b5ea8d019b98bc8bafdcabcdd9bdbed", size = 60722, upload-time = "2023-12-24T09:54:32.31Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/12/b3/231ffd4ab1fc9d679809f356cebee130ac7daa00d6d6f3206dd4fd137e9e/distro-1.9.0-py3-none-any.whl", hash = "sha256:7bffd925d65168f85027d8da9af6bddab658135b840670a223589bc0c8ef02b2", size = 20277, upload-time = "2023-12-24T09:54:30.421Z" }, +] + +[[package]] +name = "dogebot" +version = "1.0.0" +source = { editable = "." } +dependencies = [ + { name = "pip" }, + { name = "red-discordbot", extra = ["postgres"] }, +] + +[package.dev-dependencies] +dev = [ + { name = "pytest" }, + { name = "pytest-asyncio" }, + { name = "ruff" }, + { name = "ty" }, +] + +[package.metadata] +requires-dist = [ + { name = "pip" }, + { name = "red-discordbot", extras = ["postgres"], specifier = "==3.5.24" }, +] + +[package.metadata.requires-dev] +dev = [ + { name = "pytest", specifier = ">=8" }, + { name = "pytest-asyncio", specifier = ">=0.24" }, + { name = "ruff", specifier = ">=0.17" }, + { name = "ty", specifier = ">=0.0.97" }, +] + +[[package]] +name = "frozenlist" +version = "1.5.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/8f/ed/0f4cec13a93c02c47ec32d81d11c0c1efbadf4a471e3f3ce7cad366cbbd3/frozenlist-1.5.0.tar.gz", hash = "sha256:81d5af29e61b9c8348e876d442253723928dce6433e0e76cd925cd83f1b4b817", size = 39930, upload-time = "2024-10-23T09:48:29.903Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/79/43/0bed28bf5eb1c9e4301003b74453b8e7aa85fb293b31dde352aac528dafc/frozenlist-1.5.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:fd74520371c3c4175142d02a976aee0b4cb4a7cc912a60586ffd8d5929979b30", size = 94987, upload-time = "2024-10-23T09:46:40.487Z" }, + { url = "https://files.pythonhosted.org/packages/bb/bf/b74e38f09a246e8abbe1e90eb65787ed745ccab6eaa58b9c9308e052323d/frozenlist-1.5.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:2f3f7a0fbc219fb4455264cae4d9f01ad41ae6ee8524500f381de64ffaa077d5", size = 54584, upload-time = "2024-10-23T09:46:41.463Z" }, + { url = "https://files.pythonhosted.org/packages/2c/31/ab01375682f14f7613a1ade30149f684c84f9b8823a4391ed950c8285656/frozenlist-1.5.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:f47c9c9028f55a04ac254346e92977bf0f166c483c74b4232bee19a6697e4778", size = 52499, upload-time = "2024-10-23T09:46:42.451Z" }, + { url = "https://files.pythonhosted.org/packages/98/a8/d0ac0b9276e1404f58fec3ab6e90a4f76b778a49373ccaf6a563f100dfbc/frozenlist-1.5.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0996c66760924da6e88922756d99b47512a71cfd45215f3570bf1e0b694c206a", size = 276357, upload-time = "2024-10-23T09:46:44.166Z" }, + { url = "https://files.pythonhosted.org/packages/ad/c9/c7761084fa822f07dac38ac29f841d4587570dd211e2262544aa0b791d21/frozenlist-1.5.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a2fe128eb4edeabe11896cb6af88fca5346059f6c8d807e3b910069f39157869", size = 287516, upload-time = "2024-10-23T09:46:45.369Z" }, + { url = "https://files.pythonhosted.org/packages/a1/ff/cd7479e703c39df7bdab431798cef89dc75010d8aa0ca2514c5b9321db27/frozenlist-1.5.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:1a8ea951bbb6cacd492e3948b8da8c502a3f814f5d20935aae74b5df2b19cf3d", size = 283131, upload-time = "2024-10-23T09:46:46.654Z" }, + { url = "https://files.pythonhosted.org/packages/59/a0/370941beb47d237eca4fbf27e4e91389fd68699e6f4b0ebcc95da463835b/frozenlist-1.5.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:de537c11e4aa01d37db0d403b57bd6f0546e71a82347a97c6a9f0dcc532b3a45", size = 261320, upload-time = "2024-10-23T09:46:47.825Z" }, + { url = "https://files.pythonhosted.org/packages/b8/5f/c10123e8d64867bc9b4f2f510a32042a306ff5fcd7e2e09e5ae5100ee333/frozenlist-1.5.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9c2623347b933fcb9095841f1cc5d4ff0b278addd743e0e966cb3d460278840d", size = 274877, upload-time = "2024-10-23T09:46:48.989Z" }, + { url = "https://files.pythonhosted.org/packages/fa/79/38c505601ae29d4348f21706c5d89755ceded02a745016ba2f58bd5f1ea6/frozenlist-1.5.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:cee6798eaf8b1416ef6909b06f7dc04b60755206bddc599f52232606e18179d3", size = 269592, upload-time = "2024-10-23T09:46:50.235Z" }, + { url = "https://files.pythonhosted.org/packages/19/e2/39f3a53191b8204ba9f0bb574b926b73dd2efba2a2b9d2d730517e8f7622/frozenlist-1.5.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:f5f9da7f5dbc00a604fe74aa02ae7c98bcede8a3b8b9666f9f86fc13993bc71a", size = 265934, upload-time = "2024-10-23T09:46:51.829Z" }, + { url = "https://files.pythonhosted.org/packages/d5/c9/3075eb7f7f3a91f1a6b00284af4de0a65a9ae47084930916f5528144c9dd/frozenlist-1.5.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:90646abbc7a5d5c7c19461d2e3eeb76eb0b204919e6ece342feb6032c9325ae9", size = 283859, upload-time = "2024-10-23T09:46:52.947Z" }, + { url = "https://files.pythonhosted.org/packages/05/f5/549f44d314c29408b962fa2b0e69a1a67c59379fb143b92a0a065ffd1f0f/frozenlist-1.5.0-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:bdac3c7d9b705d253b2ce370fde941836a5f8b3c5c2b8fd70940a3ea3af7f4f2", size = 287560, upload-time = "2024-10-23T09:46:54.162Z" }, + { url = "https://files.pythonhosted.org/packages/9d/f8/cb09b3c24a3eac02c4c07a9558e11e9e244fb02bf62c85ac2106d1eb0c0b/frozenlist-1.5.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:03d33c2ddbc1816237a67f66336616416e2bbb6beb306e5f890f2eb22b959cdf", size = 277150, upload-time = "2024-10-23T09:46:55.361Z" }, + { url = "https://files.pythonhosted.org/packages/37/48/38c2db3f54d1501e692d6fe058f45b6ad1b358d82cd19436efab80cfc965/frozenlist-1.5.0-cp311-cp311-win32.whl", hash = "sha256:237f6b23ee0f44066219dae14c70ae38a63f0440ce6750f868ee08775073f942", size = 45244, upload-time = "2024-10-23T09:46:56.578Z" }, + { url = "https://files.pythonhosted.org/packages/ca/8c/2ddffeb8b60a4bce3b196c32fcc30d8830d4615e7b492ec2071da801b8ad/frozenlist-1.5.0-cp311-cp311-win_amd64.whl", hash = "sha256:0cc974cc93d32c42e7b0f6cf242a6bd941c57c61b618e78b6c0a96cb72788c1d", size = 51634, upload-time = "2024-10-23T09:46:57.6Z" }, + { url = "https://files.pythonhosted.org/packages/c6/c8/a5be5b7550c10858fcf9b0ea054baccab474da77d37f1e828ce043a3a5d4/frozenlist-1.5.0-py3-none-any.whl", hash = "sha256:d994863bba198a4a518b467bb971c56e1db3f180a25c6cf7bb1949c267f748c3", size = 11901, upload-time = "2024-10-23T09:48:28.851Z" }, +] + +[[package]] +name = "idna" +version = "3.11" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/6f/6d/0703ccc57f3a7233505399edb88de3cbd678da106337b9fcde432b65ed60/idna-3.11.tar.gz", hash = "sha256:795dafcc9c04ed0c1fb032c2aa73654d8e8c5023a7df64a53f39190ada629902", size = 194582, upload-time = "2025-10-12T14:55:20.501Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0e/61/66938bbb5fc52dbdf84594873d5b51fb1f7c7794e9c0f5bd885f30bc507b/idna-3.11-py3-none-any.whl", hash = "sha256:771a87f49d9defaf64091e6e6fe9c18d4833f140bd19464795bc32d966ca37ea", size = 71008, upload-time = "2025-10-12T14:55:18.883Z" }, +] + +[[package]] +name = "iniconfig" +version = "2.3.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/01/e1/2069291243c926a2ff1cd706c7f3eeb9b62144bf60f77c9fb9ff2fb26bd3/iniconfig-2.3.1.tar.gz", hash = "sha256:67f4b9c50da0dedf52af349e7749a80a9057a5031199791b906c3bb3ae878960", size = 21209, upload-time = "2026-10-06T22:48:38.076Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/56/43/4ca9e49d27a1fcf6bece6f6aec0ea46bb9112489b93d4b688fb415457bdb/iniconfig-2.3.1-py3-none-any.whl", hash = "sha256:9121e2c1fdb355232495be3194c8dfe87ccc2d5dee45947b78e68f499790d7a7", size = 7552, upload-time = "2026-10-06T22:48:36.959Z" }, +] + +[[package]] +name = "markdown" +version = "3.7" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/54/28/3af612670f82f4c056911fbbbb42760255801b3068c48de792d354ff4472/markdown-3.7.tar.gz", hash = "sha256:2ae2471477cfd02dbbf038d5d9bc226d40def84b4fe2986e49b59b6b472bbed2", size = 357086, upload-time = "2024-08-16T15:55:17.812Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/3f/08/83871f3c50fc983b88547c196d11cf8c3340e37c32d2e9d6152abe2c61f7/Markdown-3.7-py3-none-any.whl", hash = "sha256:7eb6df5690b81a1d7942992c97fad2938e956e79df20cbc6186e9c3a77b1c803", size = 106349, upload-time = "2024-08-16T15:55:16.176Z" }, +] + +[[package]] +name = "markdown-it-py" +version = "3.0.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "mdurl" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/38/71/3b932df36c1a044d397a1f92d1cf91ee0a503d91e470cbd670aa66b07ed0/markdown-it-py-3.0.0.tar.gz", hash = "sha256:e3f60a94fa066dc52ec76661e37c851cb232d92f9886b15cb560aaada2df8feb", size = 74596, upload-time = "2023-06-03T06:41:14.443Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/42/d7/1ec15b46af6af88f19b8e5ffea08fa375d433c998b8a7639e76935c14f1f/markdown_it_py-3.0.0-py3-none-any.whl", hash = "sha256:355216845c60bd96232cd8d8c40e8f9765cc86f46880e43a8fd22dc1a1a8cab1", size = 87528, upload-time = "2023-06-03T06:41:11.019Z" }, +] + +[[package]] +name = "mdurl" +version = "0.1.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d6/54/cfe61301667036ec958cb99bd3efefba235e65cdeb9c84d24a8293ba1d90/mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba", size = 8729, upload-time = "2022-08-14T12:40:10.846Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", size = 9979, upload-time = "2022-08-14T12:40:09.779Z" }, +] + +[[package]] +name = "multidict" +version = "6.1.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d6/be/504b89a5e9ca731cd47487e91c469064f8ae5af93b7259758dcfc2b9c848/multidict-6.1.0.tar.gz", hash = "sha256:22ae2ebf9b0c69d206c003e2f6a914ea33f0a932d4aa16f236afc049d9958f4a", size = 64002, upload-time = "2024-09-09T23:49:38.163Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/93/13/df3505a46d0cd08428e4c8169a196131d1b0c4b515c3649829258843dde6/multidict-6.1.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:3efe2c2cb5763f2f1b275ad2bf7a287d3f7ebbef35648a9726e3b69284a4f3d6", size = 48570, upload-time = "2024-09-09T23:47:41.36Z" }, + { url = "https://files.pythonhosted.org/packages/f0/e1/a215908bfae1343cdb72f805366592bdd60487b4232d039c437fe8f5013d/multidict-6.1.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:c7053d3b0353a8b9de430a4f4b4268ac9a4fb3481af37dfe49825bf45ca24156", size = 29316, upload-time = "2024-09-09T23:47:42.612Z" }, + { url = "https://files.pythonhosted.org/packages/70/0f/6dc70ddf5d442702ed74f298d69977f904960b82368532c88e854b79f72b/multidict-6.1.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:27e5fc84ccef8dfaabb09d82b7d179c7cf1a3fbc8a966f8274fcb4ab2eb4cadb", size = 29640, upload-time = "2024-09-09T23:47:44.028Z" }, + { url = "https://files.pythonhosted.org/packages/d8/6d/9c87b73a13d1cdea30b321ef4b3824449866bd7f7127eceed066ccb9b9ff/multidict-6.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0e2b90b43e696f25c62656389d32236e049568b39320e2735d51f08fd362761b", size = 131067, upload-time = "2024-09-09T23:47:45.617Z" }, + { url = "https://files.pythonhosted.org/packages/cc/1e/1b34154fef373371fd6c65125b3d42ff5f56c7ccc6bfff91b9b3c60ae9e0/multidict-6.1.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d83a047959d38a7ff552ff94be767b7fd79b831ad1cd9920662db05fec24fe72", size = 138507, upload-time = "2024-09-09T23:47:47.429Z" }, + { url = "https://files.pythonhosted.org/packages/fb/e0/0bc6b2bac6e461822b5f575eae85da6aae76d0e2a79b6665d6206b8e2e48/multidict-6.1.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d1a9dd711d0877a1ece3d2e4fea11a8e75741ca21954c919406b44e7cf971304", size = 133905, upload-time = "2024-09-09T23:47:48.878Z" }, + { url = "https://files.pythonhosted.org/packages/ba/af/73d13b918071ff9b2205fcf773d316e0f8fefb4ec65354bbcf0b10908cc6/multidict-6.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ec2abea24d98246b94913b76a125e855eb5c434f7c46546046372fe60f666351", size = 129004, upload-time = "2024-09-09T23:47:50.124Z" }, + { url = "https://files.pythonhosted.org/packages/74/21/23960627b00ed39643302d81bcda44c9444ebcdc04ee5bedd0757513f259/multidict-6.1.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4867cafcbc6585e4b678876c489b9273b13e9fff9f6d6d66add5e15d11d926cb", size = 121308, upload-time = "2024-09-09T23:47:51.97Z" }, + { url = "https://files.pythonhosted.org/packages/8b/5c/cf282263ffce4a596ed0bb2aa1a1dddfe1996d6a62d08842a8d4b33dca13/multidict-6.1.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:5b48204e8d955c47c55b72779802b219a39acc3ee3d0116d5080c388970b76e3", size = 132608, upload-time = "2024-09-09T23:47:53.201Z" }, + { url = "https://files.pythonhosted.org/packages/d7/3e/97e778c041c72063f42b290888daff008d3ab1427f5b09b714f5a8eff294/multidict-6.1.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:d8fff389528cad1618fb4b26b95550327495462cd745d879a8c7c2115248e399", size = 127029, upload-time = "2024-09-09T23:47:54.435Z" }, + { url = "https://files.pythonhosted.org/packages/47/ac/3efb7bfe2f3aefcf8d103e9a7162572f01936155ab2f7ebcc7c255a23212/multidict-6.1.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:a7a9541cd308eed5e30318430a9c74d2132e9a8cb46b901326272d780bf2d423", size = 137594, upload-time = "2024-09-09T23:47:55.659Z" }, + { url = "https://files.pythonhosted.org/packages/42/9b/6c6e9e8dc4f915fc90a9b7798c44a30773dea2995fdcb619870e705afe2b/multidict-6.1.0-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:da1758c76f50c39a2efd5e9859ce7d776317eb1dd34317c8152ac9251fc574a3", size = 134556, upload-time = "2024-09-09T23:47:56.98Z" }, + { url = "https://files.pythonhosted.org/packages/1d/10/8e881743b26aaf718379a14ac58572a240e8293a1c9d68e1418fb11c0f90/multidict-6.1.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:c943a53e9186688b45b323602298ab727d8865d8c9ee0b17f8d62d14b56f0753", size = 130993, upload-time = "2024-09-09T23:47:58.163Z" }, + { url = "https://files.pythonhosted.org/packages/45/84/3eb91b4b557442802d058a7579e864b329968c8d0ea57d907e7023c677f2/multidict-6.1.0-cp311-cp311-win32.whl", hash = "sha256:90f8717cb649eea3504091e640a1b8568faad18bd4b9fcd692853a04475a4b80", size = 26405, upload-time = "2024-09-09T23:47:59.391Z" }, + { url = "https://files.pythonhosted.org/packages/9f/0b/ad879847ecbf6d27e90a6eabb7eff6b62c129eefe617ea45eae7c1f0aead/multidict-6.1.0-cp311-cp311-win_amd64.whl", hash = "sha256:82176036e65644a6cc5bd619f65f6f19781e8ec2e5330f51aa9ada7504cc1926", size = 28795, upload-time = "2024-09-09T23:48:00.359Z" }, + { url = "https://files.pythonhosted.org/packages/99/b7/b9e70fde2c0f0c9af4cc5277782a89b66d35948ea3369ec9f598358c3ac5/multidict-6.1.0-py3-none-any.whl", hash = "sha256:48e171e52d1c4d33888e529b999e5900356b9ae588c2f09a52dcefb158b27506", size = 10051, upload-time = "2024-09-09T23:49:36.506Z" }, +] + +[[package]] +name = "orjson" +version = "3.10.15" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/ae/f9/5dea21763eeff8c1590076918a446ea3d6140743e0e36f58f369928ed0f4/orjson-3.10.15.tar.gz", hash = "sha256:05ca7fe452a2e9d8d9d706a2984c95b9c2ebc5db417ce0b7a49b91d50642a23e", size = 5282482, upload-time = "2025-01-18T15:55:28.817Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7a/a2/21b25ce4a2c71dbb90948ee81bd7a42b4fbfc63162e57faf83157d5540ae/orjson-3.10.15-cp311-cp311-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:c4cc83960ab79a4031f3119cc4b1a1c627a3dc09df125b27c4201dff2af7eaa6", size = 249533, upload-time = "2025-01-18T15:53:41.572Z" }, + { url = "https://files.pythonhosted.org/packages/b2/85/2076fc12d8225698a51278009726750c9c65c846eda741e77e1761cfef33/orjson-3.10.15-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ddbeef2481d895ab8be5185f2432c334d6dec1f5d1933a9c83014d188e102cef", size = 125230, upload-time = "2025-01-18T18:11:54.582Z" }, + { url = "https://files.pythonhosted.org/packages/06/df/a85a7955f11274191eccf559e8481b2be74a7c6d43075d0a9506aa80284d/orjson-3.10.15-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:9e590a0477b23ecd5b0ac865b1b907b01b3c5535f5e8a8f6ab0e503efb896334", size = 150148, upload-time = "2025-01-18T15:53:44.062Z" }, + { url = "https://files.pythonhosted.org/packages/37/b3/94c55625a29b8767c0eed194cb000b3787e3c23b4cdd13be17bae6ccbb4b/orjson-3.10.15-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a6be38bd103d2fd9bdfa31c2720b23b5d47c6796bcb1d1b598e3924441b4298d", size = 139749, upload-time = "2025-01-18T15:53:45.526Z" }, + { url = "https://files.pythonhosted.org/packages/53/ba/c608b1e719971e8ddac2379f290404c2e914cf8e976369bae3cad88768b1/orjson-3.10.15-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ff4f6edb1578960ed628a3b998fa54d78d9bb3e2eb2cfc5c2a09732431c678d0", size = 154558, upload-time = "2025-01-18T15:53:47.712Z" }, + { url = "https://files.pythonhosted.org/packages/b2/c4/c1fb835bb23ad788a39aa9ebb8821d51b1c03588d9a9e4ca7de5b354fdd5/orjson-3.10.15-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b0482b21d0462eddd67e7fce10b89e0b6ac56570424662b685a0d6fccf581e13", size = 130349, upload-time = "2025-01-18T18:11:56.885Z" }, + { url = "https://files.pythonhosted.org/packages/78/14/bb2b48b26ab3c570b284eb2157d98c1ef331a8397f6c8bd983b270467f5c/orjson-3.10.15-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:bb5cc3527036ae3d98b65e37b7986a918955f85332c1ee07f9d3f82f3a6899b5", size = 138513, upload-time = "2025-01-18T15:53:50.52Z" }, + { url = "https://files.pythonhosted.org/packages/4a/97/d5b353a5fe532e92c46467aa37e637f81af8468aa894cd77d2ec8a12f99e/orjson-3.10.15-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:d569c1c462912acdd119ccbf719cf7102ea2c67dd03b99edcb1a3048651ac96b", size = 130942, upload-time = "2025-01-18T15:53:51.894Z" }, + { url = "https://files.pythonhosted.org/packages/b5/5d/a067bec55293cca48fea8b9928cfa84c623be0cce8141d47690e64a6ca12/orjson-3.10.15-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:1e6d33efab6b71d67f22bf2962895d3dc6f82a6273a965fab762e64fa90dc399", size = 414717, upload-time = "2025-01-18T15:53:53.215Z" }, + { url = "https://files.pythonhosted.org/packages/6f/9a/1485b8b05c6b4c4db172c438cf5db5dcfd10e72a9bc23c151a1137e763e0/orjson-3.10.15-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:c33be3795e299f565681d69852ac8c1bc5c84863c0b0030b2b3468843be90388", size = 141033, upload-time = "2025-01-18T15:53:54.664Z" }, + { url = "https://files.pythonhosted.org/packages/f8/d2/fc67523656e43a0c7eaeae9007c8b02e86076b15d591e9be11554d3d3138/orjson-3.10.15-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:eea80037b9fae5339b214f59308ef0589fc06dc870578b7cce6d71eb2096764c", size = 129720, upload-time = "2025-01-18T15:53:56.588Z" }, + { url = "https://files.pythonhosted.org/packages/79/42/f58c7bd4e5b54da2ce2ef0331a39ccbbaa7699b7f70206fbf06737c9ed7d/orjson-3.10.15-cp311-cp311-win32.whl", hash = "sha256:d5ac11b659fd798228a7adba3e37c010e0152b78b1982897020a8e019a94882e", size = 142473, upload-time = "2025-01-18T15:53:58.796Z" }, + { url = "https://files.pythonhosted.org/packages/00/f8/bb60a4644287a544ec81df1699d5b965776bc9848d9029d9f9b3402ac8bb/orjson-3.10.15-cp311-cp311-win_amd64.whl", hash = "sha256:cf45e0214c593660339ef63e875f32ddd5aa3b4adc15e662cdb80dc49e194f8e", size = 133570, upload-time = "2025-01-18T15:54:00.98Z" }, +] + +[[package]] +name = "packaging" +version = "26.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/65/ee/299d360cdc32edc7d2cf530f3accf79c4fca01e96ffc950d8a52213bd8e4/packaging-26.0.tar.gz", hash = "sha256:00243ae351a257117b6a241061796684b084ed1c516a08c48a3f7e147a9d80b4", size = 143416, upload-time = "2026-01-21T20:50:39.064Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b7/b9/c538f279a4e237a006a2c98387d081e9eb060d203d8ed34467cc0f0b9b53/packaging-26.0-py3-none-any.whl", hash = "sha256:b36f1fef9334a5588b4166f8bcd26a14e521f2b55e6b9de3aaa80d3ff7a37529", size = 74366, upload-time = "2026-01-21T20:50:37.788Z" }, +] + +[[package]] +name = "pip" +version = "26.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/53/c7/f8d9e2e0e7c1ed8a22a10eeb3b5bf7860bc07d8446c7a978a882c5c8214b/pip-26.3.tar.gz", hash = "sha256:6c36ae7da8695be67e3cd9f7d87919667ced53f57ce2ede75d89b5912ed2bc4c", size = 1934348, upload-time = "2026-11-02T20:34:27.738Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/07/25/ee8c38ae72d66b844ce8eb9711ba905dba21ca1a8a0c960057c41cd23337/pip-26.3-py3-none-any.whl", hash = "sha256:f3b60b20ffaadd4415ed7957212a38ac63fa4c5fa375bd0f4a797777940fad13", size = 1950951, upload-time = "2026-11-02T20:34:25.728Z" }, +] + +[[package]] +name = "platformdirs" +version = "4.3.6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/13/fc/128cc9cb8f03208bdbf93d3aa862e16d376844a14f9a0ce5cf4507372de4/platformdirs-4.3.6.tar.gz", hash = "sha256:357fb2acbc885b0419afd3ce3ed34564c13c9b95c89360cd9563f73aa5e2b907", size = 21302, upload-time = "2024-09-17T19:06:50.688Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/3c/a6/bc1012356d8ece4d66dd75c4b9fc6c1f6650ddd5991e421177d9f8f671be/platformdirs-4.3.6-py3-none-any.whl", hash = "sha256:73e575e1408ab8103900836b97580d5307456908a03e92031bab39e4554cc3fb", size = 18439, upload-time = "2024-09-17T19:06:49.212Z" }, +] + +[[package]] +name = "pluggy" +version = "1.7.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/bf/db/7fc19e6f2dc92a966727031389fc2e08b558f0f25eb7403c1119ad4713cd/pluggy-1.7.0.tar.gz", hash = "sha256:d1eaa46ebb595891b860ab086b4d09c8588af65ebd4361b8e8f4bb8920b90ba8", size = 123304, upload-time = "2026-10-15T09:50:58.343Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/40/9e/2b38731e0fc536806f16490e1a12d7f0dc2a1235aa8cc07bcc75416a7daa/pluggy-1.7.0-py3-none-any.whl", hash = "sha256:7dd7b0d8832ba3cb632c306926ded123429211b83641b35dc5c41ad2d34f9bec", size = 27082, upload-time = "2026-10-15T09:50:56.808Z" }, +] + +[[package]] +name = "propcache" +version = "0.2.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/a9/4d/5e5a60b78dbc1d464f8a7bbaeb30957257afdc8512cbb9dfd5659304f5cd/propcache-0.2.0.tar.gz", hash = "sha256:df81779732feb9d01e5d513fad0122efb3d53bbc75f61b2a4f29a020bc985e70", size = 40951, upload-time = "2024-10-07T12:56:36.896Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e0/1c/71eec730e12aec6511e702ad0cd73c2872eccb7cad39de8ba3ba9de693ef/propcache-0.2.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:63f13bf09cc3336eb04a837490b8f332e0db41da66995c9fd1ba04552e516354", size = 80811, upload-time = "2024-10-07T12:54:26.165Z" }, + { url = "https://files.pythonhosted.org/packages/89/c3/7e94009f9a4934c48a371632197406a8860b9f08e3f7f7d922ab69e57a41/propcache-0.2.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:608cce1da6f2672a56b24a015b42db4ac612ee709f3d29f27a00c943d9e851de", size = 46365, upload-time = "2024-10-07T12:54:28.034Z" }, + { url = "https://files.pythonhosted.org/packages/c0/1d/c700d16d1d6903aeab28372fe9999762f074b80b96a0ccc953175b858743/propcache-0.2.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:466c219deee4536fbc83c08d09115249db301550625c7fef1c5563a584c9bc87", size = 45602, upload-time = "2024-10-07T12:54:29.148Z" }, + { url = "https://files.pythonhosted.org/packages/2e/5e/4a3e96380805bf742712e39a4534689f4cddf5fa2d3a93f22e9fd8001b23/propcache-0.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fc2db02409338bf36590aa985a461b2c96fce91f8e7e0f14c50c5fcc4f229016", size = 236161, upload-time = "2024-10-07T12:54:31.557Z" }, + { url = "https://files.pythonhosted.org/packages/a5/85/90132481183d1436dff6e29f4fa81b891afb6cb89a7306f32ac500a25932/propcache-0.2.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a6ed8db0a556343d566a5c124ee483ae113acc9a557a807d439bcecc44e7dfbb", size = 244938, upload-time = "2024-10-07T12:54:33.051Z" }, + { url = "https://files.pythonhosted.org/packages/4a/89/c893533cb45c79c970834274e2d0f6d64383ec740be631b6a0a1d2b4ddc0/propcache-0.2.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:91997d9cb4a325b60d4e3f20967f8eb08dfcb32b22554d5ef78e6fd1dda743a2", size = 243576, upload-time = "2024-10-07T12:54:34.497Z" }, + { url = "https://files.pythonhosted.org/packages/8c/56/98c2054c8526331a05f205bf45cbb2cda4e58e56df70e76d6a509e5d6ec6/propcache-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4c7dde9e533c0a49d802b4f3f218fa9ad0a1ce21f2c2eb80d5216565202acab4", size = 236011, upload-time = "2024-10-07T12:54:35.903Z" }, + { url = "https://files.pythonhosted.org/packages/2d/0c/8b8b9f8a6e1abd869c0fa79b907228e7abb966919047d294ef5df0d136cf/propcache-0.2.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ffcad6c564fe6b9b8916c1aefbb37a362deebf9394bd2974e9d84232e3e08504", size = 224834, upload-time = "2024-10-07T12:54:37.238Z" }, + { url = "https://files.pythonhosted.org/packages/18/bb/397d05a7298b7711b90e13108db697732325cafdcd8484c894885c1bf109/propcache-0.2.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:97a58a28bcf63284e8b4d7b460cbee1edaab24634e82059c7b8c09e65284f178", size = 224946, upload-time = "2024-10-07T12:54:38.72Z" }, + { url = "https://files.pythonhosted.org/packages/25/19/4fc08dac19297ac58135c03770b42377be211622fd0147f015f78d47cd31/propcache-0.2.0-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:945db8ee295d3af9dbdbb698cce9bbc5c59b5c3fe328bbc4387f59a8a35f998d", size = 217280, upload-time = "2024-10-07T12:54:40.089Z" }, + { url = "https://files.pythonhosted.org/packages/7e/76/c79276a43df2096ce2aba07ce47576832b1174c0c480fe6b04bd70120e59/propcache-0.2.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:39e104da444a34830751715f45ef9fc537475ba21b7f1f5b0f4d71a3b60d7fe2", size = 220088, upload-time = "2024-10-07T12:54:41.726Z" }, + { url = "https://files.pythonhosted.org/packages/c3/9a/8a8cf428a91b1336b883f09c8b884e1734c87f724d74b917129a24fe2093/propcache-0.2.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:c5ecca8f9bab618340c8e848d340baf68bcd8ad90a8ecd7a4524a81c1764b3db", size = 233008, upload-time = "2024-10-07T12:54:43.742Z" }, + { url = "https://files.pythonhosted.org/packages/25/7b/768a8969abd447d5f0f3333df85c6a5d94982a1bc9a89c53c154bf7a8b11/propcache-0.2.0-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:c436130cc779806bdf5d5fae0d848713105472b8566b75ff70048c47d3961c5b", size = 237719, upload-time = "2024-10-07T12:54:45.065Z" }, + { url = "https://files.pythonhosted.org/packages/ed/0d/e5d68ccc7976ef8b57d80613ac07bbaf0614d43f4750cf953f0168ef114f/propcache-0.2.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:191db28dc6dcd29d1a3e063c3be0b40688ed76434622c53a284e5427565bbd9b", size = 227729, upload-time = "2024-10-07T12:54:46.405Z" }, + { url = "https://files.pythonhosted.org/packages/05/64/17eb2796e2d1c3d0c431dc5f40078d7282f4645af0bb4da9097fbb628c6c/propcache-0.2.0-cp311-cp311-win32.whl", hash = "sha256:5f2564ec89058ee7c7989a7b719115bdfe2a2fb8e7a4543b8d1c0cc4cf6478c1", size = 40473, upload-time = "2024-10-07T12:54:47.694Z" }, + { url = "https://files.pythonhosted.org/packages/83/c5/e89fc428ccdc897ade08cd7605f174c69390147526627a7650fb883e0cd0/propcache-0.2.0-cp311-cp311-win_amd64.whl", hash = "sha256:6e2e54267980349b723cff366d1e29b138b9a60fa376664a157a342689553f71", size = 44921, upload-time = "2024-10-07T12:54:48.935Z" }, + { url = "https://files.pythonhosted.org/packages/3d/b6/e6d98278f2d49b22b4d033c9f792eda783b9ab2094b041f013fc69bcde87/propcache-0.2.0-py3-none-any.whl", hash = "sha256:2ccc28197af5313706511fab3a8b66dcd6da067a1331372c82ea1cb74285e036", size = 11603, upload-time = "2024-10-07T12:56:35.137Z" }, +] + +[[package]] +name = "psutil" +version = "7.2.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/aa/c6/d1ddf4abb55e93cebc4f2ed8b5d6dbad109ecb8d63748dd2b20ab5e57ebe/psutil-7.2.2.tar.gz", hash = "sha256:0746f5f8d406af344fd547f1c8daa5f5c33dbc293bb8d6a16d80b4bb88f59372", size = 493740, upload-time = "2026-01-28T18:14:54.428Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e7/36/5ee6e05c9bd427237b11b3937ad82bb8ad2752d72c6969314590dd0c2f6e/psutil-7.2.2-cp36-abi3-macosx_10_9_x86_64.whl", hash = "sha256:ed0cace939114f62738d808fdcecd4c869222507e266e574799e9c0faa17d486", size = 129090, upload-time = "2026-01-28T18:15:22.168Z" }, + { url = "https://files.pythonhosted.org/packages/80/c4/f5af4c1ca8c1eeb2e92ccca14ce8effdeec651d5ab6053c589b074eda6e1/psutil-7.2.2-cp36-abi3-macosx_11_0_arm64.whl", hash = "sha256:1a7b04c10f32cc88ab39cbf606e117fd74721c831c98a27dc04578deb0c16979", size = 129859, upload-time = "2026-01-28T18:15:23.795Z" }, + { url = "https://files.pythonhosted.org/packages/b5/70/5d8df3b09e25bce090399cf48e452d25c935ab72dad19406c77f4e828045/psutil-7.2.2-cp36-abi3-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:076a2d2f923fd4821644f5ba89f059523da90dc9014e85f8e45a5774ca5bc6f9", size = 155560, upload-time = "2026-01-28T18:15:25.976Z" }, + { url = "https://files.pythonhosted.org/packages/63/65/37648c0c158dc222aba51c089eb3bdfa238e621674dc42d48706e639204f/psutil-7.2.2-cp36-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b0726cecd84f9474419d67252add4ac0cd9811b04d61123054b9fb6f57df6e9e", size = 156997, upload-time = "2026-01-28T18:15:27.794Z" }, + { url = "https://files.pythonhosted.org/packages/8e/13/125093eadae863ce03c6ffdbae9929430d116a246ef69866dad94da3bfbc/psutil-7.2.2-cp36-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:fd04ef36b4a6d599bbdb225dd1d3f51e00105f6d48a28f006da7f9822f2606d8", size = 148972, upload-time = "2026-01-28T18:15:29.342Z" }, + { url = "https://files.pythonhosted.org/packages/04/78/0acd37ca84ce3ddffaa92ef0f571e073faa6d8ff1f0559ab1272188ea2be/psutil-7.2.2-cp36-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:b58fabe35e80b264a4e3bb23e6b96f9e45a3df7fb7eed419ac0e5947c61e47cc", size = 148266, upload-time = "2026-01-28T18:15:31.597Z" }, + { url = "https://files.pythonhosted.org/packages/b4/90/e2159492b5426be0c1fef7acba807a03511f97c5f86b3caeda6ad92351a7/psutil-7.2.2-cp37-abi3-win_amd64.whl", hash = "sha256:eb7e81434c8d223ec4a219b5fc1c47d0417b12be7ea866e24fb5ad6e84b3d988", size = 137737, upload-time = "2026-01-28T18:15:33.849Z" }, + { url = "https://files.pythonhosted.org/packages/8c/c7/7bb2e321574b10df20cbde462a94e2b71d05f9bbda251ef27d104668306a/psutil-7.2.2-cp37-abi3-win_arm64.whl", hash = "sha256:8c233660f575a5a89e6d4cb65d9f938126312bca76d8fe087b947b3a1aaac9ee", size = 134617, upload-time = "2026-01-28T18:15:36.514Z" }, +] + +[[package]] +name = "pycparser" +version = "3.12" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/cb/27/eeb9f307bf07060f3d9f9aa0fb8c15b01bdfded0a941e4b2719c7f94cacd/pycparser-3.12.tar.gz", hash = "sha256:f03387877eab82ce01bbdfd0ba7252ee55a90b1c708d5129e2ce915475cf1db6", size = 158785, upload-time = "2026-10-22T13:40:03.56Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b6/ae/315bbeee126a769cbde43cf4908acb4b40408d8bf8bbf334dd7368d8dadf/pycparser-3.12-py3-none-any.whl", hash = "sha256:a076f3f489b39b43ed13563a1dafe42447445bec2e294154ec5c57fcdda4c85e", size = 62600, upload-time = "2026-10-22T13:40:02.021Z" }, +] + +[[package]] +name = "pygments" +version = "2.19.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/b0/77/a5b8c569bf593b0140bde72ea885a803b82086995367bf2037de0159d924/pygments-2.19.2.tar.gz", hash = "sha256:636cb2477cec7f8952536970bc533bc43743542f70392ae026374600add5b887", size = 4968631, upload-time = "2025-06-21T13:39:12.283Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c7/21/705964c7812476f378728bdf590ca4b771ec72385c533964653c68e86bdc/pygments-2.19.2-py3-none-any.whl", hash = "sha256:86540386c03d588bb81d44bc3928634ff26449851e99741617ecb9037ee5ec0b", size = 1225217, upload-time = "2025-06-21T13:39:07.939Z" }, +] + +[[package]] +name = "pytest" +version = "9.2.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "colorama", marker = "sys_platform == 'win32'" }, + { name = "iniconfig" }, + { name = "packaging" }, + { name = "pluggy" }, + { name = "pygments" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/79/42/bb4641652e58dedeac2ec51abc1f8cae4fee4ec63899a0999016229a0f2a/pytest-9.2.0.tar.gz", hash = "sha256:97c4f3b1f3c7414aa36465e09b8220f1d03627993bd51b1282e193753c80557b", size = 1797555, upload-time = "2026-10-27T21:30:20.728Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/51/39/1f5d8c8877a0fa327db959c19341d4be61660de1ab6b7391f9eb805bcd67/pytest-9.2.0-py3-none-any.whl", hash = "sha256:07acdcf88ec174f907dc01af70bf52d49b014bbab03faeeade31c96b18c2e588", size = 411776, upload-time = "2026-10-27T21:30:19.131Z" }, +] + +[[package]] +name = "pytest-asyncio" +version = "1.4.1.post1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pytest" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/73/7f/c60a4338420b33453d4f814ac0c930abd399f162b9bdd21af4b9e363037f/pytest_asyncio-1.4.1.post1.tar.gz", hash = "sha256:f582d9ea4a1c082195abe8bd29a1fe106aeb1cd435e3dad2d3bc2749935c36a2", size = 145360, upload-time = "2026-11-01T18:26:03.732Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e3/de/adbc7578959cfab07e5e7c05cf6d54224a51e7667ea2c07458b6bc571e75/pytest_asyncio-1.4.1.post1-py3-none-any.whl", hash = "sha256:0755e488cc0a2b9bd2eab7292cc6390d4cbb8390f1020745647bae5a708e0165", size = 17140, upload-time = "2026-11-01T18:26:02.168Z" }, +] + +[[package]] +name = "python-dateutil" +version = "2.9.0.post0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "six" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/66/c0/0c8b6ad9f17a802ee498c46e004a0eb49bc148f2fd230864601a86dcf6db/python-dateutil-2.9.0.post0.tar.gz", hash = "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3", size = 342432, upload-time = "2024-03-01T18:36:20.211Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ec/57/56b9bcc3c9c6a792fcbaf139543cee77261f3651ca9da0c93f5c1221264b/python_dateutil-2.9.0.post0-py2.py3-none-any.whl", hash = "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427", size = 229892, upload-time = "2024-03-01T18:36:18.57Z" }, +] + +[[package]] +name = "pyyaml" +version = "6.0.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/05/8e/961c0007c59b8dd7729d542c61a4d537767a59645b82a0b521206e1e25c2/pyyaml-6.0.3.tar.gz", hash = "sha256:d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f", size = 130960, upload-time = "2025-09-25T21:33:16.546Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/6d/16/a95b6757765b7b031c9374925bb718d55e0a9ba8a1b6a12d25962ea44347/pyyaml-6.0.3-cp311-cp311-macosx_10_13_x86_64.whl", hash = "sha256:44edc647873928551a01e7a563d7452ccdebee747728c1080d881d68af7b997e", size = 185826, upload-time = "2025-09-25T21:31:58.655Z" }, + { url = "https://files.pythonhosted.org/packages/16/19/13de8e4377ed53079ee996e1ab0a9c33ec2faf808a4647b7b4c0d46dd239/pyyaml-6.0.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:652cb6edd41e718550aad172851962662ff2681490a8a711af6a4d288dd96824", size = 175577, upload-time = "2025-09-25T21:32:00.088Z" }, + { url = "https://files.pythonhosted.org/packages/0c/62/d2eb46264d4b157dae1275b573017abec435397aa59cbcdab6fc978a8af4/pyyaml-6.0.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:10892704fc220243f5305762e276552a0395f7beb4dbf9b14ec8fd43b57f126c", size = 775556, upload-time = "2025-09-25T21:32:01.31Z" }, + { url = "https://files.pythonhosted.org/packages/10/cb/16c3f2cf3266edd25aaa00d6c4350381c8b012ed6f5276675b9eba8d9ff4/pyyaml-6.0.3-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:850774a7879607d3a6f50d36d04f00ee69e7fc816450e5f7e58d7f17f1ae5c00", size = 882114, upload-time = "2025-09-25T21:32:03.376Z" }, + { url = "https://files.pythonhosted.org/packages/71/60/917329f640924b18ff085ab889a11c763e0b573da888e8404ff486657602/pyyaml-6.0.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b8bb0864c5a28024fac8a632c443c87c5aa6f215c0b126c449ae1a150412f31d", size = 806638, upload-time = "2025-09-25T21:32:04.553Z" }, + { url = "https://files.pythonhosted.org/packages/dd/6f/529b0f316a9fd167281a6c3826b5583e6192dba792dd55e3203d3f8e655a/pyyaml-6.0.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:1d37d57ad971609cf3c53ba6a7e365e40660e3be0e5175fa9f2365a379d6095a", size = 767463, upload-time = "2025-09-25T21:32:06.152Z" }, + { url = "https://files.pythonhosted.org/packages/f2/6a/b627b4e0c1dd03718543519ffb2f1deea4a1e6d42fbab8021936a4d22589/pyyaml-6.0.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:37503bfbfc9d2c40b344d06b2199cf0e96e97957ab1c1b546fd4f87e53e5d3e4", size = 794986, upload-time = "2025-09-25T21:32:07.367Z" }, + { url = "https://files.pythonhosted.org/packages/45/91/47a6e1c42d9ee337c4839208f30d9f09caa9f720ec7582917b264defc875/pyyaml-6.0.3-cp311-cp311-win32.whl", hash = "sha256:8098f252adfa6c80ab48096053f512f2321f0b998f98150cea9bd23d83e1467b", size = 142543, upload-time = "2025-09-25T21:32:08.95Z" }, + { url = "https://files.pythonhosted.org/packages/da/e3/ea007450a105ae919a72393cb06f122f288ef60bba2dc64b26e2646fa315/pyyaml-6.0.3-cp311-cp311-win_amd64.whl", hash = "sha256:9f3bfb4965eb874431221a3ff3fdcddc7e74e3b07799e0e84ca4a0f867d449bf", size = 158763, upload-time = "2025-09-25T21:32:09.96Z" }, +] + +[[package]] +name = "rapidfuzz" +version = "3.9.7" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/17/ac/1f1bf726645d7740df2d1371380e35098bb8a460f482343cba1dd1668ab6/rapidfuzz-3.9.7.tar.gz", hash = "sha256:f1c7296534c1afb6f495aa95871f14ccdc197c6db42965854e483100df313030", size = 1596228, upload-time = "2024-09-02T19:15:28.137Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/18/dd/530be3f5fb7ad43cc8ccce2cb391146602e11b5df1f1e948adfa7bae0802/rapidfuzz-3.9.7-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:d098ce6162eb5e48fceb0745455bc950af059df6113eec83e916c129fca11408", size = 2055425, upload-time = "2024-09-02T19:12:21.018Z" }, + { url = "https://files.pythonhosted.org/packages/60/e5/c919e2257c8c3ee43155f580bb86682d3b1f16256dc3622ca2e416068d67/rapidfuzz-3.9.7-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:048d55d36c02c6685a2b2741688503c3d15149694506655b6169dcfd3b6c2585", size = 1510614, upload-time = "2024-09-02T19:12:22.839Z" }, + { url = "https://files.pythonhosted.org/packages/06/09/efe65f1b01e1778e57b8f29e9f8d39c8203c6022698a246f6c57e8471000/rapidfuzz-3.9.7-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c33211cfff9aec425bb1bfedaf94afcf337063aa273754f22779d6dadebef4c2", size = 1559939, upload-time = "2024-09-02T19:12:24.165Z" }, + { url = "https://files.pythonhosted.org/packages/c1/f0/344a41ac82970e0a7b88821f9cfd3b46779db88089c146c9937e4bbfcc6c/rapidfuzz-3.9.7-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e6d9db2fa4e9be171e9bb31cf2d2575574774966b43f5b951062bb2e67885852", size = 5964378, upload-time = "2024-09-02T19:12:26.022Z" }, + { url = "https://files.pythonhosted.org/packages/83/31/3194dc0262dfa3c3bd585e6aac95af21c78e26981a9b19da08a4fd97adda/rapidfuzz-3.9.7-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d4e049d5ad61448c9a020d1061eba20944c4887d720c4069724beb6ea1692507", size = 1825499, upload-time = "2024-09-02T19:12:28.435Z" }, + { url = "https://files.pythonhosted.org/packages/e6/3e/ea01677779779819c083580e501aba1773f4fbcd7082fc52f110e73c09f5/rapidfuzz-3.9.7-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cfa74aac64c85898b93d9c80bb935a96bf64985e28d4ee0f1a3d1f3bf11a5106", size = 1830054, upload-time = "2024-09-02T19:12:30.254Z" }, + { url = "https://files.pythonhosted.org/packages/8a/c4/a06602d0bf830414dd6b458785d868252d6f2cbe1a0a1f57a62cfab1a9ec/rapidfuzz-3.9.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:965693c2e9efd425b0f059f5be50ef830129f82892fa1858e220e424d9d0160f", size = 3384099, upload-time = "2024-09-02T19:12:32.39Z" }, + { url = "https://files.pythonhosted.org/packages/87/f3/787a2950df7cc23eac5a89b9ee47cf833a9b5759f59b90a50d351467c257/rapidfuzz-3.9.7-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:8501000a5eb8037c4b56857724797fe5a8b01853c363de91c8d0d0ad56bef319", size = 2458238, upload-time = "2024-09-02T19:12:33.844Z" }, + { url = "https://files.pythonhosted.org/packages/41/85/e3531a970ae92dfe8c1c8060920d83ba083f4d56cd0953f444aaa15af9a9/rapidfuzz-3.9.7-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:8d92c552c6b7577402afdd547dcf5d31ea6c8ae31ad03f78226e055cfa37f3c6", size = 7239492, upload-time = "2024-09-02T19:12:35.373Z" }, + { url = "https://files.pythonhosted.org/packages/b3/5f/08d5637681c80c2d5ae20d2f1e5be9e37351e8313359c2a00770efa14be7/rapidfuzz-3.9.7-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:1ee2086f490cb501d86b7e386c1eb4e3a0ccbb0c99067089efaa8c79012c8952", size = 2837408, upload-time = "2024-09-02T19:12:37.312Z" }, + { url = "https://files.pythonhosted.org/packages/0a/54/6f44905e09fc0136621ffa914737326aa3b6b9b6c24f3565af1c63cf3f3f/rapidfuzz-3.9.7-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:1de91e7fd7f525e10ea79a6e62c559d1b0278ec097ad83d9da378b6fab65a265", size = 3386607, upload-time = "2024-09-02T19:12:38.801Z" }, + { url = "https://files.pythonhosted.org/packages/77/a3/ac9b99d96a91b5d2ffa920481cbd94fcc73a042aee0b17ba627a146e7199/rapidfuzz-3.9.7-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:a4da514d13f4433e16960a17f05b67e0af30ac771719c9a9fb877e5004f74477", size = 4392097, upload-time = "2024-09-02T19:12:41.502Z" }, + { url = "https://files.pythonhosted.org/packages/f0/cc/67f959d95e556f1925b4c9211fb7f63c0df60610c28c2c618b48df9ff1d6/rapidfuzz-3.9.7-cp311-cp311-win32.whl", hash = "sha256:a40184c67db8252593ec518e17fb8a6e86d7259dc9f2d6c0bf4ff4db8cf1ad4b", size = 1857658, upload-time = "2024-09-02T19:12:43.691Z" }, + { url = "https://files.pythonhosted.org/packages/64/d9/c86f7b247b1603cae62d5d39cbc12f5baaeb34e80fd00c7211fe43157a66/rapidfuzz-3.9.7-cp311-cp311-win_amd64.whl", hash = "sha256:c4f28f1930b09a2c300357d8465b388cecb7e8b2f454a5d5425561710b7fd07f", size = 1662871, upload-time = "2024-09-02T19:12:45.157Z" }, + { url = "https://files.pythonhosted.org/packages/67/43/ca9cda58a08808b891866afecf567f5dd317c72816fe3df50cb87649d625/rapidfuzz-3.9.7-cp311-cp311-win_arm64.whl", hash = "sha256:675b75412a943bb83f1f53e2e54fd18c80ef15ed642dc6eb0382d1949419d904", size = 856548, upload-time = "2024-09-02T19:12:46.619Z" }, +] + +[[package]] +name = "red-commons" +version = "1.0.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/26/a9/de9bad2793856dfdc7dca87b306bed42f04dbcf703e21093b30980325ca5/Red-Commons-1.0.0.tar.gz", hash = "sha256:b9bcc55c72801c33eb0c77aaf48041d018bfb5f1293053cff8a3e10e4d33e52d", size = 2898, upload-time = "2022-03-18T20:02:52.602Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/39/7a/4afb80e4aa69fec9736159d2571db76e3546c6e3b4e8deefe0e55114526c/red_commons-1.0.0-py3-none-any.whl", hash = "sha256:7007b70abfe8e2c9a8e03f8b60810ab1201c4d8274974e0c3842d972cb25af44", size = 3531, upload-time = "2022-03-18T20:02:51.562Z" }, +] + +[[package]] +name = "red-discordbot" +version = "3.5.24" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "aiohttp" }, + { name = "aiohttp-json-rpc" }, + { name = "aiosignal" }, + { name = "apsw" }, + { name = "attrs" }, + { name = "babel" }, + { name = "brotli" }, + { name = "click" }, + { name = "colorama", marker = "sys_platform == 'win32'" }, + { name = "discord-py" }, + { name = "distro", marker = "sys_platform == 'linux'" }, + { name = "frozenlist" }, + { name = "idna" }, + { name = "markdown" }, + { name = "markdown-it-py" }, + { name = "mdurl" }, + { name = "multidict" }, + { name = "orjson" }, + { name = "packaging" }, + { name = "platformdirs" }, + { name = "propcache" }, + { name = "psutil" }, + { name = "pygments" }, + { name = "python-dateutil" }, + { name = "pyyaml" }, + { name = "rapidfuzz" }, + { name = "red-commons" }, + { name = "red-lavalink" }, + { name = "rich" }, + { name = "schema" }, + { name = "six" }, + { name = "typing-extensions" }, + { name = "uvloop", marker = "platform_python_implementation == 'CPython' and sys_platform != 'win32'" }, + { name = "yarl" }, + { name = "zstandard" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ba/3c/ffc92b1380a4063a3bd06b5235bae376775a4689b8679318a44393b4c69c/red_discordbot-3.5.24.tar.gz", hash = "sha256:6c9b5e3773f46b26550a70812aa33dc6cb37ee0f42563cb294f156df66207cf5", size = 3878760, upload-time = "2026-03-06T01:39:24.79Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/00/b2/a5f5c3ec9e61c26c6e792bc041586f1b5e78f8b5412d88d9877304b36062/red_discordbot-3.5.24-py3-none-any.whl", hash = "sha256:3cbdbdd8bb0b6dbab1f5f909151f12dcd40798b06df8beb791fd22b9e1b2c8bd", size = 5970180, upload-time = "2026-03-06T01:39:22.251Z" }, +] + +[package.optional-dependencies] +postgres = [ + { name = "asyncpg" }, +] + +[[package]] +name = "red-lavalink" +version = "0.11.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "aiohttp" }, + { name = "discord-py" }, + { name = "red-commons" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/89/bc/3b62bad4188bc51eefa38810fae7e18b62dd24a0d69bb82f9d1f67e7ace7/red_lavalink-0.11.1.tar.gz", hash = "sha256:dc6e1a2a81acbf07d3d17f547dd2e76193d29a875c9bc94c2207bc06ef7bfab3", size = 34745, upload-time = "2026-03-03T22:51:57.886Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/92/fb/04531929a34722b54a30555c2ed615c30d93fb70da31b708b0780a018ca0/red_lavalink-0.11.1-py3-none-any.whl", hash = "sha256:2e4a19b1b766971599df3736cf1777835afd74bb223fe0917e5362891779c575", size = 36028, upload-time = "2026-03-03T22:51:56.177Z" }, +] + +[[package]] +name = "rich" +version = "14.3.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "markdown-it-py" }, + { name = "pygments" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/b3/c6/f3b320c27991c46f43ee9d856302c70dc2d0fb2dba4842ff739d5f46b393/rich-14.3.3.tar.gz", hash = "sha256:b8daa0b9e4eef54dd8cf7c86c03713f53241884e814f4e2f5fb342fe520f639b", size = 230582, upload-time = "2026-02-19T17:23:12.474Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/14/25/b208c5683343959b670dc001595f2f3737e051da617f66c31f7c4fa93abc/rich-14.3.3-py3-none-any.whl", hash = "sha256:793431c1f8619afa7d3b52b2cdec859562b950ea0d4b6b505397612db8d5362d", size = 310458, upload-time = "2026-02-19T17:23:13.732Z" }, +] + +[[package]] +name = "ruff" +version = "0.17.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/59/73/81f140c4edd9cc323de5478e6bbd3bbcfae9a82692df1a258de8cec6a6d2/ruff-0.17.3.tar.gz", hash = "sha256:a57049c8addb3662073859bb55a7ad35aa54f8a7c9ed268911d1333c5aadaaa9", size = 5339444, upload-time = "2026-10-27T00:34:05.914Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/9e/8c/083365310c4e79c842f25bf5a842facbd9b0c0ec336f96dffa5074fe723d/ruff-0.17.3-py3-none-linux_armv6l.whl", hash = "sha256:ab86b84cd9d05e56d329742c0cabdcbe2d1d56c98f4a04aab9b5b66196febfb4", size = 10216522, upload-time = "2026-10-27T00:33:29.822Z" }, + { url = "https://files.pythonhosted.org/packages/72/26/4b2edf31cfebe9605d8f6ed8f1d6f376d3a53d4c9a123e62661c64c440f0/ruff-0.17.3-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:e407b4a6852853a9a2cdce96963e94ad9775578bb44e7561a0f2829f3cc04b11", size = 10217786, upload-time = "2026-10-27T00:33:33.949Z" }, + { url = "https://files.pythonhosted.org/packages/a2/7e/537aba4b7f54397a374d2f6a6fc93e9c8015e18553f31a4a7b7dbced48b5/ruff-0.17.3-py3-none-macosx_11_0_arm64.whl", hash = "sha256:b75cc113b3aca388933d8296b667b1ac401a80317ea3074c9b0a66541199da29", size = 9440362, upload-time = "2026-10-27T00:33:35.784Z" }, + { url = "https://files.pythonhosted.org/packages/3d/66/283e39734f66c8a5ebaa93c22eb7b7515779a0b1d5a5c0ad20e05c0edb41/ruff-0.17.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ab5fa7ed5ce18554ea69d850ad162cbaa0c85fc47c08d83a569f806681c9a6ad", size = 10094281, upload-time = "2026-10-27T00:33:38.216Z" }, + { url = "https://files.pythonhosted.org/packages/21/4c/1ffc768497bd025a32c72152771e40c0b99bddc5cc6e4f50c7949a395346/ruff-0.17.3-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:c673c170e27834d1262e3a9c1e97bdc9b9c3b180c63d89173ce69747232474c1", size = 10022543, upload-time = "2026-10-27T00:33:40.181Z" }, + { url = "https://files.pythonhosted.org/packages/73/c3/f90db547301080fcb82c92abf914c8bd57b89911d9b65a6c4cc6b52d0635/ruff-0.17.3-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6a754c0341bc9ca151b7b335988b3263921c08859f84ca219b70cee825571b6f", size = 10683921, upload-time = "2026-10-27T00:33:42.182Z" }, + { url = "https://files.pythonhosted.org/packages/e5/98/92d4a8a26c6c96cf1a5b34dd59036d8a71e52d650aab065c58867e964e63/ruff-0.17.3-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4590b9d86c0b1543ebb09094254e191cd43fe8edaf330baa035aab03da251532", size = 11373408, upload-time = "2026-10-27T00:33:44.19Z" }, + { url = "https://files.pythonhosted.org/packages/43/02/1f24d2e3064c9753926deeb901afa57777b37ee46799b09ddd7aee6e5145/ruff-0.17.3-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:bbde18beccd98c29a227c63c99022e3443b99258e08326df6425dfe0443705ef", size = 10977469, upload-time = "2026-10-27T00:33:46.179Z" }, + { url = "https://files.pythonhosted.org/packages/f0/20/fecedea2209f574ab92033b344e01a7f0c2dc76c6d6d19a14c9f8141173f/ruff-0.17.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7fa4b0f931cdbcb8a52044f370a3eb429fb42eb88807b0e800fcaa98dd42b24e", size = 10577491, upload-time = "2026-10-27T00:33:48.233Z" }, + { url = "https://files.pythonhosted.org/packages/33/36/b93fdf0bc6f84f0cd487aadfb0354deb40013669ea35ac3d26855de1e959/ruff-0.17.3-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:39405f341deec934b4289634324ad695f72df2970f9121582872eaf5b722f0f5", size = 10608748, upload-time = "2026-10-27T00:33:50.284Z" }, + { url = "https://files.pythonhosted.org/packages/5d/b7/7d3f5f14145daead1efb0b9a8289ed1daa100f419d60774375951723ce00/ruff-0.17.3-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:68074094f55ca3d29ab19491f640282f7a84061c4c7977aa5094b968ca457e9a", size = 10075057, upload-time = "2026-10-27T00:33:52.074Z" }, + { url = "https://files.pythonhosted.org/packages/b0/ed/93ff7a5909ee56e2bd4b982deae9e0efb2724417874a90c9e41ad66c6dd7/ruff-0.17.3-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:27bb571ac78fef178fe5118d2827df95c2aae74a48fff2b15f6acd03af5ff5bb", size = 10022431, upload-time = "2026-10-27T00:33:54.061Z" }, + { url = "https://files.pythonhosted.org/packages/9b/07/a83b9eeec8c1c3c0e4eda15f06c3a91001bfd2687ea2f07b750719bf9712/ruff-0.17.3-py3-none-musllinux_1_2_i686.whl", hash = "sha256:029c37cbd3de48ca37aa12117bead2d065f15da17d66bf84e0d4274013705db2", size = 10394903, upload-time = "2026-10-27T00:33:56.158Z" }, + { url = "https://files.pythonhosted.org/packages/af/b2/05c39857c2526fcbebe46ad93a8dc97424656dfef14d3ef933abe1ffd331/ruff-0.17.3-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:692fdb46d0fd9c71e380947dc5fc72f2c3f881073bc1f739e4579376231affbe", size = 10799780, upload-time = "2026-10-27T00:33:58.204Z" }, + { url = "https://files.pythonhosted.org/packages/ec/d9/47171a16739eb7a353936b31c20cf54340531e68c9af7d72fd7a784e235d/ruff-0.17.3-py3-none-win32.whl", hash = "sha256:46539cb031b01fd29ae0a02142483c46640b233ee12bb1c1b690bffa1555d5ca", size = 9908481, upload-time = "2026-10-27T00:34:00.087Z" }, + { url = "https://files.pythonhosted.org/packages/d0/a0/f08c1631bfd81faa6a90eaf70c37c786c11bed2046302b56bb506c25e1a0/ruff-0.17.3-py3-none-win_amd64.whl", hash = "sha256:56b8ffb3f3b3cbccb8b76b71b38261b7ed982ef5d20f5b447b1b61a7f4949b24", size = 10341333, upload-time = "2026-10-27T00:34:02.099Z" }, + { url = "https://files.pythonhosted.org/packages/99/d5/4ad4ed31413c301430918e70d3d38ae6f097af0766cb9ab8c9d502b2a4d6/ruff-0.17.3-py3-none-win_arm64.whl", hash = "sha256:81fce74bcd6be0e9da7c67c7553fd0f1f12964a2052cd728ef917b937a5ca1d9", size = 9854332, upload-time = "2026-10-27T00:34:03.847Z" }, +] + +[[package]] +name = "schema" +version = "0.7.8" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/fb/2e/8da627b65577a8f130fe9dfa88ce94fcb24b1f8b59e0fc763ee61abef8b8/schema-0.7.8.tar.gz", hash = "sha256:e86cc08edd6fe6e2522648f4e47e3a31920a76e82cce8937535422e310862ab5", size = 45540, upload-time = "2025-10-11T13:15:40.281Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c9/75/aad85817266ac5285c93391711d231ca63e9ae7d42cd3ca37549e24ebe52/schema-0.7.8-py2.py3-none-any.whl", hash = "sha256:00bd977fadc7d9521bf289850cd8a8aa5f4948f575476b8daaa5c1b57af2dce1", size = 19108, upload-time = "2025-10-11T17:13:07.323Z" }, +] + +[[package]] +name = "six" +version = "1.17.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/94/e7/b2c673351809dca68a0e064b6af791aa332cf192da575fd474ed7d6f16a2/six-1.17.0.tar.gz", hash = "sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81", size = 34031, upload-time = "2024-12-04T17:35:28.174Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl", hash = "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274", size = 11050, upload-time = "2024-12-04T17:35:26.475Z" }, +] + +[[package]] +name = "ty" +version = "0.0.97" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/cf/57/d0cabbc33e6e04c0406b9771ef3a05b13f34c3c22e69c3696ab5431dc28b/ty-0.0.97.tar.gz", hash = "sha256:5346478c114ca9aece58b4df94e41cc17f373177f0795d15db8e95a8d1edae0f", size = 8152797, upload-time = "2026-11-04T09:15:44.47Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/47/47/73bbd93b7d580be6a751b069aa75bc5dd008c3180ffc1747f8914b301fd4/ty-0.0.97-py3-none-linux_armv6l.whl", hash = "sha256:6ebc145803a0e3a1d3087cadae35e2003dc795914ff0048131286e62d517f461", size = 14657644, upload-time = "2026-11-04T09:14:49.574Z" }, + { url = "https://files.pythonhosted.org/packages/54/4f/40ca071c4ac093cf2e124612bd4adba97af85de89fe6c1599710a23d63a1/ty-0.0.97-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:76a094299aef30130570d3c01f0ea7a13e2036a15db9a35be2cbc050f2a73d02", size = 14219229, upload-time = "2026-11-04T09:14:52.944Z" }, + { url = "https://files.pythonhosted.org/packages/18/57/8c0d346fe872ee2813b3afa34b93d5e5e8a2f9c39db9f8be32351d2d08c5/ty-0.0.97-py3-none-macosx_11_0_arm64.whl", hash = "sha256:6a5c9414303fe3bb461c174c59a70881c48934c1983a36e109aa2b18b5f3bea5", size = 13274833, upload-time = "2026-11-04T09:14:55.963Z" }, + { url = "https://files.pythonhosted.org/packages/e7/74/76c3d6236acef0ca7f1a57fb8923bac098eba629e9f93bd34427a510e191/ty-0.0.97-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:65ac762c4ad4abffe085b91795488b9780befea14d9c4ceaa18a02d0bd5fde11", size = 14120577, upload-time = "2026-11-04T09:14:59.274Z" }, + { url = "https://files.pythonhosted.org/packages/c5/e2/12a2f226a9faa718c569da0074a31ef8c28722b49d1e89ea8df22f74f6e7/ty-0.0.97-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:eeecb6128caf6a2e64c62f1e5484b61dd30608e870f726615be7f3d643a45467", size = 14385457, upload-time = "2026-11-04T09:15:02.173Z" }, + { url = "https://files.pythonhosted.org/packages/78/36/8f2dd9b5ab9466d26211cfd6e74b808f37b8bac171beb490f431e916c03f/ty-0.0.97-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:91284ae3799c44bcde4c7cdae6b4574ede196b1adeaff8f4dba23888a76fa50f", size = 15354810, upload-time = "2026-11-04T09:15:05.714Z" }, + { url = "https://files.pythonhosted.org/packages/0a/e1/9b19f32aa6345d0feece2201323b8d8db6cb716d544ff61fbbdcfc2fefb6/ty-0.0.97-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:11878ffe50115e2c7725e8e4d30c6ec827ee97bbd92b8b9a7fcd54d49fa07235", size = 15784826, upload-time = "2026-11-04T09:15:08.879Z" }, + { url = "https://files.pythonhosted.org/packages/3d/95/e79cc647ce1d7ba6140401c76c0298be2b24335c2650c6e90d0950c2e8ce/ty-0.0.97-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d197c4a5d273cc3cb7a81c2e54d9e911f1d841b3e8abe2bfcb6185884c02af87", size = 15714807, upload-time = "2026-11-04T09:15:12.1Z" }, + { url = "https://files.pythonhosted.org/packages/db/6d/b432bebff5dba0883c40e66a19f3ac40ac268defb87f4b641b371c989624/ty-0.0.97-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4750e490b285d9083cc49588bbbecd1b5e02476dca882e127586cd289b4d92df", size = 16589366, upload-time = "2026-11-04T09:15:15.426Z" }, + { url = "https://files.pythonhosted.org/packages/c3/8c/3abaa79ccc327ff1f5480ccac145a09529f475a43c1c1b2bae9d26cfffc5/ty-0.0.97-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:5b8cba6a04c3a5d9380977ad3789328a23630cfd1f89f56b06c819c42ebfed65", size = 15242399, upload-time = "2026-11-04T09:15:18.748Z" }, + { url = "https://files.pythonhosted.org/packages/8a/22/1d9e8ed559484a92422514a17d8c95a944aa32d91d45176659fa6fc2f528/ty-0.0.97-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:042a28b8d3d0ebd86b8c20c09544a4623c8408dcaf40fce5d73c72c2956db34f", size = 14101542, upload-time = "2026-11-04T09:15:21.877Z" }, + { url = "https://files.pythonhosted.org/packages/88/b0/6be00fd0ff3cdb6e8ade36837390ae2d3b06a662424ec231ffabf9df8811/ty-0.0.97-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:37815bde7e9344fa91533bdf09960c065278a7f3a33cf3aa642b394f67f2d115", size = 14392166, upload-time = "2026-11-04T09:15:25.235Z" }, + { url = "https://files.pythonhosted.org/packages/0d/a0/9b245e691b6df38903e2b782f87bf86a5dd258e700e663414a7585515d9f/ty-0.0.97-py3-none-musllinux_1_2_i686.whl", hash = "sha256:b36092f9249ec53efc42972ef35039a3e28042ea0b5abc8ce174668d5b4f8c8e", size = 14759162, upload-time = "2026-11-04T09:15:28.366Z" }, + { url = "https://files.pythonhosted.org/packages/cf/81/b6e8fb597019e50702ad2d3d25017910f83321471e9b1c13c46f5666bdf1/ty-0.0.97-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:5428aab4930abe9527f6cd66f2bbbd009291c463eb256c895e23857dc5a930ea", size = 15104202, upload-time = "2026-11-04T09:15:31.993Z" }, + { url = "https://files.pythonhosted.org/packages/eb/bc/be5c37bac8b99853e68ea5f11536231ffa988f63cb6785288cf6d5d87368/ty-0.0.97-py3-none-win32.whl", hash = "sha256:8e2aa95973b1be330db33c46b10ba02d92e35930b70d06200c1f06512af6824a", size = 13560323, upload-time = "2026-11-04T09:15:35.258Z" }, + { url = "https://files.pythonhosted.org/packages/b6/47/5d9b908dbc4a2addb984c3d58f008db75dd9c7cd04f0a7d92530779c1bd5/ty-0.0.97-py3-none-win_amd64.whl", hash = "sha256:69deddd2d1c4fbb2cae902a8c0d7c7ed67113659edcfd59ab5b6e4a2a02081ee", size = 14184823, upload-time = "2026-11-04T09:15:38.335Z" }, + { url = "https://files.pythonhosted.org/packages/24/50/f0e0e2f137bd1b3539809a248b552002cd0b8b00ed36114acb9ca72eca8c/ty-0.0.97-py3-none-win_arm64.whl", hash = "sha256:88ec7fd1a91d70ed43fab52e326b375129c44c6b64d6c289825fb4561bc80253", size = 13685279, upload-time = "2026-11-04T09:15:41.961Z" }, +] + +[[package]] +name = "typing-extensions" +version = "4.13.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f6/37/23083fcd6e35492953e8d2aaaa68b860eb422b34627b13f2ce3eb6106061/typing_extensions-4.13.2.tar.gz", hash = "sha256:e6c81219bd689f51865d9e372991c540bda33a0379d5573cddb9a3a23f7caaef", size = 106967, upload-time = "2025-04-10T14:19:05.416Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/8b/54/b1ae86c0973cc6f0210b53d508ca3641fb6d0c56823f288d108bc7ab3cc8/typing_extensions-4.13.2-py3-none-any.whl", hash = "sha256:a439e7c04b49fec3e5d3e2beaa21755cadbbdc391694e28ccdd36ca4a1408f8c", size = 45806, upload-time = "2025-04-10T14:19:03.967Z" }, +] + +[[package]] +name = "uvloop" +version = "0.21.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/af/c0/854216d09d33c543f12a44b393c402e89a920b1a0a7dc634c42de91b9cf6/uvloop-0.21.0.tar.gz", hash = "sha256:3bf12b0fda68447806a7ad847bfa591613177275d35b6724b1ee573faa3704e3", size = 2492741, upload-time = "2024-10-14T23:38:35.489Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/57/a7/4cf0334105c1160dd6819f3297f8700fda7fc30ab4f61fbf3e725acbc7cc/uvloop-0.21.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:c0f3fa6200b3108919f8bdabb9a7f87f20e7097ea3c543754cabc7d717d95cf8", size = 1447410, upload-time = "2024-10-14T23:37:33.612Z" }, + { url = "https://files.pythonhosted.org/packages/8c/7c/1517b0bbc2dbe784b563d6ab54f2ef88c890fdad77232c98ed490aa07132/uvloop-0.21.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:0878c2640cf341b269b7e128b1a5fed890adc4455513ca710d77d5e93aa6d6a0", size = 805476, upload-time = "2024-10-14T23:37:36.11Z" }, + { url = "https://files.pythonhosted.org/packages/ee/ea/0bfae1aceb82a503f358d8d2fa126ca9dbdb2ba9c7866974faec1cb5875c/uvloop-0.21.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b9fb766bb57b7388745d8bcc53a359b116b8a04c83a2288069809d2b3466c37e", size = 3960855, upload-time = "2024-10-14T23:37:37.683Z" }, + { url = "https://files.pythonhosted.org/packages/8a/ca/0864176a649838b838f36d44bf31c451597ab363b60dc9e09c9630619d41/uvloop-0.21.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8a375441696e2eda1c43c44ccb66e04d61ceeffcd76e4929e527b7fa401b90fb", size = 3973185, upload-time = "2024-10-14T23:37:40.226Z" }, + { url = "https://files.pythonhosted.org/packages/30/bf/08ad29979a936d63787ba47a540de2132169f140d54aa25bc8c3df3e67f4/uvloop-0.21.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:baa0e6291d91649c6ba4ed4b2f982f9fa165b5bbd50a9e203c416a2797bab3c6", size = 3820256, upload-time = "2024-10-14T23:37:42.839Z" }, + { url = "https://files.pythonhosted.org/packages/da/e2/5cf6ef37e3daf2f06e651aae5ea108ad30df3cb269102678b61ebf1fdf42/uvloop-0.21.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:4509360fcc4c3bd2c70d87573ad472de40c13387f5fda8cb58350a1d7475e58d", size = 3937323, upload-time = "2024-10-14T23:37:45.337Z" }, +] + +[[package]] +name = "yarl" +version = "1.15.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "idna" }, + { name = "multidict" }, + { name = "propcache" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/06/e1/d5427a061819c9f885f58bb0467d02a523f1aec19f9e5f9c82ce950d90d3/yarl-1.15.2.tar.gz", hash = "sha256:a39c36f4218a5bb668b4f06874d676d35a035ee668e6e7e3538835c703634b84", size = 169318, upload-time = "2024-10-13T18:48:04.311Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/4a/59/3ae125c97a2a8571ea16fdf59fcbd288bc169e0005d1af9946a90ea831d9/yarl-1.15.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:9fcda20b2de7042cc35cf911702fa3d8311bd40055a14446c1e62403684afdc5", size = 136492, upload-time = "2024-10-13T18:45:09.962Z" }, + { url = "https://files.pythonhosted.org/packages/f9/2b/efa58f36b582db45b94c15e87803b775eb8a4ca0db558121a272e67f3564/yarl-1.15.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:0545de8c688fbbf3088f9e8b801157923be4bf8e7b03e97c2ecd4dfa39e48e0e", size = 88614, upload-time = "2024-10-13T18:45:12.329Z" }, + { url = "https://files.pythonhosted.org/packages/82/69/eb73c0453a2ff53194df485dc7427d54e6cb8d1180fcef53251a8e24d069/yarl-1.15.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:fbda058a9a68bec347962595f50546a8a4a34fd7b0654a7b9697917dc2bf810d", size = 86607, upload-time = "2024-10-13T18:45:13.88Z" }, + { url = "https://files.pythonhosted.org/packages/48/4e/89beaee3a4da0d1c6af1176d738cff415ff2ad3737785ee25382409fe3e3/yarl-1.15.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d1ac2bc069f4a458634c26b101c2341b18da85cb96afe0015990507efec2e417", size = 334077, upload-time = "2024-10-13T18:45:16.217Z" }, + { url = "https://files.pythonhosted.org/packages/da/e8/8fcaa7552093f94c3f327783e2171da0eaa71db0c267510898a575066b0f/yarl-1.15.2-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:cd126498171f752dd85737ab1544329a4520c53eed3997f9b08aefbafb1cc53b", size = 347365, upload-time = "2024-10-13T18:45:18.812Z" }, + { url = "https://files.pythonhosted.org/packages/be/fa/dc2002f82a89feab13a783d3e6b915a3a2e0e83314d9e3f6d845ee31bfcc/yarl-1.15.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3db817b4e95eb05c362e3b45dafe7144b18603e1211f4a5b36eb9522ecc62bcf", size = 344823, upload-time = "2024-10-13T18:45:20.644Z" }, + { url = "https://files.pythonhosted.org/packages/ae/c8/c4a00fe7f2aa6970c2651df332a14c88f8baaedb2e32d6c3b8c8a003ea74/yarl-1.15.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:076b1ed2ac819933895b1a000904f62d615fe4533a5cf3e052ff9a1da560575c", size = 337132, upload-time = "2024-10-13T18:45:22.487Z" }, + { url = "https://files.pythonhosted.org/packages/07/bf/84125f85f44bf2af03f3cf64e87214b42cd59dcc8a04960d610a9825f4d4/yarl-1.15.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f8cfd847e6b9ecf9f2f2531c8427035f291ec286c0a4944b0a9fce58c6446046", size = 326258, upload-time = "2024-10-13T18:45:25.049Z" }, + { url = "https://files.pythonhosted.org/packages/00/19/73ad8122b2fa73fe22e32c24b82a6c053cf6c73e2f649b73f7ef97bee8d0/yarl-1.15.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:32b66be100ac5739065496c74c4b7f3015cef792c3174982809274d7e51b3e04", size = 336212, upload-time = "2024-10-13T18:45:26.808Z" }, + { url = "https://files.pythonhosted.org/packages/39/1d/2fa4337d11f6587e9b7565f84eba549f2921494bc8b10bfe811079acaa70/yarl-1.15.2-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:34a2d76a1984cac04ff8b1bfc939ec9dc0914821264d4a9c8fd0ed6aa8d4cfd2", size = 330397, upload-time = "2024-10-13T18:45:29.112Z" }, + { url = "https://files.pythonhosted.org/packages/39/ab/dce75e06806bcb4305966471ead03ce639d8230f4f52c32bd614d820c044/yarl-1.15.2-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:0afad2cd484908f472c8fe2e8ef499facee54a0a6978be0e0cff67b1254fd747", size = 334985, upload-time = "2024-10-13T18:45:31.709Z" }, + { url = "https://files.pythonhosted.org/packages/c1/98/3f679149347a5e34c952bf8f71a387bc96b3488fae81399a49f8b1a01134/yarl-1.15.2-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:c68e820879ff39992c7f148113b46efcd6ec765a4865581f2902b3c43a5f4bbb", size = 356033, upload-time = "2024-10-13T18:45:34.325Z" }, + { url = "https://files.pythonhosted.org/packages/f7/8c/96546061c19852d0a4b1b07084a58c2e8911db6bcf7838972cff542e09fb/yarl-1.15.2-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:98f68df80ec6ca3015186b2677c208c096d646ef37bbf8b49764ab4a38183931", size = 357710, upload-time = "2024-10-13T18:45:36.216Z" }, + { url = "https://files.pythonhosted.org/packages/01/45/ade6fb3daf689816ebaddb3175c962731edf300425c3254c559b6d0dcc27/yarl-1.15.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:3c56ec1eacd0a5d35b8a29f468659c47f4fe61b2cab948ca756c39b7617f0aa5", size = 345532, upload-time = "2024-10-13T18:45:38.123Z" }, + { url = "https://files.pythonhosted.org/packages/e7/d7/8de800d3aecda0e64c43e8fc844f7effc8731a6099fa0c055738a2247504/yarl-1.15.2-cp311-cp311-win32.whl", hash = "sha256:eedc3f247ee7b3808ea07205f3e7d7879bc19ad3e6222195cd5fbf9988853e4d", size = 78250, upload-time = "2024-10-13T18:45:39.908Z" }, + { url = "https://files.pythonhosted.org/packages/3a/6c/69058bbcfb0164f221aa30e0cd1a250f6babb01221e27c95058c51c498ca/yarl-1.15.2-cp311-cp311-win_amd64.whl", hash = "sha256:0ccaa1bc98751fbfcf53dc8dfdb90d96e98838010fc254180dd6707a6e8bb179", size = 84492, upload-time = "2024-10-13T18:45:42.286Z" }, + { url = "https://files.pythonhosted.org/packages/46/cf/a28c494decc9c8776b0d7b729c68d26fdafefcedd8d2eab5d9cd767376b2/yarl-1.15.2-py3-none-any.whl", hash = "sha256:0d3105efab7c5c091609abacad33afff33bdff0035bece164c98bcf5a85ef90a", size = 38891, upload-time = "2024-10-13T18:48:00.883Z" }, +] + +[[package]] +name = "zstandard" +version = "0.23.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "cffi", marker = "platform_python_implementation == 'PyPy'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ed/f6/2ac0287b442160a89d726b17a9184a4c615bb5237db763791a7fd16d9df1/zstandard-0.23.0.tar.gz", hash = "sha256:b2d8c62d08e7255f68f7a740bae85b3c9b8e5466baa9cbf7f57f1cde0ac6bc09", size = 681701, upload-time = "2024-07-15T00:18:06.141Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/9e/40/f67e7d2c25a0e2dc1744dd781110b0b60306657f8696cafb7ad7579469bd/zstandard-0.23.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:34895a41273ad33347b2fc70e1bff4240556de3c46c6ea430a7ed91f9042aa4e", size = 788699, upload-time = "2024-07-15T00:14:04.909Z" }, + { url = "https://files.pythonhosted.org/packages/e8/46/66d5b55f4d737dd6ab75851b224abf0afe5774976fe511a54d2eb9063a41/zstandard-0.23.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:77ea385f7dd5b5676d7fd943292ffa18fbf5c72ba98f7d09fc1fb9e819b34c23", size = 633681, upload-time = "2024-07-15T00:14:13.99Z" }, + { url = "https://files.pythonhosted.org/packages/63/b6/677e65c095d8e12b66b8f862b069bcf1f1d781b9c9c6f12eb55000d57583/zstandard-0.23.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:983b6efd649723474f29ed42e1467f90a35a74793437d0bc64a5bf482bedfa0a", size = 4944328, upload-time = "2024-07-15T00:14:16.588Z" }, + { url = "https://files.pythonhosted.org/packages/59/cc/e76acb4c42afa05a9d20827116d1f9287e9c32b7ad58cc3af0721ce2b481/zstandard-0.23.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:80a539906390591dd39ebb8d773771dc4db82ace6372c4d41e2d293f8e32b8db", size = 5311955, upload-time = "2024-07-15T00:14:19.389Z" }, + { url = "https://files.pythonhosted.org/packages/78/e4/644b8075f18fc7f632130c32e8f36f6dc1b93065bf2dd87f03223b187f26/zstandard-0.23.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:445e4cb5048b04e90ce96a79b4b63140e3f4ab5f662321975679b5f6360b90e2", size = 5344944, upload-time = "2024-07-15T00:14:22.173Z" }, + { url = "https://files.pythonhosted.org/packages/76/3f/dbafccf19cfeca25bbabf6f2dd81796b7218f768ec400f043edc767015a6/zstandard-0.23.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fd30d9c67d13d891f2360b2a120186729c111238ac63b43dbd37a5a40670b8ca", size = 5442927, upload-time = "2024-07-15T00:14:24.825Z" }, + { url = "https://files.pythonhosted.org/packages/0c/c3/d24a01a19b6733b9f218e94d1a87c477d523237e07f94899e1c10f6fd06c/zstandard-0.23.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d20fd853fbb5807c8e84c136c278827b6167ded66c72ec6f9a14b863d809211c", size = 4864910, upload-time = "2024-07-15T00:14:26.982Z" }, + { url = "https://files.pythonhosted.org/packages/1c/a9/cf8f78ead4597264f7618d0875be01f9bc23c9d1d11afb6d225b867cb423/zstandard-0.23.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:ed1708dbf4d2e3a1c5c69110ba2b4eb6678262028afd6c6fbcc5a8dac9cda68e", size = 4935544, upload-time = "2024-07-15T00:14:29.582Z" }, + { url = "https://files.pythonhosted.org/packages/2c/96/8af1e3731b67965fb995a940c04a2c20997a7b3b14826b9d1301cf160879/zstandard-0.23.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:be9b5b8659dff1f913039c2feee1aca499cfbc19e98fa12bc85e037c17ec6ca5", size = 5467094, upload-time = "2024-07-15T00:14:40.126Z" }, + { url = "https://files.pythonhosted.org/packages/ff/57/43ea9df642c636cb79f88a13ab07d92d88d3bfe3e550b55a25a07a26d878/zstandard-0.23.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:65308f4b4890aa12d9b6ad9f2844b7ee42c7f7a4fd3390425b242ffc57498f48", size = 4860440, upload-time = "2024-07-15T00:14:42.786Z" }, + { url = "https://files.pythonhosted.org/packages/46/37/edb78f33c7f44f806525f27baa300341918fd4c4af9472fbc2c3094be2e8/zstandard-0.23.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:98da17ce9cbf3bfe4617e836d561e433f871129e3a7ac16d6ef4c680f13a839c", size = 4700091, upload-time = "2024-07-15T00:14:45.184Z" }, + { url = "https://files.pythonhosted.org/packages/c1/f1/454ac3962671a754f3cb49242472df5c2cced4eb959ae203a377b45b1a3c/zstandard-0.23.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:8ed7d27cb56b3e058d3cf684d7200703bcae623e1dcc06ed1e18ecda39fee003", size = 5208682, upload-time = "2024-07-15T00:14:47.407Z" }, + { url = "https://files.pythonhosted.org/packages/85/b2/1734b0fff1634390b1b887202d557d2dd542de84a4c155c258cf75da4773/zstandard-0.23.0-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:b69bb4f51daf461b15e7b3db033160937d3ff88303a7bc808c67bbc1eaf98c78", size = 5669707, upload-time = "2024-07-15T00:15:03.529Z" }, + { url = "https://files.pythonhosted.org/packages/52/5a/87d6971f0997c4b9b09c495bf92189fb63de86a83cadc4977dc19735f652/zstandard-0.23.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:034b88913ecc1b097f528e42b539453fa82c3557e414b3de9d5632c80439a473", size = 5201792, upload-time = "2024-07-15T00:15:28.372Z" }, + { url = "https://files.pythonhosted.org/packages/79/02/6f6a42cc84459d399bd1a4e1adfc78d4dfe45e56d05b072008d10040e13b/zstandard-0.23.0-cp311-cp311-win32.whl", hash = "sha256:f2d4380bf5f62daabd7b751ea2339c1a21d1c9463f1feb7fc2bdcea2c29c3160", size = 430586, upload-time = "2024-07-15T00:15:32.26Z" }, + { url = "https://files.pythonhosted.org/packages/be/a2/4272175d47c623ff78196f3c10e9dc7045c1b9caf3735bf041e65271eca4/zstandard-0.23.0-cp311-cp311-win_amd64.whl", hash = "sha256:62136da96a973bd2557f06ddd4e8e807f9e13cbb0bfb9cc06cfe6d98ea90dfe0", size = 495420, upload-time = "2024-07-15T00:15:34.004Z" }, +]