Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
halloleo opened this issue Jan 20, 2020 · 1 comment
Open

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

halloleo opened this issue Jan 20, 2020 · 1 comment

Comments

@halloleo
Copy link

In order to use csvpy in a non-intractive manner it could accept python commands on the command line or in a file. E.g :

csvpy -f file.py data.csv

This would make it possible to do the same csvpy operation on multiple CSV files. Big win!

@jpmckinney jpmckinney changed the title csvpy could accept python commands on the command line or in a file csvpy: Accept python commands on the command line or in a file Feb 3, 2020
@jpmckinney
Copy link
Member

A related idea. In #610, @fgregg wrote:

one thing i’ve often wished for is passing a little code into csvpy on the command line that could make this really composable

something like csvpy -c identifier -p “d.lower()” example.csv

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

No branches or pull requests

2 participants