AHARP (Analytics & History Auto-Report Printer): a free, offline toolkit for multi-dataset exploration, exportable reports, time-series analysis, rich plotting, and fuzzy-matched NLP queries.
Project description
AHARP
Analytics & History Auto-Report Printer
AHARP is a free, offline Python toolkit for exploring one or more tabular datasets using natural-language queries. Under the hood, it leverages Pandas, NumPy, and a lightweight fuzzy‐matching layer to give you:
- Multi-dataset sessions: load multiple CSVs (e.g.
load sales.csv as sales) - Exportable reports: transcript → Markdown or HTML
- Time-series awareness: resample, rolling avg, line plots
- Fuzzy matching: tolerate typos (
nulll→null)
📦 Installation
cd aharp
pip install -e ".[full]"
🚀 CLI Usage
python -m aharp sample_data/people.csv
Commands:
load FILE.csv as ALIAS— load another datasetask ALIAS questionor just type a question if only one dataset is loadedexport markdown report.mdexport html report.htmlhelpexit
📝 Examples
aharp> load sample_data/products.csv as products
aharp> ask main mean of income
aharp> ask products most common product
aharp> type of age
aharp> plot date vs sales
aharp> export markdown session.md
aharp> exit
📊 Time-Series Commands
ask main resample date by monthrolling average of temperature over 7 daysplot date vs sales(line chart)
❓ Supported Question Categories
Dataset Shape
- How many rows?
- Number of rows?
- Row count
- How many columns?
- Column count
Schema & Types
- What are the column types?
- Type of each column
- What type is
age? - Describe column types
- Schema summary
- Show data structure
- Dataset info
Missing / Nulls
- Any missing data?
- Are there nulls?
- Missing values?
- Null counts?
- How many nulls per column?
- Which columns have missing?
Zero Values
- Count zeros in column
- Zero values in inventory?
- How many zeros?
- Zero count
Statistical Summaries
- Top / Mode values
- Mean / Average / Compute mean
- Median / Std / Standard deviation
- Range / Min & Max
- Unique / Distinct counts
- Sample values / Examples
Viewing & Exporting Rows
- Show sample rows
- Show top 5 rows / Head
- Show last rows / Tail
- Any duplicates? / Duplicate count
- Drop duplicates / Remove duplicate rows
Time-Series & Plots
- Plot
agevsincome - Create scatter of
pricevsinventory - Plot distribution / Histogram / Bar chart / Pie chart
Advanced
- Find rows where
city= NY - Search column
cityfor LA - Favorite column?
🧪 Run Tests
pytest
🚩 Sample Data
sample_data/people.csvsample_data/products.csv
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aharp-0.0.1.tar.gz.
File metadata
- Download URL: aharp-0.0.1.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0d169a04fc6a0231e92d3571d6c79872f88370b54d2698371dfdac4e81e9bc6
|
|
| MD5 |
1c60768519df012ad2a5549b08ca6b2d
|
|
| BLAKE2b-256 |
67e7ef50a0f19ee4e673bd34322b7fb27c014533df50a9a93d4c383853174736
|
File details
Details for the file aharp-0.0.1-py3-none-any.whl.
File metadata
- Download URL: aharp-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ceac28a8dd05ba7f191d76565afe6e5983317cec4e56064ae81b087731058b8d
|
|
| MD5 |
94cebdcd174ad00da6acc3d8294280ba
|
|
| BLAKE2b-256 |
ecbf37dd08d8b089b05d089174e9fe746c4eb1181a381267656f3dd038e1ffc5
|