# florence-bockting/tinystats architecture

> Architecture diagram of the GitHub repository florence-bockting/tinystats, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/florence-bockting/tinystats
- Repository: https://github.com/florence-bockting/tinystats
- Video tour (about a minute): https://gitdiagram.com/florence-bockting/tinystats/video

## Overview

tinystats is a small, pure-Python descriptive-statistics library. A user calls its public API with a sequence of values and receives a mean, sample standard deviation, or moving-average list; the implementation validates inputs and computes the result in core.py. The README and source show no persistent state or external runtime services. The core functions are grouped together because they are implemented in one small module.

Main entry points: [`src/tinystats/__init__.py`](https://github.com/florence-bockting/tinystats/blob/main/src/tinystats/__init__.py) (Exported functions), [`src/tinystats/core.py`](https://github.com/florence-bockting/tinystats/blob/main/src/tinystats/core.py) (Mean, SD, moving average)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["Public API"]
  node_public_api["Exported functions<br/>[__init__.py]"]
end

subgraph group_statistics["Statistics"]
  node_statistics_core["Mean, SD, moving average<br/>[core.py]"]
end

node_user(("Python caller"))

node_user -->|"calls"| node_public_api
node_public_api -->|"exports"| node_statistics_core

click node_public_api "https://github.com/florence-bockting/tinystats/blob/main/src/tinystats/__init__.py"
click node_statistics_core "https://github.com/florence-bockting/tinystats/blob/main/src/tinystats/core.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_public_api toneBlue
class node_statistics_core toneAmber
class node_user toneIndigo
```

## Components

### Public API

- [Exported functions](https://github.com/florence-bockting/tinystats/blob/main/src/tinystats/__init__.py): `src/tinystats/__init__.py`

### Statistics

- [Mean, SD, moving average](https://github.com/florence-bockting/tinystats/blob/main/src/tinystats/core.py): `src/tinystats/core.py`

### Other components

- **Python caller**

## Connections

- Python caller → Exported functions: calls (evidence: `README.md`)
- Exported functions → Mean, SD, moving average: exports (evidence: `src/tinystats/__init__.py`)
