<div class="section-label"><span class="num">01</span> Python Client</div> <div class="section-title">The v2 pip package for this <em>API</em>.</div> `csa_prediction_engine` is the current Python client for **API v2**. It posts Grid, MaxFit, and PSR jobs and waits for results, including single-task, multi-y, and multi-theta work. A new client for the rust-powered API is in development. Until v3 is published, use this package or call the REST endpoints directly. > [!note] > This is the hosted v2 client (`pip install csa_prediction_engine`). It is not the local [[Install/Python|rbp-engine]] install. For on-premise math, see [[Install/Get Started|Install]]. <div class="pillars"> <div class="pillar"> <div class="pillar-num">↳ 01</div> <div class="pillar-title">predict_grid</div> <div class="pillar-text">Composite forecast across attribute combinations and thresholds.</div> </div> <div class="pillar"> <div class="pillar-num">↳ 02</div> <div class="pillar-title">predict_maxfit</div> <div class="pillar-text">Search thresholds for the strongest (adjusted) fit.</div> </div> <div class="pillar"> <div class="pillar-num">↳ 03</div> <div class="pillar-title">predict_psr</div> <div class="pillar-text">Partial-sample regression at thresholds you choose.</div> </div> </div> <p>&nbsp;</p> <div class="section-label"><span class="num">02</span> Install</div> Python **3.10** or **3.11** is required. Newer versions (3.12+) are not supported by this v2 package. ```bash pip install csa_common_lib csa_prediction_engine ``` `csa_common_lib` is a required dependency: option classes, receipts, and result structures. See [[API/Python API Client/Common Lib/Overview|Common Lib]]. The package layout: ```text csa_prediction_engine/ ├── api_client.py ├── bin/ ├── helpers/ ├── parallel/ └── __init__.py ``` You normally import from [[API/Python API Client/API Client/Overview|api_client]] only. <p>&nbsp;</p> <div class="section-label"><span class="num">03</span> In this section</div> <div class="solution-list"> <div class="solution-row"> <div class="solution-num">/01</div> <div class="solution-title"><a href="/API/Python%20Client/API%20Client">API Client</a></div> <div class="solution-desc">predict_grid, predict_maxfit, and predict_psr — including multi-y and multi-theta rules.</div> </div> <div class="solution-row"> <div class="solution-num">/02</div> <div class="solution-title"><a href="/API/Python%20Client/Common%20Lib">Common Lib</a></div> <div class="solution-desc">Shared option, receipt, and result classes.</div> </div> <div class="solution-row"> <div class="solution-num">/03</div> <div class="solution-title"><a href="/API/Python%20Client/Prediction%20Options">Prediction Options</a></div> <div class="solution-desc">PredictionOptions, MaxFitOptions, and GridOptions for the v2 client.</div> </div> <div class="solution-row"> <div class="solution-num">/04</div> <div class="solution-title"><a href="/API/Python%20Client/Concurrency">Concurrency</a></div> <div class="solution-desc">freeze_support on Windows and Apple Silicon.</div> </div> <div class="solution-row"> <div class="solution-num">/05</div> <div class="solution-title"><a href="/API/Python%20Client/Quickstart">Quickstart</a></div> <div class="solution-desc">Example scripts on GitHub.</div> </div> </div> Support: <span class="mono">[email protected]</span> <div class="btn-row center"> <a class="btn-primary" href="/API/Python%20Client/API%20Client">API Client</a> <a class="btn-ghost" href="/API/Python%20Client/Quickstart">Quickstart</a> </div>