#!/usr/bin/env python3 import json collections = [ ('app-popsky', 'Popsky', 'pop culture hub (app.popsky.*)'), ('com-shinolabs-pinksea', 'PinkSea', 'oekaki on atproto (com.shinolabs.pinksea.*)'), ('com-whtwnd', 'WhiteWind', 'markdown blog service (com.whtwnd.*)'), ('events-smokesignal', 'Smoke Signal', 'manage events and RSVPs (events.smokesignal.*)'), ('fm-teal', 'teal.fm', 'your music, beautifully tracked (fm.teal.*)'), ('fyi-unravel-frontpage', 'Frontpage', 'a decentralised and federated link aggregator (fyi.unravel.frontpage.*)'), ('im-flushing', 'Flushes', 'The Decentralized Toilet Network of Planet Earth & Simulation 12B (im.flushing.*)'), ('place-stream', 'Streamplace', 'live video on the AT Protocol (place.stream.*)'), ('sh-tangled', 'Tangled', 'tightly-knit social coding (sh.tangled.*)'), ('so-sprk', 'Spark', 'short-form video/photo app (so.sprk.*)'), ('xyz-statusphere', 'Statusphere', 'atproto quick start (xyz.statusphere.*)'), ] values = [] defs = [] for (identifier, name, description) in collections: values.append(identifier) defs.append(dict( blurs = 'none', severity = 'inform', adultOnly = False, identifier = identifier, defaultSetting = 'warn', locales = [dict( lang = 'en', name = name, description = description, )], )) doc = { 'labelValues': values, 'labelValueDefinitions': defs, } print(json.dumps(doc))