#zip-archive #zip #merge #align #npy #npz #compression-level

app rezip

合并重新压缩或对齐的 ZIP/NPZ 存档,并堆叠 NPY 数组

5 个版本

0.1.3 2022年3月21日
0.1.2 2022年2月16日
0.1.1 2022年2月15日
0.1.0 2021年6月5日
0.0.0 2020年9月29日

#1948 in 命令行工具

MIT/Apache

31KB
618

Build Downloads Version Rust License

rezip

合并重新压缩或对齐的 ZIP/NPZ 存档,并堆叠 NPY 数组

安装

cargo install rezip

命令行界面

rezip 0.1.3
Rouven Spreckels <[email protected]>
Merges ZIP/NPZ archives recompressed or aligned and stacks NPY arrays

Options accepting <[glob=]value> pairs use the given values for matching file
names in input ZIP archives. Matches of former pairs are superseded by matches
of latter pairs. Omitting [glob=] by only passing a value assumes the * glob
pattern matching all file names whereas an empty glob pattern matches no file
names. An empty value disables the option for the file names matching the glob
pattern. Passing a single pair with an empty glob pattern and an empty value,
that is a = only, disables an option with default values entirely as in
--recompress = whereas passing no pairs as in --recompress keeps assuming the
default values.

USAGE:
    rezip [OPTIONS] [glob]...

ARGS:
    <glob>...
            Merges or checks input ZIP archives.

            Stacks identically named files in different input ZIP archives in
            the order given by parsing supported file formats like NPY (NumPy
            array file). Otherwise, only the file in the last given input ZIP
            archive is merged into the output ZIP archive.

OPTIONS:
    -o, --output <path>
            Writes output ZIP archive.

            With no output ZIP archive, checks if files in input ZIP archives
            are as requested according to --recompress and --align. Recompress
            levels and --merge matches are not checked.

    -f, --force
            Writes existing output ZIP archive

    -m, --merge <[glob=]name>
            Merges files as if they were in ZIP archives.

            Merges files as if they were in different ZIP archives and renames
            them to the given names. With empty names, keeps original names,
            effectively creating a ZIP archive from input files.

            Note: File permissions and its last modification time are not yet
            supported.

    -r, --recompress <[glob=]method>
            Writes files recompressed.

            Supported methods are stored (uncompressed), deflated (most common),
            bzip2[:1-9] (high ratio) with 9 as default level, and zstd[:1-21]
            (modern) with 3 as default level. With no methods, files are
            recompressed using their original methods but with default levels.

            Note: Compression levels are not yet supported.

            [default: stored]

    -a, --align <[glob=]bytes>
            Aligns uncompressed files.

            Aligns uncompressed files in ZIP archives by padding local file
            headers to enable memory-mapping, SIMD instruction extensions like
            AVX-512, and dynamic loading of shared objects.

            [default: 64 *.so=4096]

    -s, --stack <[glob=]axis>
            Stacks arrays along axis.

            One stacked array at a time must fit twice into memory before it is
            written to the output ZIP archive.

            [default: 0]

    -v, --verbose
            Prints status information.

            The more occurrences, the more verbose, with three at most.

    -h, --help
            Print help information

    -V, --version
            Print version information

许可证

双重许可,MIT 或 Apache 2.0。

贡献

除非您明确声明,否则您提交的任何贡献都将按照上述许可进行许可,不附加任何额外条款或条件。

版本

版本 0.1.3 (2022-03-21)

版本 0.1.2 (2022-02-16)

  • 修复将 ndarray::stack 静默重命名为 ndarray::concatenate

版本 0.1.1 (2022-02-15)

  • 更新依赖项以修复构建问题。

版本 0.1.0 (2021-06-05)

  • 实现。

版本 0.0.0 (2020-09-29)

  • 保留名称。

依赖项

~15–28MB
~398K SLoC