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.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.2.0
File Size Uploaded Provenance Actions
hikari_risa-1.2.0.tar.gz 90.4 kB With provenance Details for hikari_risa-1.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 224.7 kB

Release files / hikari_risa-1.2.0.tar.gz

Download URL hikari_risa-1.2.0.tar.gz
Size 90.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8dc0079647c90452b90018f105ddd7b9a936f693dc167147ab05667675fcb918
BLAKE2b-256 checksum
How to use checksums
c0b51b5d5d0856b8c3ca71d92acf550ac6d067caa7de3ff4ab9fb0928f223284
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 12, 2026.

Transparency log

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

Download URL hikari_risa-1.2.0-py3-none-any.whl
Size 134.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a6b4a96447701ac4ee5aae6e09d7fd4f897a25e4fdb44ec2cedca957b009be8
BLAKE2b-256 checksum
How to use checksums
3e7c7d621153d96e93de6c2511e17aa4db045e768dcd02e4e9d7d01ed0baecbe
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 12, 2026.

Transparency log

Security for hikari-risa 1.2.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.2.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 12, 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