https://github.com/jweyrich/csvpred
[WIP] Query a CSV file using simple predicates
https://github.com/jweyrich/csvpred
csv csv-parser csv-reader csv-reading query query-engine query-language querying
Last synced: 5 months ago
JSON representation
[WIP] Query a CSV file using simple predicates
- Host: GitHub
- URL: https://github.com/jweyrich/csvpred
- Owner: jweyrich
- License: mpl-2.0
- Created: 2024-10-13T02:34:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-09-13T06:35:26.000Z (5 months ago)
- Last Synced: 2025-09-13T07:22:01.245Z (5 months ago)
- Topics: csv, csv-parser, csv-reader, csv-reading, query, query-engine, query-language, querying
- Language: Python
- Homepage:
- Size: 73.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# csvpred
Query a CSV file using simple predicates.
## How to install
```shell
cd csvpred
brew install pipenv
pipenv install
```
## How to use
Examples:
```shell
pipenv run python3 -m csvpred -i samples/hurricanes.csv -q '.Month == Aug' --debug-ast | jq
pipenv run python3 -m csvpred -i samples/hurricanes.csv -q '.Average == 0.5' --debug-ast | jq
pipenv run python3 -m csvpred -i samples/hurricanes.csv \
-f month,avg,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015 \
-q '.month == Aug'
pipenv run python3 -m csvpred -i samples/hurricanes.csv \
-f month,avg,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015 \
-q '.avg == 0.5'
```