Files
stack/src/lead/explore/__main__.py
kert bb747f272d
Some checks failed
CI / lint (push) Successful in 45s
CI / notebooks-smoke (push) Successful in 1m40s
CI / lint (pull_request) Successful in 28s
CI / test (push) Failing after 3m39s
CI / notebooks-smoke (pull_request) Successful in 1m35s
CI / test (pull_request) Failing after 3m22s
Infra CI / notebooks (push) Successful in 1m0s
Infra CI / zotero (push) Successful in 17s
Infra CI / docs (push) Successful in 20s
Infra CI / api (push) Successful in 1m11s
Infra CI / bcda (push) Successful in 1m31s
Infra CI / mc (push) Successful in 16s
Infra CI / llm (push) Successful in 52s
Infra CI / zotero (pull_request) Successful in 23s
Infra CI / docs (pull_request) Successful in 16s
Infra CI / notebooks (pull_request) Successful in 58s
Infra CI / api (pull_request) Successful in 17s
Infra CI / bcda (pull_request) Successful in 16s
Infra CI / llm (pull_request) Successful in 20s
Infra CI / mc (pull_request) Successful in 17s
feat(lead): load the public mirror and serve the explorer
Local files land in the DuckDB mirror with the source headers kept: group labels, stacked IRS names, headerless code maps, and the HCPCS action key. The read-only explorer and the review page are wired at lead.fhirworx.io. OEWS now includes 2025.
2026-11-02 00:22:35 -05:00

35 lines
971 B
Python

"""``python -m lead.explore`` — the public-data explorer.
The fhirworx theme file ships with ``bcda.ui`` and is passed as
``--theme.base``, so this app and the BCDA manager share one look.
Extra arguments are forwarded to ``streamlit run``.
"""
from __future__ import annotations
import sys
from pathlib import Path
def main(argv: list[str] | None = None) -> int:
from streamlit.web import cli as stcli
from bcda.ui import brand
from lead.explore import app
args = list(sys.argv[1:] if argv is None else argv)
if not any(
item == "--theme.base" or item.startswith("--theme.base=") for item in args
):
args = ["--theme.base", str(brand.THEME_PATH), *args]
sys.argv = ["streamlit", "run", str(Path(app.__file__)), *args]
try:
stcli.main()
except SystemExit as exc:
return int(exc.code or 0)
return 0
if __name__ == "__main__": # pragma: no cover — module entrypoint
sys.exit(main())