High-performance Misskey API framework
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.)
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)
Other
docs
Documentation can be found at: https://docs.misspy.xyz/
supported python version
below 3.7 | 3.8 ~ 3.11 | 3.12 | |
---|---|---|---|
supported | ❌ | ⭕ | ❌ (Beta) |
supported misspy version | ❌ | 2023.8.24rc1~latest | 2023.11.0-beta.1 |
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).
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.4.tar.gz
(14.3 kB
view hashes)
Built Distribution
misspy-2023.10.4-py3-none-any.whl
(20.2 kB
view hashes)
Close
Hashes for misspy-2023.10.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b5f82a190652c2bade18f0e294587c1b91276c0e25c7bb03d0c264da662441a |
|
MD5 | 34f298d3f86a19e53b00a956651b9339 |
|
BLAKE2b-256 | f50f81921793a9799c2f995d553c74595cce38095c3d5f42fd93988c63ab180c |