Code Craft AI Statistical Analysis Library -- SAS-comparable DATA-step semantics in Python.
pip install codecraftai-analysis-statistical==1.2.1 Copy PIP instructions
Patterns for authoring and porting statistical analysis jobs to Python whose results are directly comparable to the equivalent SAS jobs. Built around a reference SAS DATA-step execution model (the correctness oracle), an IR front end for inspectable user logic, a hybrid columnar / sequential executor for speed, and database source readers that follow the SAS/ACCESS-engine pattern.
from ccai.analysis.statistical import (ObservationEngine, SetReader) sales = [{"region": "East", "customer": "A", "amount": 10}, {"region": "East", "customer": "A", "amount": 15}, {"region": "East", "customer": "B", "amount": 7}] def accumulate(pdv): if pdv.first["customer"] is True: pdv["total"] = 0 pdv["total"] = pdv["total"] + pdv["amount"] if pdv.last["customer"] is True: pdv.output() return rows = list(ObservationEngine( reader=SetReader(source=sales, by=["region", "customer"]), logic=accumulate, by=["region", "customer"], retain={"total": 0})) Tests This package uses testbase exclusively. After rehome-repository and setup-environment complete:
source .venv/bin/activate testbase testing run --root source/testroots/ccai \ --includes=ccai.tests.singlehost --output=./.output Project links Data verified by PyPI on Oct 20, 2026 Data provided by the project maintainers, verified at the time the release was uploaded to PyPI. Homepage Issues Repository Key dates PyPI data Data sourced directly from PyPI's database. Released: Oct 20, 2026 Latest release 1 maintainer PyPI data Data sourced directly from PyPI's database. myronww.ccai Credits Author: Code Craft AI LLC
All 2 files in this release have provenance metadata.
LicenseRef-CodeCraftAI-Source-Available View SPDX License List
python statistics sas data-step automation analytics
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.
All 2 files in this release have been uploaded with provenance metadata.
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.




