Skip to main content

No-boilerplate, async and typed Mastodon access 😋

Project description

SlyMastodon for Python

Warning

This package is an early work in progress. Breaking changes may be frequent!

🐍 For Python 3.11+

No-boilerplate, async and typed Mastodon access! 😋

pip install slymastodon

This library does not proivde full coverage. Currently, only the following topics are supported:

  • Getting the current user and other users
  • Submitting, scheduling, retrieving, and deleting post

Example Usage

import asyncio
from SlyMastodon import *

async def main():
    m = Mastodon( "mastodon.skye.vg",
                  OAuth2("app.json", "user.json") )
    
    user = await m.me()

    print(user.at_username) # @dunkyl@skye.vg

asyncio.run(main())

Example CLI Usage

py -m SlyMastodon scaffold mastodon.skye.vg
# ...
py -m SlyMastodon grant

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SlyMastodon-0.0.1.tar.gz (9.9 kB view hashes)

Uploaded Source

Built Distribution

SlyMastodon-0.0.1-py3-none-any.whl (8.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page