Skip to main content

Misskey API library for Python with StreamingAPI support.

Project description

misspy

Misskey API library for Python with StreamingAPI support.

supported software

Misskey forks other than misskey-dev/misskey are basically only the latest versions are supported.

supported misskey versions

MiAuth is not supported before 12.27.0.

version support MiAuth
v11 before (and fork)
v12.27.0 before ⭕️
v12.27.0 later ⭕️ ⭕️
v13 later ⭕️ ⭕️

example

Other examples can be found in the examples directory.

send note

import misspy

mi = misspy.Bot(address, i=token)

Output notes text to the console

import misspy
from misspy.ext import MiAuth


class StreamingBot(misspy.Bot):
    async def on_ready(self):
        print("running")

    async def on_note(self, message):
        print("------------")
        print(message.text)
        print("------------")


bot = StreamingBot("misskey.io", i=token)
bot.run()

MiAuth

from misspy.ext import MiAuth

mia = MiAuth("misskey.io")
print(mia.generate_url("example app"))
while True:
    input("enter to continue...")
    try:
        token = mia.check()
        break
    except misspy.MiAuthFailed:
        pass
print(token)

docs

Documentation can be found at: https://misspy.sonyakun.xyz/

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

misspy-2023.8.27.dev1.tar.gz (13.4 kB view hashes)

Uploaded Source

Built Distribution

misspy-2023.8.27.dev1-py3-none-any.whl (15.9 kB view hashes)

Uploaded Python 3

Supported by

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