Skip to main content

codecraftai-analysis-statistical

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.

Public namespace: ccai.analysis.statistical.

Documentation

Quick example

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

Metadata

Release files for codecraftai-analysis-statistical 1.2.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 codecraftai-analysis-statistical 1.2.1
File Size Uploaded Provenance
codecraftai_analysis_statistical-1.2.1.tar.gz 47.9 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for codecraftai-analysis-statistical 1.2.1
File Interpreter ABI Platform
codecraftai_analysis_statistical-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 134.4 kB

Release files / codecraftai_analysis_statistical-1.2.1.tar.gz

Download URL codecraftai_analysis_statistical-1.2.1.tar.gz
Size 47.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8e3e06efd6f9e531f12b2a625166601256dbca220f4a122b3fc8faffbab32d1e
BLAKE2b-256 checksum
How to use checksums
79385e147938b5036197d89b36ee8f6d64cd1a720e410f08d817c9028d466acc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

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.

Transparency log

Release files / codecraftai_analysis_statistical-1.2.1-py3-none-any.whl

Download URL codecraftai_analysis_statistical-1.2.1-py3-none-any.whl
Size 86.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07356d08372eacbde608a3c45e5bbc18470987d6a8774c8ffa1a728da7094da7
BLAKE2b-256 checksum
How to use checksums
8b29eb2b078082c13118dc681bda2687b1b4bd96bb42cf9851f0d6948ac1c951
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

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.

Transparency log

Security for codecraftai-analysis-statistical 1.2.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for codecraftai_analysis_statistical-1.2.1.tar.gz

PyPI Publish Attestation

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.

Transparency log

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.

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files Full provenance

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