No project description provided
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/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.8.25rc1.tar.gz
(7.1 kB
view hashes)
Built Distribution
Close
Hashes for misspy-2023.8.25rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4f550b280dd8c554dd675f5cf78400181b26d4170370a9accad69051704d9cb |
|
MD5 | a84289f5ccee7ca714b1fac76be844f0 |
|
BLAKE2b-256 | 56dbf8cfbf3774538101092f27f651b93c664b434f0d5b43fb660f88951c045e |