Skip to main content
Pre-release

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

Note: this API is still under active daily development, and is in a alpha stage. If you are looking to give feedback, or want to help us out, then feel free to join our Discord server and chat to us. Any help is greatly appreciated, no matter what your experience level may be! :-)


hikari

An opinionated, static typed Discord API for Python3 and asyncio.

Built on good intentions and the hope that it will be extendable and reusable, rather than an obstacle for future development.

import hikari

bot = hikari.Bot(token="...")


@bot.listen()
async def ping(event: hikari.MessageCreateEvent) -> None:
    # If a non-bot user sends a message "hk.ping", respond with "Pong!"

    if not event.message.author.is_bot and event.message.content.startswith("hk.ping"):
        await event.message.reply("Pong!")


bot.run()

Events are determined by the type annotation on the event parameter, or alternatively as a type passed to the @bot.listen() decorator, if you do not want to use type hints.

@bot.listen(hikari.MessageCreateEvent)
async def ping(event):
    ...

Installation

Install hikari from PyPI with the following command:

python -m pip install hikari -U --pre
# Windows users may need to run this instead...
py -3 -m pip install hikari -U --pre

Additional libraries

You may wish to use a command framework on top of Hikari so that you can start writing a bot quickly without implementing your own command handler.

Hikari does not include a command framework by default, so you will want to pick a third party library to do it.

  • lightbulb - a simple and easy to use command framework for Hikari.

Metadata

Release files for hikari 2.0.0.dev64

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hikari 2.0.0.dev64
File Size Uploaded Provenance Actions
hikari-2.0.0.dev64.tar.gz 243.3 kB Without provenance Details for hikari-2.0.0.dev64.tar.gz

Built distribution (wheel)

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

Total release size: 567.6 kB

Release files / hikari-2.0.0.dev64.tar.gz

Download URL hikari-2.0.0.dev64.tar.gz
Size 243.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ba8a572bff872665db59c0f7b9918aa0961c1105448c4950ff63e9d9914c792e
BLAKE2b-256 checksum
How to use checksums
8651ff95d1351b3e7bc5c6570dc74938169a79c8e5ee0cc33c731dc6b02de10d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

Release files / hikari-2.0.0.dev64-py3-none-any.whl

Download URL hikari-2.0.0.dev64-py3-none-any.whl
Size 324.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
39b9d6fd509246c46525500bb18c91a39eeb6b26f99375a5625065b46ace93b7
BLAKE2b-256 checksum
How to use checksums
e6d975604bc076d83ebd6d4aa6c4e5a08e76ea5d4a45f897d705458eb576bd1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

Security for hikari 2.0.0.dev64

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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