pandexai 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/commands/pandex.md +28 -0
- package/README.md +29 -3
- package/bin/pandex.js +2 -2
- package/package.json +7 -6
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Run PandexAI commands (scan, gather, analyze) for deterministic data profiling
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Pandex
|
|
6
|
+
|
|
7
|
+
You are handling a `/pandex` command. The arguments passed are: $ARGUMENTS
|
|
8
|
+
|
|
9
|
+
Parse the first word as the subcommand, and everything after it as the filename (if any).
|
|
10
|
+
|
|
11
|
+
## If subcommand is "scan"
|
|
12
|
+
|
|
13
|
+
1. Read SKILL.md and commands/scan.md in this project for full instructions.
|
|
14
|
+
2. If no filename was given, tell the user a filename is required for now (`/pandex gather` is planned but not built yet).
|
|
15
|
+
3. Run: python scripts/profile.py <filename>
|
|
16
|
+
Use the project's virtual environment Python, not the system one:
|
|
17
|
+
- Windows: .pandex\venv\Scripts\python.exe
|
|
18
|
+
- Mac/Linux: .pandex/venv/bin/python
|
|
19
|
+
4. The script prints a JSON object. Do NOT recompute, estimate, or guess any of these numbers yourself.
|
|
20
|
+
5. Present the JSON results to the user as a clear, readable summary, and flag anything that looks like a data quality issue (high null %, suspicious types, low-cardinality columns that might be categorical).
|
|
21
|
+
|
|
22
|
+
## If subcommand is "gather" or "analyze"
|
|
23
|
+
|
|
24
|
+
Tell the user this command is planned but not built yet, and suggest `/pandex scan <file>` instead.
|
|
25
|
+
|
|
26
|
+
## If no subcommand is recognized
|
|
27
|
+
|
|
28
|
+
Show usage: `/pandex scan <file>` (gather and analyze coming soon).
|
package/README.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
-
# PandexAI
|
|
2
|
-
|
|
3
|
-
AI-native data profiling CLI.
|
|
1
|
+
# PandexAI
|
|
2
|
+
|
|
3
|
+
AI-native data profiling CLI. PandexAI runs inside AI coding CLIs (Claude Code, Cursor, etc.) and handles the deterministic parts of data analysis - profiling columns, checking nulls, catching type issues - as real Python/pandas code, not AI guesses. The AI only handles judgment: interpreting results, flagging issues, and deciding what matters.
|
|
4
|
+
|
|
5
|
+
## Why
|
|
6
|
+
|
|
7
|
+
When working with an AI CLI on messy data, a lot of the groundwork does not need an LLM at all - it just needs pandas doing pandas things. PandexAI keeps that part deterministic and trustworthy, and lets the AI focus on the part that actually needs reasoning.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
npx pandexai init
|
|
12
|
+
|
|
13
|
+
This creates an isolated Python environment inside your project (`.pandex/venv`), installs pandas into it, and adds the files PandexAI needs (`SKILL.md`, `commands/`, `scripts/`).
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
Inside your AI CLI session, ask it to scan a file:
|
|
18
|
+
|
|
19
|
+
Please read SKILL.md and commands/scan.md, then run the scan command on yourfile.csv
|
|
20
|
+
|
|
21
|
+
The AI will run the real profiling script and give you column types, null percentages, unique counts, and stats - plus its own read on anything that looks off.
|
|
22
|
+
|
|
23
|
+
## Status
|
|
24
|
+
|
|
25
|
+
Early and actively developed. Currently supports one command: `scan`. More coming.
|
|
26
|
+
|
|
27
|
+
## License
|
|
28
|
+
|
|
29
|
+
MIT
|
package/bin/pandex.js
CHANGED
|
@@ -57,7 +57,7 @@ if (installResult.status !== 0) {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
const packageRoot = path.join(__dirname, "..");
|
|
60
|
-
const filesToCopy = ["SKILL.md", "commands", "scripts"];
|
|
60
|
+
const filesToCopy = ["SKILL.md", "commands", "scripts", ".claude"];
|
|
61
61
|
|
|
62
62
|
function copyRecursive(src, dest) {
|
|
63
63
|
const stat = fs.statSync(src);
|
|
@@ -81,4 +81,4 @@ for (const item of filesToCopy) {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
console.log("");
|
|
84
|
-
console.log("PandexAI is ready. Try: /pandex scan <your-file.csv> inside your AI CLI.");
|
|
84
|
+
console.log("PandexAI is ready. Try: /pandex scan <your-file.csv> inside your AI CLI.");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pandexai",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "PandexAI - AI-native data profiling CLI. Run pandex init inside your project to get started.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -12,9 +12,10 @@
|
|
|
12
12
|
"pandex": "./bin/pandex.js"
|
|
13
13
|
},
|
|
14
14
|
"files": [
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
"bin",
|
|
16
|
+
"SKILL.md",
|
|
17
|
+
"commands",
|
|
18
|
+
"scripts",
|
|
19
|
+
".claude"
|
|
20
|
+
]
|
|
20
21
|
}
|