hikari adapter for Mochi - auto-instruments commands, guild joins/leaves, and health snapshots
Project description
mochi-analytics-hikari
hikari adapter for Mochi analytics.
Install
pip install mochi-analytics mochi-analytics-hikari hikari
Usage
import hikari
from mochi_analytics import MochiClient
from mochi_analytics_hikari import attach_mochi
mochi = MochiClient(url="https://mochi.example.com", api_key="mochi_sk_...")
bot = hikari.GatewayBot(token="...")
detach = attach_mochi(bot, mochi)
bot.run()
hikari runs every shard inside one process, so one snapshot is sent per shard, each carrying that shard's own guild count.
hikari has no built-in command framework, so attach_mochi records commands
straight off InteractionCreateEvent. For accurate success and duration,
pass auto_track_commands=False and wrap your handlers with wrap_command.
See the hikari guide for the full documentation.
License
Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mochi_analytics_hikari-0.2.0.tar.gz.
File metadata
- Download URL: mochi_analytics_hikari-0.2.0.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa796d07078ec9173518037839ce9b1b84666e607242914942d0c978d1ee156c
|
|
| MD5 |
03ea918db56e6d4b77b6802caa464772
|
|
| BLAKE2b-256 |
93ea99bfe9c5dc8260d96a6cffcd421060872e52ffcec70e5e9edd0f8f6c48a0
|
Provenance
The following attestation bundles were made for mochi_analytics_hikari-0.2.0.tar.gz:
Publisher:
release-please.yml on mochi-analytics/mochi-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mochi_analytics_hikari-0.2.0.tar.gz -
Subject digest:
aa796d07078ec9173518037839ce9b1b84666e607242914942d0c978d1ee156c - Sigstore transparency entry: 2134571228
- Sigstore integration time:
-
Permalink:
mochi-analytics/mochi-py@688d8ff096fcbe551a9f2b5550a15277a6bdc3d2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/mochi-analytics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-please.yml@688d8ff096fcbe551a9f2b5550a15277a6bdc3d2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mochi_analytics_hikari-0.2.0-py3-none-any.whl.
File metadata
- Download URL: mochi_analytics_hikari-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ecffe0401ec3ab46988b78863796d9f005e8042ee4def65142306f163457728a
|
|
| MD5 |
dec7c5180e4c6f5cfa6760ed2c107b57
|
|
| BLAKE2b-256 |
67bfa62fdf3b1afca3a3d0424247854783dbbed27d285cafcefeec288577d781
|
Provenance
The following attestation bundles were made for mochi_analytics_hikari-0.2.0-py3-none-any.whl:
Publisher:
release-please.yml on mochi-analytics/mochi-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mochi_analytics_hikari-0.2.0-py3-none-any.whl -
Subject digest:
ecffe0401ec3ab46988b78863796d9f005e8042ee4def65142306f163457728a - Sigstore transparency entry: 2134571386
- Sigstore integration time:
-
Permalink:
mochi-analytics/mochi-py@688d8ff096fcbe551a9f2b5550a15277a6bdc3d2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/mochi-analytics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-please.yml@688d8ff096fcbe551a9f2b5550a15277a6bdc3d2 -
Trigger Event:
push
-
Statement type: