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.2.1

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.2.1
File Size Uploaded Provenance Actions
hikari_risa-1.2.1.tar.gz 90.6 kB With provenance Details for hikari_risa-1.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 225.3 kB

Release files / hikari_risa-1.2.1.tar.gz

Download URL hikari_risa-1.2.1.tar.gz
Size 90.6 kB
Tags Source
SHA-256 checksum
How to use checksums
47fb2fd4eeb6478d91e0485e701eca5d06048fff9ddfeab3eb3a8ea3fd65d2da
BLAKE2b-256 checksum
How to use checksums
0e488eec6ad57020759e3567c4570dbeaa41197518c0d4a7fb917326b900c1f0
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 16, 2026.

Transparency log

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

Download URL hikari_risa-1.2.1-py3-none-any.whl
Size 134.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d5b5b81bbfabab934c80446fbbbd2af37530d9b26ba6618c39cf9fca80ee347
BLAKE2b-256 checksum
How to use checksums
a0f53d4c4b84dace913d89d22c967a64ca475272ac7e4d9d5b2d2edcbdc2385e
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 16, 2026.

Transparency log

Security for hikari-risa 1.2.1

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.2.1.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 16, 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