Skip to content

Allow csvpy to run a Python script on a CSV file - #1407

Open
yushuosun wants to merge 1 commit into
wireservice:masterfrom
yushuosun:csvpy-script-file
Open

yushuosun wants to merge 1 commit into
wireservice:masterfrom
yushuosun:csvpy-script-file

Conversation

@yushuosun

Copy link
Copy Markdown

Closes #1060.

Run the same Python analysis against different CSV files with csvpy -f analysis.py data.csv. The script receives the ordinary reader, dictionary reader, or agate table selected by the existing command-line options and runs as __main__.

Three regression cases use the repository's dummy.csv. All three failed on master because csvpy rejected -f. On Windows with Python 3.13, the full suite passed (371 passed, 3 skipped). The installed csvpy entry point also printed 1 for the documented row-count example.

Copilot AI balanced review requested due to automatic review settings November 29, 2026 12:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

csvpy: Accept python commands on the command line or in a file

2 participants