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.4.2.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.4.2-py3-none-any.whl (62.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: csa_common_lib-2.4.2.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.4.2.tar.gz
Algorithm Hash digest
SHA256 6b7d02facac87940ac47dd8d1fa142a3e66cd58b7e1f62361703fe24c57d32cf
MD5 c3b9e848c4c90b0fed4f7745910ac49a
BLAKE2b-256 bd0afe42c00b8e65467c9364b3464162e618d158629c625f4f1811f02c04a199

See more details on using hashes here.

File details

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

File metadata

  • Download URL: csa_common_lib-2.4.2-py3-none-any.whl
  • Upload date:
  • Size: 62.0 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.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e4abbd3ab1aff55ca59e790405bc7f0858a925bcffc085cfd8fcd47513b3b6b9
MD5 f8cd7b73d6798a690c8adb60357cea57
BLAKE2b-256 4ad604896896628a7ee557701357d510342029473bc4be310ce3924057314fd8

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