poppingmoon / Misskey.py

The Misskey API library for Python. Misskey is made by syuilo. 🐑( '-' 🐑 )hug punch!!!!

Home Page:https://misskeypy.readthedocs.io/ja/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Misskey.py

PRs Welcome MIT License Python test codecov Documentation Status

This script is Python library for Misskey Instance.

This library is only available in Python3.

Misskey is made by syuilo.


How to install

Use pip (Recommend)

pip install Misskey.py
# or
pip3 install Misskey.py

usage

import library (init)

from misskey import Misskey

mk = Misskey("misskey.io")  # Input instance address (If leaved no attribute, it sets "misskey.io")

# Let's note!
mk.notes_create(
    text="Hello Misskey.py!"
)

Use token key

from misskey import Misskey

# If use the token
mk = Misskey("misskey.io", i="abcdef123...")

Create token

from misskey import Misskey, MiAuth

auth = MiAuth("misskey.io", name="misskey.py")
# Get Authentication URL, then send to client browser
url = auth.generate_url()
# After permission granted, run this function
token = auth.check()
# To use misskey.py with created token, please below
misskey = Misskey("misskey.io", i=token)  # or: misskey = misskey("misskey.io", i=auth.token)

Other

Pull requests are HUGE WELCOME!

We hope you will contribute to the completion of the library by all means.

Donation

We are accepting at GitHub Sponsors!

Donors

About

The Misskey API library for Python. Misskey is made by syuilo. 🐑( '-' 🐑 )hug punch!!!!

https://misskeypy.readthedocs.io/ja/latest/

License:MIT License


Languages

Language:Python 100.0%