csvr 0.1.1

A cli tool to parse and manipulate csv files
Documentation
  • Coverage
  • 0%
    0 out of 32 items documented0 out of 18 items with examples
  • Size
  • Source code size: 63.54 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.35 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • 0xsouravm/csvr
    11 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • 0xsouravm

Rust CSV Manipulation CLI

This Rust command-line tool provides a set of CSV file manipulation commands, allowing users to perform operations such as displaying, modifying, deleting rows/columns/entries, merging files, sorting, adding rows, and more.

Features

  • Display: View the contents of your CSV file with various options.
  • Modify: Edit rows, columns, and entries in a straightforward manner.
  • Delete: Delete rows, columns, and entries in a straightforward manner.
  • Merge: Combine two CSV files into a single cohesive dataset.
  • Sort and Display: Arrange rows in ascending order for easy analysis.
  • Add: Append new rows and columns effortlessly.

Install(As a Crate)

Add to your Cargo.toml

csvr = "0.1.0"

Use in code

use csvr::{ CSVFile, CSVError, FileDataUtils };

Usage(Locally)

Load File

cargo run csvfile.csv

(The CLI opens up if the file is loaded successfully. Does not load empty files.)

Examples

View Commands and Usage

>>> help

Display Row

>>> display row 1

Display Column

>>> -d col 3

Delete Column

>>> delete col 3

Delete Item

>>> -r item 3 5

Merge File

>>> merge secondcsv.csv

Write to Loaded File

>>> write

Write to New File(Creates if Doesn't Exist)

>>> write fileName.csv

Exit the CLI

>>> exit

Upcoming Updates

  • Merging multiple files with same dimensions.
  • Deleting multiple rows, cols and entries at once.