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 'Roomy': ('chat-roomy', 'group chat on atproto'),
18 'ATFile': ('blue-zio-atfile', 'store and retrieve files'),
19 # 'name': ('ns-id', 'description'),
20}
21
22values = []
23defs = []
24
25key_func = lambda obj: str.casefold(obj[0])
26for name, (identifier, description) in sorted(collections.items(), key=key_func):
27 nsid = identifier.replace('-', '.')
28 values.append(identifier)
29 defs.append(dict(
30 blurs = 'none',
31 severity = 'inform',
32 adultOnly = False,
33 identifier = identifier,
34 defaultSetting = 'warn',
35 locales = [dict(
36 lang = 'en',
37 name = name,
38 description = f'{description} ({nsid}.*)',
39 )],
40 ))
41
42doc = {
43 'labelValues': values,
44 'labelValueDefinitions': defs,
45}
46
47print(json.dumps(doc))