Skip to main content

misspy is Misskey API Library Written in Python.

Project description

misspy

Supported Python Version PyPI version PyPI Downloads Code style: black Poetry Quality Gate Status Upload Python Package

Misskey API library for Python with StreamingAPI support.

supported software

Misskey forks not listed below are supported only in the latest version provided they are API compatible.

supported misskey versions

This library is developed based on the API specification for Misskey v13 or later, so v12 and earlier are not supported (but you may still be able to use this library).

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
from misspy.hook import hook

bot = misspy.Bot("misskey.io", i=token)

async def on_ready():
    bot.connect("localTimeline")
    print("running")

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


hook.add("note", on_note)
hook.add("ready", on_ready)
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

Document is Multi-Language supported. (English, 日本語)

Documentation can be found at: https://misspy.sonyakun.com/docs

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.9.17rc1.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

misspy-2023.9.17rc1-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file misspy-2023.9.17rc1.tar.gz.

File metadata

  • Download URL: misspy-2023.9.17rc1.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/6.2.0-1012-azure

File hashes

Hashes for misspy-2023.9.17rc1.tar.gz
Algorithm Hash digest
SHA256 6dafdb35bb72c3a0314d24dc6ecad24aeeba337afc876d5c230f326860d81cfa
MD5 7ebbac04b9fcb7e8646e75352c3ea90b
BLAKE2b-256 143d68ea314f54962cecde87a49916b4fcaf6ecddfd21f9ed4a909082f20af70

See more details on using hashes here.

File details

Details for the file misspy-2023.9.17rc1-py3-none-any.whl.

File metadata

  • Download URL: misspy-2023.9.17rc1-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/6.2.0-1012-azure

File hashes

Hashes for misspy-2023.9.17rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 ed899f488b2ee03838cb2ac12b92c6a1cf990862d519afe5bfeba71e243ebb45
MD5 34d9039a10cba1dff131eadcf9a5f04f
BLAKE2b-256 d9046acfa96e52e39965572d9ad97ef3c7d19fd6ee4891fdf7f4253e096efd84

See more details on using hashes here.

Supported by

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