pcodec
CLIYou can compress, decompress, and inspect .pco files using our simple CLI. Follow this setup:
cargo install pco_cli
This provides you with the pcodec
command.
You can always get help, e.g. pcodec
, pcodec compress --help
.
This command compresses a single column of a .csv or .parquet file into a .pco
file.
If delta encoding order (--delta-order
) is not specified, the default
behavior is to use the first numbers and make an educated guess for the best
delta encoding order.
Examples:
```shell pcodec compress --csv my.csv --col-name mycolumn out.pco pcodec compress --parquet my.snappy.parquet --col-name mycolumn out.pco
pcodec compress \ --csv my.csv \ --col-idx 0 \ --csv-has-header \ --dtype u32 \ --level 7 \ --overwrite \ out.pco
pcodec compress \ --csv time_series.csv \ --col-name temperature \ --dtype f32 \ --delta-order 3 \ out.pco ```
This command prints numbers in a .pco file to stdout.
Examples:
shell
pcodec decompress --limit 10 in.pco
This command prints out information about a .pco file.
Examples:
shell
% pcodec inspect in.pco
The major and minor semver versions of this crate are meant to match that of
pco
.
However, the patch version is not related to pco
's patch version.