feat: add make dump target and dump script for exporting public channels with messages

Introduce a new `dump` make target that invokes `snek.dump` module, and implement the `dump_public_channels` function which iterates over non-private, listed channels, collects their metadata and associated messages, and outputs the result as formatted JSON to stdout.
This commit is contained in:
2025-03-17 23:46:32 +00:00
parent f1f118963f
commit ca5490d558
2 changed files with 20 additions and 0 deletions
+3
View File
@@ -8,6 +8,9 @@ PORT = 8081
python:
$(PYTHON)
dump:
$(PYTHON) -m snek.dump
run:
$(GUNICORN) -w $(GUNICORN_WORKERS) -k aiohttp.worker.GunicornWebWorker snek.gunicorn:app --bind 0.0.0.0:$(PORT) --reload