11 releases

Uses new Rust 2021

0.2.2 Jun 27, 2022
0.2.1 Jun 21, 2022
0.1.7 Jun 4, 2022
0.1.6 May 30, 2022
0.1.1 Mar 31, 2022

#534 in Text processing

Download history 30/week @ 2022-03-26 107/week @ 2022-04-02 9/week @ 2022-04-09 59/week @ 2022-04-16 29/week @ 2022-04-23 15/week @ 2022-04-30 80/week @ 2022-05-07 104/week @ 2022-05-14 19/week @ 2022-05-21 55/week @ 2022-05-28 92/week @ 2022-06-04 6/week @ 2022-06-11 39/week @ 2022-06-18 45/week @ 2022-06-25

190 downloads per month

MIT/Apache

115KB
2.5K SLoC

Ced, a csv editor and library

Ths is a csv editor and a backend for other frontends.

Ced is not a fully featured editor, but more likely an "ed" for csv. Ced simply prevents you from adding surplus column or invalid data type.

Changes

Install

Install rust related binaries

cargo install ced --features cli --locked

Binary usage

Ced option

# Print version
ced --version
# Print help
ced --help

# Start ced
# Optionaly with initial import
ced
ced file.csv

# Execute script
# argument with .ced extension will be interpretted as execution script
# In this case, loop variants are restricted
ced script.ced

# Import schema and import data file.
# Execute a given command without opening an interactive shell
ced --schema schema.csv data.csv --command 'add-row 1 100,20;write'

Ced shell command

# Type help in prompt or give --help flag for detailed usage.

# Get help
>> help

# Import a file
>> import file_name.csv

# Import a schema file. Second argument determines overriding.
>> schema file_name true

# Print csv data optionally with a viewer command
# Set CED_VIEWER to set default print viewer
>> print
>> print tidy-viwer

# Append a new row to last
# Type a comma to exit loop
>> add-row 
First Header = .. <USER_INPUT>
Second Header = .. <USER_INPUT>

# Edit a given row
>> edit-row <ROW_NUMBER>

# Set a limiter for a column with interactive shell
>> limit

# Export to a file
>> export file_name.csv

# Overwrite to a source file
>> write

# Undo a previous operation
# History capacity is 16 by default
# You can override it with CED_HISTORY_CAPACITY
>> undo

# Redo a previous undo
>> redo

Dependencies

~1–1.4MB
~39K SLoC