Skip to main content

A command handler for hikari with a focus on type-safety and correctness.

Project description

The arc logo

PyPI CI Ruff Pyright

A command handler for hikari with a focus on type-safety and correctness.

Installation

To install arc, run the following command:

pip install -U hikari-arc

To check if arc has successfully installed or not, run the following:

python3 -m arc
# On Windows you may need to run:
py -m arc

[!NOTE] hikari-arc requires a Python version of at least 3.10.

If you're just getting started, you may also use the template repository to get started with.

Basic Usage

import hikari
import arc

bot = hikari.GatewayBot("TOKEN") # or hikari.RESTBot
client = arc.GatewayClient(bot) # or arc.RESTClient

@client.include
@arc.slash_command("hi", "Say hi!")
async def ping(
    ctx: arc.GatewayContext,
    user: arc.Option[hikari.User, arc.UserParams("The user to say hi to.")]
) -> None:
    await ctx.respond(f"Hey {user.mention}!")

bot.run()

To get started with arc, see the documentation, or the examples.

Issues and support

For general usage help or questions, see the hikari discord, if you have found a bug or have a feature request, feel free to open an issue!

Contributing

See Contributing.

Acknowledgements

arc is in large part a combination of all the parts I like in other command handlers, with my own spin on it. The following projects have inspired me and aided me greatly in the design of this library:

Links

Project details


Download files

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

Source Distribution

hikari_arc-2.3.0.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

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

hikari_arc-2.3.0-py3-none-any.whl (127.6 kB view details)

Uploaded Python 3

File details

Details for the file hikari_arc-2.3.0.tar.gz.

File metadata

  • Download URL: hikari_arc-2.3.0.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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 hikari_arc-2.3.0.tar.gz
Algorithm Hash digest
SHA256 a7ee2515965e6dc4390dbc3563f569c7e26c729caea68816cec660fd676eb499
MD5 78092d79317f8ad7169d29505860504d
BLAKE2b-256 3277bba7d9a4d0026e8e84aac6aedfba2eb77d7afa1ce4013ad4bddd30334422

See more details on using hashes here.

File details

Details for the file hikari_arc-2.3.0-py3-none-any.whl.

File metadata

  • Download URL: hikari_arc-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 127.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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 hikari_arc-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 38821f305127312b4a9337e5dc25cefaf1bed1561cdd4ad269430e970c97488e
MD5 bc33f491b1ee4d8730d85b05af750f4f
BLAKE2b-256 5df3d218776e22fcab9509a5d285b761d9d35e7bf852ee122e83fba6121a54eb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page