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
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 Distribution
SlyMastodon-0.0.1.tar.gz
(9.9 kB
view hashes)
Built Distribution
Close
Hashes for SlyMastodon-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8d9d34f9c82d919e2e9824af49d45b74f880559a94b811992eb74a152e632f7 |
|
MD5 | 50e61be7539de86ad294766a79954d40 |
|
BLAKE2b-256 | eb9a037c6ce96d317d5511659b6f14c1edbff5a78c5f067b7d80d0212a9ad7e4 |