mochi-analytics-interactions
interactions.py adapter for Mochi analytics.
Install
pip install mochi-analytics mochi-analytics-interactions discord-py-interactions
Usage
import interactions
from mochi_analytics import MochiClient
from mochi_analytics_interactions import attach_mochi
mochi = MochiClient(url="https://mochi.example.com", api_key="mochi_sk_...")
client = interactions.Client()
detach = attach_mochi(client, mochi)
client.start("...")
Commands are recorded on CommandCompletion, which interactions.py dispatches
in a finally — so it fires for failures too, and a preceding CommandError is
what marks an invocation unsuccessful. Neither event reports how long the
command took, so durationMs is omitted unless you pass
auto_track_commands=False and wrap your callbacks with wrap_command.
An AutoShardedClient sends one snapshot per shard, each carrying that shard's
own guild count.
See the interactions.py guide for the full documentation.
License
Apache-2.0
Metadata
Release files for mochi-analytics-interactions 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mochi_analytics_interactions-0.2.0.tar.gz | 11.1 kB | With provenance | Details for mochi_analytics_interactions-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mochi_analytics_interactions-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for mochi_analytics_interactions-0.2.0-py3-none-any.whl |
Total release size: 20.7 kB
Release files / mochi_analytics_interactions-0.2.0.tar.gz
| Download URL | mochi_analytics_interactions-0.2.0.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
caaabc6284013a3ec50710f7fc1b7059baf7e75dc31b315a5e01736cb05b4aaf
|
|
BLAKE2b-256 checksum How to use checksums |
50fa97501d77c9ee0ead497459ce7df25a239eaa8923ef9f5d07a1aca4aeaeda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jul 10, 2026.
Transparency logRelease files / mochi_analytics_interactions-0.2.0-py3-none-any.whl
| Download URL | mochi_analytics_interactions-0.2.0-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9e8206ce7584bbd2c15057c7376cfa3511439b963f2990cb904b80284993abfb
|
|
BLAKE2b-256 checksum How to use checksums |
d158e20b607d798666839fbe2979640511fe47544800662b16cb24efc56ba65d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jul 10, 2026.
Transparency logSecurity for mochi-analytics-interactions 0.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.
Attestation for mochi_analytics_interactions-0.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 Jul 10, 2026.
Transparency logA 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.