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.0

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.0
File Size Uploaded Provenance
codecraftai_analysis_statistical-1.2.0.tar.gz 48.1 kB With provenance Details

Built distribution (wheel)

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

Total release size: 134.6 kB

Release files / codecraftai_analysis_statistical-1.2.0.tar.gz

Download URL codecraftai_analysis_statistical-1.2.0.tar.gz
Size 48.1 kB
Tags Source
SHA-256 checksum
How to use checksums
49c3e8f8f3cd26f90989b630efc15e3453750609313ba267f8154039aefa0795
BLAKE2b-256 checksum
How to use checksums
e368fee6bf95170a2d67d5d239c888675c4e6ad7a1f5593a3d630c56eb8eaf7f
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 19, 2026.

Transparency log

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

Download URL codecraftai_analysis_statistical-1.2.0-py3-none-any.whl
Size 86.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e7ea6b4a98d095a26f6ad80ca66ef8dba46c56dc1a97805ec5ace41e1869396
BLAKE2b-256 checksum
How to use checksums
986e5db6c7ccfc55f3dd49dd32b1ccebef24cbb418a343df3c55a4ce24641161
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 19, 2026.

Transparency log

Security for codecraftai-analysis-statistical 1.2.0

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.0.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 19, 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.0 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