Files
SocialPub/tools/pasture/town/dialects/__init__.py
T
thepraandClaude Opus 5.5 73c362de96 Town: Pleroma joins, and a rerun finds what it made
Pleroma 2.10.2 runs in the pasture from its OTP release (libvips, the
dedupe question, and hackney pointed at the system CA bundle); its driver is
Akkoma's on its own container and database. The pair passes 241 cells, after
its first run showed Pleroma dropping Follows it could not verify yet.

The PrivaPub driver finds the group an earlier run made instead of failing
on the name; the seeder posts a quote or reply of a post from its own round
after that post.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LsXgEaXee4GCU1hwYgPJXw
2026-10-05 02:53:58 +02:00

33 lines
949 B
Python

"""The platform registry: name -> driver class and its site."""
from dialects.akkoma import Akkoma
from dialects.gts import Gts
from dialects.hollo import Hollo
from dialects.iceshrimp import Iceshrimp
from dialects.lemmy_api import LemmyApi
from dialects.mastodon import Mastodon
from dialects.misskey_api import Misskey, Sharkey
from dialects.pleroma import Pleroma
from dialects.privapub import PrivaPub
DRIVERS = {
"privapub": (PrivaPub, "privapub.test"),
"gts": (Gts, "gts.test"),
"mastodon": (Mastodon, "mastodon.test"),
"misskey": (Misskey, "misskey.test"),
"sharkey": (Sharkey, "sharkey.test"),
"akkoma": (Akkoma, "akkoma.test"),
"lemmy": (LemmyApi, "lemmy.test"),
"hollo": (Hollo, "hollo.test"),
"iceshrimp": (Iceshrimp, "iceshrimp.test"),
"pleroma": (Pleroma, "pleroma.test"),
}
_made = {}
def driver(platform):
if platform not in _made:
cls, host = DRIVERS[platform]
_made[platform] = cls(host)
return _made[platform]