Skip to main content

Py-cord adapter for Mochi - auto-instruments commands, guild joins/leaves, and health snapshots

Project description

mochi-analytics-pycord

Py-cord adapter for Mochi analytics.

Py-cord installs itself under the discord import name, exactly as discord.py does, so the two cannot coexist in one environment. Install mochi-analytics-pycord or mochi-analytics-discordpy, never both.

Install

pip install mochi-analytics mochi-analytics-pycord py-cord

Usage

import discord
from mochi_analytics import MochiClient
from mochi_analytics_pycord import attach_mochi

mochi = MochiClient(url="https://mochi.example.com", api_key="mochi_sk_...")

bot = discord.Bot(intents=discord.Intents.default())
detach = attach_mochi(bot, mochi)

An AutoShardedClient sends one snapshot per shard, each carrying that shard's own guild count.

See the Py-cord guide for the full documentation.

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mochi_analytics_pycord-0.2.0.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mochi_analytics_pycord-0.2.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file mochi_analytics_pycord-0.2.0.tar.gz.

File metadata

  • Download URL: mochi_analytics_pycord-0.2.0.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mochi_analytics_pycord-0.2.0.tar.gz
Algorithm Hash digest
SHA256 98a29f6b6b33b459c818d967cee0f87866c261794d941c4c38aa55a685cd31fc
MD5 eeb42bf9d1ef3e7dbe85c3c3df9324a4
BLAKE2b-256 1612095dd34031edf5dfe23395727d49652ba4f15020e9a27a2860d828dc83a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for mochi_analytics_pycord-0.2.0.tar.gz:

Publisher: release-please.yml on mochi-analytics/mochi-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mochi_analytics_pycord-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mochi_analytics_pycord-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad5c4a0c5eeefa20f214cc9b1ca5a1ccb0e3ae8b4d7ff7207941c2bfe2fa116e
MD5 af5eca06ccc51b08a89225a37da1588f
BLAKE2b-256 e787e68a21993b4c6062d11d1d6ebc7b5c78363a83a5a02db7d01e3d9d9d5324

See more details on using hashes here.

Provenance

The following attestation bundles were made for mochi_analytics_pycord-0.2.0-py3-none-any.whl:

Publisher: release-please.yml on mochi-analytics/mochi-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page