Skip to main content

Wrapper for the moonlist api

Wrapper for the moonlist api with webhook and auto post data supporting

How to install?

From pip:

pip install moonlistclient

From source:

pip install git+https://github.com/VadyChel/MoonlistClient

Examples

Simple usage:

from moonlistclient import MoonlistClient, HTTPException
from discord.ext import commands, tasks


class MLCExample(commands.Cog):
    def __init__(self, bot):
        self.bot = bot
        self.mclient = MoonlistClient(
            bot=self.bot,
            api_key="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
            autopost=False        
        )
        self.post_stat_loop.start()

    @tasks.loop(hours=3)
    async def post_stat_loop(self):
        await self.bot.wait_until_ready()
        try:
            await self.mclient.post_stat()
        except HTTPException:
            print("Failed to post bot stat")


def setup(client):
    client.add_cog(MLCExample(client))

Other examples you can see in examples directory

Release files for moonlistclient 0.6.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for moonlistclient 0.6.11
File Size Uploaded
moonlistclient-0.6.11.tar.gz 18.8 kB Details

Release files / moonlistclient-0.6.11.tar.gz

Download URL moonlistclient-0.6.11.tar.gz
Size 18.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7314ba0889e2eef545bd59896ac87869046d2be9215a44387547b538ec75b52f
BLAKE2b-256 checksum
How to use checksums
2d07e75adc894a4d112fe90841f6763253b25a70534914ced0d544ebf5f62e2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.6.11 This release

1 release file

0.6.10

1 release file

0.6.9

1 release file

0.6.8

1 release file

0.6.7

1 release file

0.6.6

1 release file

0.6.5

1 release file

0.6.4

1 release file

0.6.2

1 release file

0.6.1

1 release file

0.6

1 release file

0.5.3

1 release file

0.5.2

1 release file

0.5.1

1 release file

0.5

1 release file

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