misspy is Misskey API Library Written in Python.
Project description
misspy
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.
- 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.
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
misspy-2023.10.dev0.tar.gz
(16.3 kB
view hashes)
Built Distribution
Close
Hashes for misspy-2023.10.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e381512de843f345aeb04a853c83fe3baba00a4957eddda69218d5d13a38c6d |
|
MD5 | 5d39ff912d37693f5c315d5284f106df |
|
BLAKE2b-256 | e2aacfbbe9deb66b97369eba6ff91be18675e5b5520164ef87e2248c98593f6f |