Skip to main content
Pre-release

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

LiteyukiBot v7 Commands

liteyukibot-v7-commands provides the versioned liteyukibot.commands@1 service and a protocol-neutral EventBus command router.

The parser recognizes configurable non-empty prefixes, command names, aliases, and explicit argument/option schemas. Hierarchical subcommand routing remains a separate alpha step.

[plugins]
enabled = ["liteyukibot.permissions", "liteyukibot.commands"]

[plugins.config."liteyukibot.commands"]
prefixes = ["/"]

Consumers register CommandSpec and a synchronous or asynchronous handler. The handler receives CommandInvocation, including the normalized command and unparsed argument text, and returns the kernel's HandlerResult.

from liteyukibot_commands import (
    ArgumentSpec,
    CommandSchema,
    CommandSpec,
    OptionSpec,
    integer_value,
)

spec = CommandSpec(
    "echo",
    schema=CommandSchema(
        arguments=(ArgumentSpec("text"),),
        options=(OptionSpec("times", aliases=("n",), converter=integer_value, default=1),),
    ),
)

def echo(invocation):
    parsed = invocation.parse()
    return invocation.reply(str(parsed.arguments["text"]) * int(parsed.options["times"]))

Quoting, escaping, --name value, --name=value, short aliases, flags, repeatable options, --, and conversion failures have platform-independent semantics. Parsing errors expose stable codes through CommandParseError.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

liteyukibot_v7_commands-0.2.0a2.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

liteyukibot_v7_commands-0.2.0a2-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file liteyukibot_v7_commands-0.2.0a2.tar.gz.

File metadata

  • Download URL: liteyukibot_v7_commands-0.2.0a2.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for liteyukibot_v7_commands-0.2.0a2.tar.gz
Algorithm Hash digest
SHA256 732ee156db2011b4de64851c154f5177d113d31052e3fe8f86ba82b89cad485c
MD5 b808498b37fbe96e7ccfd80440799c7c
BLAKE2b-256 6bce3091a54a587612cb78b2bbb0598caf436dbf4105c6a2042e30733f1058bb

See more details on using hashes here.

File details

Details for the file liteyukibot_v7_commands-0.2.0a2-py3-none-any.whl.

File metadata

  • Download URL: liteyukibot_v7_commands-0.2.0a2-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for liteyukibot_v7_commands-0.2.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 4606cf25711ac8d6cdc6064e1c1bb04b859d7d46ac38d34528f81fd1c525cbb6
MD5 ec009ab4ac957841fabe1b1ea7237717
BLAKE2b-256 5e34d7d77463c3def966d7e33734e92d4d97ef2840f421100b31ddecace434a8

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0a2 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page