Skip to main content

hikari-risa

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://rayakame.github.io/hikari-risa/

License

MIT, see LICENSE.

Metadata

Release files for hikari-risa 1.0.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.0.0
File Size Uploaded Provenance Actions
hikari_risa-1.0.0.tar.gz 75.9 kB With provenance Details for hikari_risa-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 193.9 kB

Release files / hikari_risa-1.0.0.tar.gz

Download URL hikari_risa-1.0.0.tar.gz
Size 75.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3adf3c1b5fdc3c1107b4a9cc4f5056f256cf73dc2ada62596c157c8641eea032
BLAKE2b-256 checksum
How to use checksums
c11a39723a66d4f4737e675109bef1baba24c9747306a9e71b12a9e5f153705e
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 9, 2026.

Transparency log

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

Download URL hikari_risa-1.0.0-py3-none-any.whl
Size 118.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
75b49592c28bc89e50baa1961e1557da2b0716d034204d434a01181e8fe6344a
BLAKE2b-256 checksum
How to use checksums
d7fb0782eeeeb88b76d30aaa3fb390b2fbc1bcf810906ee7c028a6d666b255c8
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 9, 2026.

Transparency log

Security for hikari-risa 1.0.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.0.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 9, 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