@darius it’s in this module: https://github.com/halcy/Mastodon.py
Here’s the doc on the version function:
https://mastodonpy.readthedocs.io/en/stable/index.html?highlight=Version#mastodon.Mastodon.retrieve_mastodon_version
@darius I’m not sure if they’d want to do it, but they could split the version string from Hometown pretty easily to extract the Mastodon version out of it. I wonder if other forms of Mastodon return similar strings.
Or, Hometown could return just the Mastodon version as a reply to this call, but it’s probably important to identify as Hometown and not Mastodon. Maybe a second API call could be added for the Hometown version. Not necessary for my script