The Misskey library for Python. Misskey is made by syuilo.
Project description
Japanese version available. Click Here.
This script is Python library for Misskey Instance.
This library is only available in Python3.
How to install
Use pip (Recommend)
pip install Misskey.py
# or
pip3 install Misskey.py
usage
import library (init)
from Misskey import Misskey
misskey = Misskey("misskey.io") # Input instance address (If leaved no attribute, it sets "misskey.io")
Use token key
from Misskey import Misskey
# If use the token
misskey = Misskey("misskey.io", i="abcdef123...")
Create token
from Misskey import Misskey
from Misskey.Util import MiAuth
auth = MiAuth("misskey.io", name="Misskey.py")
# Get Authentication URL, then send to client browser
url = auth.getUrl()
# After permission granted, run this function
token = auth.check()
# To use Misskey.py with created token, please below
misskey = Misskey("misskey.io", i=token["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.
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Misskey.py-3.0.0-py3-none-any.whl
(15.5 kB
view hashes)
Close
Hashes for Misskey.py-3.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0dcc23bc3e9df2bb4c2dfa09408a5f8054b2ed190d13d3eec372f1ed321a31e4 |
|
MD5 | 60177cb2ee57d7abd089bd1ee182fc2b |
|
BLAKE2b-256 | 09ab188bf101321177711dfacfc4caa830d42a1dfdb934f5bcd119712b42c4f0 |