Skip to main content

Query a CSV file from the commandline

Project description

cqlite

Query a CSV file from the commandline

Installation

pipx install cqlite

Usage

In memory query:

cqlite <csv_file> <query>

e.g.

cqlite fakedata.csv "SELECT * FROM csv WHERE name LIKE '%Tommy% AND date_of_birth < '1980-01-01';"

(note filedata is loaded into a table called "csv").

Save `<csv_file>.csv as a SQLite database (<csv_file>.db):

cqlite <csv_file> --persist

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cqlite-0.2.0.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

cqlite-0.2.0-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page