this repo has no description
1#!/usr/bin/env python3
2
3import json
4
5collections = {
6 'Popsky': ('app-popsky', 'pop culture hub'),
7 'PinkSea': ('com-shinolabs-pinksea', 'oekaki on atproto'),
8 'WhiteWind': ('com-whtwnd', 'markdown blog service'),
9 'Smoke Signal': ('events-smokesignal', 'manage events and RSVPs'),
10 'teal.fm': ('fm-teal', 'your music, beautifully tracked'),
11 'Frontpage': ('fyi-unravel-frontpage', 'a decentralised and federated link aggregator'),
12 'Flushes': ('im-flushing', 'The Decentralized Toilet Network of Planet Earth & Simulation 12B'),
13 'Streamplace': ('place-stream', 'live video on the AT Protocol'),
14 'Tangled': ('sh-tangled', 'tightly-knit social coding'),
15 'Spark': ('so-sprk', 'short-form video/photo app'),
16 'Statusphere': ('xyz-statusphere', 'atproto quick start'),
17}
18
19values = []
20defs = []
21
22key_func = lambda obj: str.casefold(obj[0])
23for name, (identifier, description) in sorted(collections.items(), key=key_func):
24 nsid = identifier.replace('-', '.')
25 values.append(identifier)
26 defs.append(dict(
27 blurs = 'none',
28 severity = 'inform',
29 adultOnly = False,
30 identifier = identifier,
31 defaultSetting = 'warn',
32 locales = [dict(
33 lang = 'en',
34 name = name,
35 description = f'{description} ({nsid}.*)',
36 )],
37 ))
38
39doc = {
40 'labelValues': values,
41 'labelValueDefinitions': defs,
42}
43
44print(json.dumps(doc))