Skip to main content

hikari-risa

PyPI Python versions CI Coverage Docs pyright strict Ruff License: MIT Discord

Components V2 views for hikari, with state that survives restarts.

risa is a component handler for hikari, built for Components V2 first. A view keeps its state in the message it renders, or in a store you choose, so a click still lands where it should after a restart.

import risa
from risa import ui


@risa.register(name="counter")
class Counter(risa.View):
    count: int = 0

    def render(self) -> ui.Layout:
        return ui.Container(
            ui.TextDisplay(f"Clicks: **{self.count}**"),
            ui.Row(ui.Button(self.click, label="+1")),
        )

    @risa.handler
    async def click(self, ctx: risa.ComponentContext) -> None:
        self.count += 1
        await ctx.rerender()

Install

risa runs on Python 3.12 to 3.15.

uv add hikari-risa
pip install hikari-risa

Extras: hikari-risa[redis], hikari-risa[postgres] and hikari-risa[radixly].

Documentation

https://hikari-risa.rayakame.dev/

License

MIT, see LICENSE.

Metadata

Release files for hikari-risa 1.3.0

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-risa 1.3.0
File Size Uploaded Provenance Actions
hikari_risa-1.3.0.tar.gz 94.7 kB With provenance Details for hikari_risa-1.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 233.1 kB

Release files / hikari_risa-1.3.0.tar.gz

Download URL hikari_risa-1.3.0.tar.gz
Size 94.7 kB
Tags Source
SHA-256 checksum
How to use checksums
815c5226fa9e6095bf2e62867565a958ff0f9cc839e563de0fd89018f73654d1
BLAKE2b-256 checksum
How to use checksums
793d62c74de422038d40f72a83869d3583bcb36f2b671fe89bbc8556b44c5a00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / hikari_risa-1.3.0-py3-none-any.whl

Download URL hikari_risa-1.3.0-py3-none-any.whl
Size 138.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
33553a4c9c6e48becaa5098ee2f6b1ea156d469d5c3fe9e4cd5856b56d1e4a70
BLAKE2b-256 checksum
How to use checksums
7819606eee371568f0d1a72ee131b55ec93f2847802a45405f09f5bf30265d43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Security for hikari-risa 1.3.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hikari_risa-1.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

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.

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