High-performance Misskey API framework
Project description
misspy
[!IMPORTANT] A major rewrite is currently underway here. The current version will undergo only minimal maintenance and bug fixes.
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
bot = commands.Bot("misskey.example", "token")
async def on_ready():
print("loggedin: ")
print("id: "+ bot.id)
print("name: "+ bot.name)
print("username: "+ bot.username)
await bot.connect(misspy.localTimeline) # supported args: misspy.homeTimeline, misspy.localTimeline, misspy.socialTimeline or misspy.hybridTimeline, misspy.globalTimeline and Conventional Method
async def on_note(ctx, message):
if message["text"] == "test":
await ctx.add_reaction(":test:")
print("------------")
print(message)
print("------------")
bot.add_hook("ready", on_ready)
bot.add_hook("note", on_note)
bot.run()
MiAuth
from misspy 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 | ❌ | ⭕ | ⭕ |
supported misspy version | ❌ | 2023.8.24rc1~latest | latest |
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
Built Distribution
File details
Details for the file misspy-2024.4.1.tar.gz
.
File metadata
- Download URL: misspy-2024.4.1.tar.gz
- Upload date:
- Size: 23.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.5.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1faa33941131ca9b002319c93632e7e484a0f1d15261a901519c89adb42d32a |
|
MD5 | 94501bc82b0d418092c1bcfc5a21fb58 |
|
BLAKE2b-256 | c38e931ff922a324ed3cc2fa5658d7f7b3b9c0e220325d58bb23947b04275513 |
File details
Details for the file misspy-2024.4.1-py3-none-any.whl
.
File metadata
- Download URL: misspy-2024.4.1-py3-none-any.whl
- Upload date:
- Size: 30.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.5.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5610b2a797daab194adda905c4c832c5664b1712776237cbf02b9ada16557539 |
|
MD5 | a5e35f505d885f5facdfb056967eae9d |
|
BLAKE2b-256 | 4401800af824576950171fded6904b170a6fb12c6a4afa604f9fc12687ba250f |