Misskey API library for Python with StreamingAPI support.
Project description
misspy
Misskey API library for Python with StreamingAPI support.
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
class StreamingBot(misspy.Bot):
async def on_ready(self):
print("running")
async def on_note(self, message):
print("------------")
print(message.text)
print("------------")
bot = StreamingBot("misskey.io", i=token)
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
Documentation can be found at: https://misspy.sonyakun.xyz/
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.8.27.2.tar.gz
(8.3 kB
view hashes)
Built Distribution
Close
Hashes for misspy-2023.8.27.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4aecb2fc234af8878db07b5c4ba47caabe29fc7811d9251dadb9f82170c5e568 |
|
MD5 | 28354533a4a83e9c0fbc7dc3dfc418ff |
|
BLAKE2b-256 | 886a294ff1353574d15cbd270806ae3c0b2a3c75d5c147ab5d4545a378f21298 |