mp
Misskey.py
pypi i Misskey.py
mp

Misskey.py

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

by YuzuRyo61

4.1.0 (see all)License:MIT
pypi i Misskey.py
Readme

Misskey.py

.. 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>.


How to install

Use pip (Recommend) ^^^^^^^^^^^^^^^^^^^

.. code-block:: bash

pip install Misskey.py

or

pip3 install Misskey.py

usage

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")

Let's note!

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.
VersionTagPublished
4.1.0
1yr ago
4.0.2
1yr ago
4.0.1
2yrs ago
4.0.0
2yrs ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate