Skip to main content

Cambridge Sports Analytics Common Library

csa_common_lib is a shared library that provides utility modules, class definitions, enumerations, and helper functions for the CSA Prediction Engine Python client. It standardizes and simplifies complex operations across the system.

Installation

Install from PyPI:

pip install csa-common-lib

Requires Python 3.11.

Package layout

csa_common_lib/
├── classes/
│   ├── float32_encoder.py      # Float32 serialization helpers
│   ├── prediction_options.py   # Prediction, MaxFit, and grid option objects
│   ├── prediction_receipt.py   # Task receipt structures
│   └── prediction_results.py   # Prediction result containers
├── enum_types/
│   ├── errors.py               # Lambda error codes
│   ├── exit_flags.py           # Execution exit flags
│   ├── functions.py            # Function type identifiers
│   ├── job_types.py            # Job routing types
│   ├── lambda_status.py        # Lambda status codes
│   └── results.py              # Result keys and categories
├── helpers/
│   ├── _arrays.py              # Array utilities
│   ├── _conversions.py         # Data conversions
│   ├── _os.py                  # OS helpers
│   └── _vault.py               # Prediction Vault helpers
├── toolbox/
│   ├── _validate.py            # Shared validation helpers
│   ├── _notifier.py            # Notification helpers
│   ├── classes/                # Class-level utilities
│   ├── concurrency/            # Parallel execution helpers
│   ├── database/               # Lightweight DB utilities
│   └── npz/                    # NPZ I/O
└── __init__.py

Usage

Example imports for prediction configuration types:

from csa_common_lib.classes.prediction_options import (
    PredictionOptions,
    MaxFitOptions,
    GridOptions,
)

For end-to-end API usage, see the csa_prediction_engine package.

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-common-lib 2.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for csa-common-lib 2.5.1
File Size Uploaded Provenance
csa_common_lib-2.5.1.tar.gz 29.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for csa-common-lib 2.5.1
File Interpreter ABI Platform
csa_common_lib-2.5.1-py3-none-any.whl Python 3 none any Details

Total release size: 91.8 kB

Release files / csa_common_lib-2.5.1.tar.gz

Download URL csa_common_lib-2.5.1.tar.gz
Size 29.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f3b7bc305a5a7f7be1894ace804c485a5805bfeb0a0fcc2288fe39b33b1c6769
BLAKE2b-256 checksum
How to use checksums
82b073434fe964afed4475565a068c3e1742721a40f664e5d917360be64e8671
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.6

Release files / csa_common_lib-2.5.1-py3-none-any.whl

Download URL csa_common_lib-2.5.1-py3-none-any.whl
Size 62.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c22de6daa0156ec7c02bd48f7f4115fb91e6c4f7c7e9b2172fdf828d2ee9647f
BLAKE2b-256 checksum
How to use checksums
e3bff65c50c3ec2158b60ce387d3f7c12e9c9041a8940cf45b6a99e3d9b4587c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.6

Security for csa-common-lib 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page