Skip to main content

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)

Source distribution for mochi-analytics-interactions 0.2.0
File Size Uploaded
mochi_analytics_interactions-0.2.0.tar.gz 11.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mochi-analytics-interactions 0.2.0
File Interpreter ABI Platform
mochi_analytics_interactions-0.2.0-py3-none-any.whl Python 3 none any Details

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 log

Release 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 log

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

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