Cambridge Sports Analytics Prediction Engine
The CSA Prediction Engine is the official Python client for interacting with the Cambridge Sports Analytics (CSA) API. It enables relevance-based predictions using flexible configurations, including support for batch jobs, grid evaluations, and multi-task prediction workflows.
Source code: github.com/CambridgeSportsAnalytics/csa_prediction_engine
Key features
- Single task predictions: One dependent variable and one set of circumstances.
- Multi-y predictions: Multiple dependent variables with a single set of circumstances.
- Multi-theta predictions: One dependent variable with multiple sets of circumstances.
- Relevance-based grid predictions: Optimal composite prediction across thresholds and variable combinations.
- Grid singularity predictions: Highest adjusted-fit prediction from the grid.
- MaxFit predictions: Best-fit model from adjusted relevance.
Installation
Install from PyPI:
pip install csa-prediction-engine
Requires Python 3.11.
Package layout
csa_prediction_engine/
├── api_client.py # Public API: predict_*, decorators, quota helpers
├── bin/
│ ├── _workers.py # Worker implementations for prediction tasks
│ └── single_tasks.py # Single-task CLI-style entry helpers
├── helpers/
│ ├── _auth_manager.py # API authentication
│ ├── _details_handler.py # Model details retrieval and storage
│ ├── _payload_handler.py # Request payloads and endpoint routing
│ ├── _postmaster.py # Internal HTTP / communication helpers
│ └── _router.py # Task routing from configuration
├── parallel/
│ ├── _dispatchers.py # Parallel task dispatch
│ ├── _threaded_predictions.py # Threaded async prediction runs
│ └── _workers.py # Parallel worker processes
├── version.py # Package version string
└── __init__.py
Documentation and examples
For OpenAPI specs, quickstart examples, and tutorials, see the companion repository:
CSA Prediction Engine quickstart
Contributing
Bug reports and feature requests are welcome. Reach out to the team at support@csanalytics.io.
License
Copyright (c) 2023–2026 Cambridge Prediction Analytics, LLC. All rights reserved.
Metadata
Release files for csa-prediction-engine 2.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| csa_prediction_engine-2.5.1.tar.gz | 25.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| csa_prediction_engine-2.5.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 87.8 kB
Release files / csa_prediction_engine-2.5.1.tar.gz
| Download URL | csa_prediction_engine-2.5.1.tar.gz |
|---|---|
| Size | 25.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0a522924749ef27e2f998406a600a86d1c245c269f6aefa4216676316f45720
|
|
BLAKE2b-256 checksum How to use checksums |
a6c427828c5b273fd9f06bca12c82eb584e872000c10dc9305a8f8cbb1a85509
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.6
|
Release files / csa_prediction_engine-2.5.1-py3-none-any.whl
| Download URL | csa_prediction_engine-2.5.1-py3-none-any.whl |
|---|---|
| Size | 62.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e95e7a4861f9a8ed881548f771b5066c399b4888c2a9af63b02129565d334c4
|
|
BLAKE2b-256 checksum How to use checksums |
f00fa1241c7c3d1497342fb8df2593199534c06f5be2a41a3474c028115d6482
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.6
|
Security for csa-prediction-engine 2.5.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.