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.4.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.4.0
File Size Uploaded Provenance Actions
hikari_risa-1.4.0.tar.gz 96.1 kB With provenance Details for hikari_risa-1.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 236.0 kB

Release files / hikari_risa-1.4.0.tar.gz

Download URL hikari_risa-1.4.0.tar.gz
Size 96.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9cc0c4d8a09e0bb5878128bf5de5622b09a9a382bcc8febee0e586f222113485
BLAKE2b-256 checksum
How to use checksums
0ddc32e915d73ca307aaf5665c02b54465ce1b10d46048e252f5ca68fe084600
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 27, 2026.

Transparency log

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

Download URL hikari_risa-1.4.0-py3-none-any.whl
Size 139.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3dd609baadaf0bc9b3f4b7857c0793c0a36b9faf51ef1d6e8d3f6aa60ac524ab
BLAKE2b-256 checksum
How to use checksums
096a6a46c50d4b0865b1d4bb2650cd84e5c9daf296bfbc80338588ad0e927866
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 27, 2026.

Transparency log

Security for hikari-risa 1.4.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.4.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 27, 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