Installation and Environment#
The first practical question in FinHJB is not about the HJB itself. It is whether you need the published package or the repository checkout.
Use the published package for downstream projects. Use the repository checkout when you need the BCW examples, the source tree, or finhjb-model-coder.
Choose The Right Install Mode#
Published Package#
Choose the published package when you are working in your own project and do not need repository-only materials.
uv add finhjb
pip install finhjb
Repository Checkout#
Choose a repository checkout when you want to:
run
src/example/BCW2011Liquidation.py,run
src/example/BCW2011Refinancing.py,run
src/example/BCW2011Hedging.py,run
src/example/BCW2011CreditLine.py,inspect or modify the source tree,
install and develop the
finhjb-model-coderskill from this repository.
From the repository root:
uv sync
uv run python -c "import finhjb as fjb; print(fjb.__all__[:5])"
If you are on a headless machine or remote server, also set:
export MPLBACKEND=Agg
Repository-Only Material#
The published wheel does not include:
src/example/BCW2011Liquidation.pysrc/example/BCW2011Refinancing.pysrc/example/BCW2011Hedging.pysrc/example/BCW2011CreditLine.pyskills/finhjb-model-coder/
If your task depends on those files, use a repository checkout.
Before You Ask finhjb-model-coder For Runnable Code#
The skill and the Python package are separate objects. The skill can only deliver honestly runnable code once the environment is already in working order.
Use this checklist before asking Codex for runnable code:
if the task depends on repository examples or fixtures, prefer a repository checkout and the repository
uvenvironment,if the task belongs to a downstream project, install
finhjbinside that project withuv add finhjborpip install finhjb,before accepting runnable delivery, confirm a smoke test such as
python -c "import finhjb"oruv run python -c "import finhjb".
If that smoke test fails, the right next step is environment setup, not code generation.