Repository navigation
Add async chart job queue, multi-CSV analysis improvements, desktop UI, and tests - #27
Conversation
💡 Codex ReviewLines 43 to 44 in 1a6398b
Lines 172 to 173 in 1a6398b The First_two/bitnet_tools/multi_csv.py Line 446 in 1a6398b
Lines 76 to 79 in 1a6398b
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Motivation
Description
bitnet_tools/web.pywith helperssubmit_chart_job(files)andget_chart_job(job_id)and HTTP endpointsPOST /api/charts/jobsandGET /api/charts/jobs/<job_id>(thread pool + per-job input/output dirs under.bitnet_cache/chart_jobs).bitnet_tools/visualize.pyto create sampled charts per CSV and integrated it into web/UI and CLI chart flows viacreate_multi_charts.bitnet_tools/multi_csv.pyfor streaming, memory-bounded multi-file profiling, schema-drift detection, insights, caching, and markdown/report builders; exposedanalyze_multiple_csv,build_multi_csv_markdown, andresult_to_json.bitnet_tools/analysis.pyto use streaming summarization (summarize_reader) with O(1) memory numeric aggregations and addedbuild_markdown_report.bitnet_tools/desktop.pyand top-levelbitnet_desktop.pyw, plus adoctorhelper inbitnet_tools/doctor.pyto collect environment info.bitnet_tools/cli.py) with commands:multi-analyze,report,desktop, anddoctor, and wiring for chart generation and report output.bitnet_tools/ui/*) to support multi-CSV upload, dashboard rendering, and controls to run the new flows.tests/*) and a.gitignoreandpyprojectscript entry for the desktop command.Testing
pytest -qand all tests passed:24 passed.tests/test_web.pyto validate chart job submission/completion and not-found behavior, andtests/*coverage formulti_csv,visualize,cli, andanalysisreporting features which passed.analyze_multiple_csv(..., max_workers=1)vsmax_workers=4on synthesized CSVs which showedworkers=1performed at least as well in this environment, indicating that parallelism tuning should be data- and environment-dependent rather than blindly increasing worker counts.Codex Task