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.0a1.tar.gz (9.2 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.0a1-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: liteyukibot_v7_commands-0.2.0a1.tar.gz
  • Upload date:
  • Size: 9.2 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.0a1.tar.gz
Algorithm Hash digest
SHA256 45519a3526d4a159988d1cdcc5c7702ae8ab4ae87ee1f15ccf850e587ba0e412
MD5 84eac7e01cb9ef6c8b5bd803fdab5bb9
BLAKE2b-256 24e79c0589c501a7371fe758ceda39ea5ea84ae748767809dd4b139eacaad5c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: liteyukibot_v7_commands-0.2.0a1-py3-none-any.whl
  • Upload date:
  • Size: 12.7 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.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 38450f9e111fba7a78b46ebbb43249045c6244d0aa91f2a67240d913a35d2c88
MD5 f073d0a1f8a379419837052fe3061cb9
BLAKE2b-256 9f26fe72c51c6b720c4128f4b3816abf7d7eadba0978bf1644ad306319758734

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0a1 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