Build your own Mastodon client
Conclusion
As mentioned elsewhere, creating a basic Mastodon reader is dirt simple with Mastodon.py
. Making it attractive is another matter, but that is like everything: Your mileage will vary according to how far you want to go and how many features you want to pack into your client.
However, there is one thing you must always be aware: Different nodes in the Mastodon network implement different versions of the Mastodon server software. And different versions implement slightly different features or implement similar features in slightly different ways. Check what version your instance is running with Mastodon.py
's Mastodon.instance()
function [5].
Also bear in mind that the administrator can enable or lock down certain features, so don't expect all the API's features to work everywhere.
In the next issue, we'll see how to build an application that lets you post toots and even schedule toots for later posting. See you then!
Infos
- Mastodon: https://joinmastodon.org/
- "Tutorial – Mastodon Clients" by Paul Brown, Linux Magazine, issue 228, November 2019, pp. 92-95
- Mastodon.py documentation: https://mastodonpy.readthedocs.io/en/stable/index.html
- "Welcome to the Fediverse" by Paul Brown, Linux Magazine, issue 227, October 2019, pp. 90-94: http://www.linux-magazine.com/Issues/2019/227/Tutorial-Fediverse
- Mastodon.instance: https://mastodonpy.readthedocs.io/en/stable/index.html#reading-data-instances
« Previous 1 2
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Direct Download
Read full article as PDF:
Price $2.95
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
News
-
Mageia 9 Beta 2 is Ready for Testing
The latest beta of the popular Mageia distribution now includes the latest kernel and plenty of updated applications.
-
KDE Plasma 6 Looks to Bring Basic HDR Support
The KWin piece of KDE Plasma now has HDR support and color management geared for the 6.0 release.
-
Bodhi Linux 7.0 Beta Ready for Testing
The latest iteration of the Bohdi Linux distribution is now available for those who want to experience what's in store and for testing purposes.
-
Changes Coming to Ubuntu PPA Usage
The way you manage Personal Package Archives will be changing with the release of Ubuntu 23.10.
-
AlmaLinux 9.2 Now Available for Download
AlmaLinux has been released and provides a free alternative to upstream Red Hat Enterprise Linux.
-
An Immutable Version of Fedora Is Under Consideration
For anyone who's a fan of using immutable versions of Linux, the Fedora team is currently considering adding a new spin called Fedora Onyx.
-
New Release of Br OS Includes ChatGPT Integration
Br OS 23.04 is now available and is geared specifically toward web content creation.
-
Command-Line Only Peropesis 2.1 Available Now
The latest iteration of Peropesis has been released with plenty of updates and introduces new software development tools.
-
TUXEDO Computers Announces InfinityBook Pro 14
With the new generation of their popular InfinityBook Pro 14, TUXEDO upgrades its ultra-mobile, powerful business laptop with some impressive specs.
-
Linux Kernel 6.3 Release Includes Interesting Features
Although it's not a Long Term Release candidate, Linux 6.3 includes features that will benefit end users.