Skip to main content

csa_common_lib is a shared library designed to provide utility modules, class definitions, enumerations, and helper functions for the CSA Prediction Engine Python client. It standardizes and simplifies complex operations across different parts of the CSA Prediction Engine.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

csa_common_lib-2.5.0.tar.gz (29.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

csa_common_lib-2.5.0-py3-none-any.whl (62.1 kB view details)

Uploaded Python 3

File details

Details for the file csa_common_lib-2.5.0.tar.gz.

File metadata

  • Download URL: csa_common_lib-2.5.0.tar.gz
  • Upload date:
  • Size: 29.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for csa_common_lib-2.5.0.tar.gz
Algorithm Hash digest
SHA256 74194ff8bf3301190adcf3fcac72bc8c2f1efbfc6e0d6779670c57c0f85c725b
MD5 e6c2ed49ab4c5223e7e86a76681354ff
BLAKE2b-256 b3a48ac803b1f1c26ee16874cd76ce7a2a87b5fc02967a11a508fb9ffbe748cd

See more details on using hashes here.

File details

Details for the file csa_common_lib-2.5.0-py3-none-any.whl.

File metadata

  • Download URL: csa_common_lib-2.5.0-py3-none-any.whl
  • Upload date:
  • Size: 62.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for csa_common_lib-2.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2c191024f27b87befa19f78aa8b5b6b076f1cd3503fcc7657efe410afa743fff
MD5 a204f2a7e0e8fddc90b90b234e759b8a
BLAKE2b-256 65cb831141c1161f248121052444585be586619ec301a0e4f8c3b60559dbebee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page