High-performance Misskey API framework
Project description
misspy
misspy is a High-performance Misskey API wrapper built with Python.
that implements almost all Misskey APIs point except admin.
supported software
Misskey forks not listed below are supported only in the latest version provided they are API compatible.
- misskey
- misskey (misskey.io)
- firefish (calckey) (Some APIs may not be compatible with some APIs due to missing documentation regarding firefish API specifications.)
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.
This is the implementation as of 2023.9.14. Note that the syntax is different in 2023.10.dev0 and later versions.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for misspy-2023.10.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd6e990303f1bcfb31d26f8af294157e98ffd0aab8d2dcb450a2edf8c3ff94df |
|
MD5 | cbb1c4a512ea0e8cf3a3b3cb03329bb3 |
|
BLAKE2b-256 | 6c2b82099f45f333146c8ff5f1414039ee4b52dbbf8390f9f9fa042ee93f054b |