Catalog PyPI
PACKAGE EXPLORERView in registry

acumen-cli

PyPI

Transform raw CSV datasets into executive-ready business insights using statistical analysis and LLMs via OpenRouter.

business-intelligenceclicsvdata-analysisllm
Versions collected1
Direct dependencies9From release 0.2.0
Last observed20 Oct, 18:43 UTC

README

Version 0.2.0 documentation

Acumen CLI

Transform raw CSV datasets into executive-ready business insights using statistical analysis and Large Language Models via OpenRouter.

pip install acumen-cli
acumen sales_data.csv

Features

  • Load CSV files — Read any CSV with automatic encoding detection
  • Validate datasets — Check for empty data, malformed rows, missing values
  • Generate statistics — Descriptive stats per column: mean, median, std, quartiles, unique counts, missing values
  • LLM-powered insights — Send only the statistical summary (never raw data) to OpenRouter for business-level analysis
  • Beautiful terminal output — Rich-formatted tables, panels, and color-coded insights
  • Privacy-first — Raw dataset rows never leave your machine

Installation

pip install acumen-cli

Or install from source:

git clone https://github.com/acumen-cli/acumen.git
cd acumen
pip install -e .

Quick Start

  1. Set your OpenRouter API key:
export OPENROUTER_API_KEY=sk-or-v1-your-api-key-here
  1. Run Acumen on any CSV file:
acumen dataset.csv

Options

FlagDescription
--modelLLM model to use (default: openai/gpt-4o-mini)
--verboseEnable detailed logging
--versionShow version and exit
--helpShow help message

How It Works

CSV File → Validate → Statistics → JSON Summary → Prompt Builder → OpenRouter → Parse → Rich Output
  1. Load — Reads CSV with encoding detection using chardet
  2. Validate — Ensures dataset is non-empty, rows are consistent
  3. Statistics — Computes descriptive statistics per column
  4. JSON Summary — Builds a structured summary (no raw data)
  5. Prompt — Constructs a focused prompt for the LLM
  6. Analyze — Sends to OpenRouter for business insights
  7. Display — Renders insights in a beautiful Rich terminal UI

Configuration

Acumen uses environment variables loaded from a .env file (optional).

VariableRequiredDefaultDescription
OPENROUTER_API_KEY✅ Yes—Your OpenRouter API key
ACUMEN_MODELNoopenai/gpt-4o-miniLLM model identifier
ACUMEN_TIMEOUTNo30API timeout in seconds
ACUMEN_LOG_LEVELNoWARNINGLogging verbosity
ACUMEN_MAX_RETRIESNo3API retry attempts

Development

# Clone and install in editable mode
git clone https://github.com/acumen-cli/acumen.git
cd acumen
pip install -e ".[dev]"

# Run tests
pytest

# Lint
ruff check src/

# Type check (requires pyright or mypy)
mypy src/

Architecture

Acumen CLI follows a clean, modular architecture:

  • acumen/models/ — Data types and value objects
  • acumen/orchestration/ — Pipeline orchestrator tying all steps together
  • acumen/*.py — Each processing step is a standalone module

License

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.2.06 Jul 20269

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
acumen-cli/acumen

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:43 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:ad9315a9d4809e115a98f5a73cbb56ec6e9a0010489ed801d77b495337e4151a