~957 stars; complements toot; OAuth2 app tokens against the documented, open Mastodon REST API (open protocol / ActivityPub).
Yes, Mastodon.py is open source under the MIT license.
Mastodon.py is free to use.
Yes, Mastodon.py can be self-hosted (the source is available under the MIT license).
~957 stars; complements toot; OAuth2 app tokens against the documented, open Mastodon REST API (open protocol / ActivityPub). No ToS/ban risk — self-hostable, per-instance rate limits. Feature-complete through Mastodon 4.5.