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.1.tar.gz (29.7 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.1-py3-none-any.whl (62.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: csa_common_lib-2.5.1.tar.gz
  • Upload date:
  • Size: 29.7 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.1.tar.gz
Algorithm Hash digest
SHA256 f3b7bc305a5a7f7be1894ace804c485a5805bfeb0a0fcc2288fe39b33b1c6769
MD5 2205268fee2d93d2789e8124c664a3f6
BLAKE2b-256 82b073434fe964afed4475565a068c3e1742721a40f664e5d917360be64e8671

See more details on using hashes here.

File details

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

File metadata

  • Download URL: csa_common_lib-2.5.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c22de6daa0156ec7c02bd48f7f4115fb91e6c4f7c7e9b2172fdf828d2ee9647f
MD5 103a5760bbfd1e7b553cbd7fa7d28534
BLAKE2b-256 e3bff65c50c3ec2158b60ce387d3f7c12e9c9041a8940cf45b6a99e3d9b4587c

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