.. image:: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square :target: http://makeapullrequest.com :alt: PRs Welcome
.. image:: https://img.shields.io/badge/license-MIT-blue.svg?style=flat :target: LICENSE :alt: MIT License
.. image:: https://github.com/YuzuRyo61/Misskey.py/actions/workflows/test.yml/badge.svg :target: https://github.com/YuzuRyo61/Misskey.py/actions/workflows/test.yml :alt: Python test
.. image:: https://codecov.io/gh/YuzuRyo61/Misskey.py/branch/main/graph/badge.svg?token=97A1HJHUMW :target: https://codecov.io/gh/YuzuRyo61/Misskey.py :alt: codecov
.. image:: https://readthedocs.org/projects/misskeypy/badge/?version=latest :target: https://misskeypy.readthedocs.io/ja/latest/?badge=latest :alt: Documentation Status
This script is Python library for Misskey Instance.
This library is only available in Python3.
Misskey <https://github.com/misskey-dev/misskey>
is made by syuilo <https://github.com/syuilo>
.
Use pip (Recommend) ^^^^^^^^^^^^^^^^^^^
.. code-block:: bash
pip install Misskey.py
pip3 install Misskey.py
import library (init) ^^^^^^^^^^^^^^^^^^^^^
.. code-block:: python
from misskey import Misskey
mk = Misskey("misskey.io") # Input instance address (If leaved no attribute, it sets "misskey.io")
mk.notes_create( text="Hello Misskey.py!" )
Use token key
.. code-block:: python
from misskey import Misskey
# If use the token
mk = Misskey("misskey.io", i="abcdef123...")
Create token
^^^^^^^^^^^^
.. code-block:: python
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.
Version | Tag | Published |
---|---|---|
4.1.0 | 1yr ago | |
4.0.2 | 1yr ago | |
4.0.1 | 2yrs ago | |
4.0.0 | 2yrs ago |