Crates.io | easycsv |
lib.rs | easycsv |
version | 0.2.9 |
source | src |
created_at | 2024-07-24 14:25:28.411735 |
updated_at | 2024-07-26 19:03:19.183423 |
description | A command line csv parser and toolkit for navigating and filtering data from csv files |
homepage | |
repository | |
max_upload_size | |
id | 1314057 |
size | 52,690 |
easycsv is an extremely fast command line CSV toolkit built using Rust. It provides a variety of powerful features to manipulate and analyze CSV files efficiently. With easycsv, you can filter rows, find data in specific columns using a custom query language, perform aggregations, and display results in multiple formats such as CSV and JSON. Additionally, easycsv can be seamlessly integrated with other Linux commands by using shell pipes.
=
, !=
, and ~
(contains) operators.If you have Cargo installed on your machine, you can install easycsv directly from crates.io:
cargo install easycsv
To build easycsv from source, follow these steps:
Clone the repository:
git clone https://github.com/ItsHyde-dev/easycsv.git
Navigate to the project directory:
cd easycsv
Build the project:
cargo install --path .
The compiled binary will be located in the target/release
directory. You can add this directory to your PATH or move the binary to a directory that is already in your PATH.
easycsv [OPTIONS] <CSV_FILE>
Find data in specific columns:
easycsv --find "name ~ 'John' and age != 25" data.csv
Count rows:
easycsv --count data.csv
Count duplicate entries in columns:
easycsv --dc "email" data.csv
Display results in JSON format:
easycsv --display-json data.csv
Integration with other commands:
cat data.csv | easycsv -f "name ~ 'Doe' or age = 30"
--find <CONDITION>
: Filter rows based on the specified condition.--count
: Count the number of rows in the CSV file.--dc <COLUMN>
: Count duplicate entries in the specified column.You can use easycsv --help for a detailed list of available options.
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
This project is licensed under the MIT License. See the LICENSE file for details.
easycsv: The ultimate command line CSV toolkit for efficient data manipulation and analysis.