Skip to main content

MisskeyAPI

Python wrapper for Miskkey API (WIP)

Sample usage:

from misskey.misskeyapi import MisskeyAPI

misskey = MisskeyAPI("https://your.misskey.instance")  

app_secret = misskey.app_create(
    app_name,
    description,
    permission,
    callbackUrl
    )  

response = misskey.auth_session_generate(app_secret)

if response.ok:

    token = response.json()['token']
    url = response.json()['url']
    input(f'open this url in your browser: {url} and accept it. Then press enter')

else:

    print(response)  

response = misskey.auth_session_userkey(app_secret, token)

if response.ok:

    token = response.json()['accessToken']

else:

    print(response.text) 

Store or write down in a safe place this last obtained token to further usage with any of the API endpoints that require it (param i(token)).

description Misskey API endpoint method params
i /api/i account_i i(token)
create app /api/app/create app_create name, description, permission, callbackUrl, session
show app /api/app/show app_show app_id, session
generate auth session /api/auth/session/generate auth_session_generate app_secret
show auth session /api/auth/session/show auth_session_show token
auth session userkey /api/auth/session/userkey auth_session_userkey app_secret, token
create note /api/notes/create notes_create i(token), visibility, text, local_only
create group /api/users/groups/create users_groups_create i(token), groupId
delete group /api/users/groups/delete users_groups_delete i(token), groupId

Metadata

Release files for MisskeyAPI 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for MisskeyAPI 0.1.0
File Size Uploaded
MisskeyAPI-0.1.0.tar.gz 15.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for MisskeyAPI 0.1.0
File Interpreter ABI Platform
MisskeyAPI-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 31.2 kB

Release files / MisskeyAPI-0.1.0.tar.gz

Download URL MisskeyAPI-0.1.0.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
0dff6183f768067651e917ee87f953af795d1cf180648dc4a125f3bb913dc1f9
BLAKE2b-256 checksum
How to use checksums
82cc4cb5e97166cde6285ca508973ac670a3859687d4b724f7ec638c73982dc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release files / MisskeyAPI-0.1.0-py3-none-any.whl

Download URL MisskeyAPI-0.1.0-py3-none-any.whl
Size 15.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
daec845b3f05056ea3c3150c1d5c305c253fa3db6a8029a4d89129f68a2ee9cb
BLAKE2b-256 checksum
How to use checksums
4639ee1229e69989ebcda3c332ca9ac4b852d776c36ada995ce7d170e87c609d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page