From afff539786d8d8752aa264cae8565af578a01e34 Mon Sep 17 00:00:00 2001 From: Jack Orlowski-Scherer Date: Tue, 21 Jul 2026 14:00:20 -0400 Subject: [PATCH] fix: add command line interface and have textingest actually run --- pyproject.toml | 1 + socat/ingest/textingest.py | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3126ba6..58c33cb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,6 +48,7 @@ socat-act-fits = "socat.ingest.actfits:main" socat-websky-csv = "socat.ingest.webskycsv:main" socat-migrate = "socat.migrate:migrate" socat-jpl-parqet = "socat.ingest.jplparquet:main" +socat-text = "socat.ingest.textingest:main" [tool.ruff.lint] preview = true diff --git a/socat/ingest/textingest.py b/socat/ingest/textingest.py index a11a64e..4196483 100644 --- a/socat/ingest/textingest.py +++ b/socat/ingest/textingest.py @@ -40,7 +40,9 @@ def ingest_text_file( ] table["name"] = names - table["monitored"] = [bool(monitored.decode("utf-8")) for monitored in table["monitored"]] + table["monitored"] = [ + bool(monitored.decode("utf-8")) for monitored in table["monitored"] + ] number_of_sources = 0 @@ -114,3 +116,7 @@ def main(): # pragma: no cover pickle.dump(client, handle) print(f"Wrote serialized socat instance to {output_path}") + + +if __name__ == "__main__": # pragma: no cover + main()