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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file SlyMastodon-0.0.1.tar.gz.
File metadata
- Download URL: SlyMastodon-0.0.1.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5e412bc2ae5a62ead3ad0c5535422d58c7a73148e1cd64746da2e79b3799903
|
|
| MD5 |
769594a8bffeb6eec1c2a69e987cfd16
|
|
| BLAKE2b-256 |
6fd9198d54bdc26986887904c9cd065cffa5d61c4a68b16ffc062fe40e1f3bdc
|
File details
Details for the file SlyMastodon-0.0.1-py3-none-any.whl.
File metadata
- Download URL: SlyMastodon-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8d9d34f9c82d919e2e9824af49d45b74f880559a94b811992eb74a152e632f7
|
|
| MD5 |
50e61be7539de86ad294766a79954d40
|
|
| BLAKE2b-256 |
eb9a037c6ce96d317d5511659b6f14c1edbff5a78c5f067b7d80d0212a9ad7e4
|