用于浏览HDF5文件的交互式CLI
hcl的Python项目详细描述
盐酸
在C命令L行中探索Hdf5文件。在
旨在让unixcli用户熟悉,但没有特别努力实现真正的兼容性或POSIX兼容性。在
使用
usage: hcl [-h] [-c COMMAND] [-p PLUGIN] [--verbose] [--mode MODE] [--version] [file] CLI for interactive exploration of HDF5 files. positional arguments: file HDF5 file to explore. Add ':/path/to/group' to start in a specific group. If this is not given, only `--version`, `--help`, or `--command '<some_command> --help'` can be used. optional arguments: -h, --help show this help message and exit -c COMMAND, --command COMMAND Run a single command and exit. -p PLUGIN, --plugin PLUGIN Import path for additional commands, in the form '{module}:{object}', where {module} can be an absolute import path, or the path to a python file which can be run; {object} can be a Command subclass, an iterable of them, or a callable returning either. Can be used multiple times. --verbose, -v Increase logging verbosity, up to -vv for debug. --mode MODE, -m MODE Mode in which to open the file. 'r' (default): Readonly, file must exist. 'r+': Read/write, file must exist. 'w': Create file, truncate if exists. 'w-' or 'x': Create file, fail if exists. 'a': Read/write if exists, create otherwise. --version, -V Print version and exit.
可用命令
^{pr2}$有关每个命令的用法,请参见commands/中的文件。在
发展
插件
Pull请求在核心工具中添加更多命令是非常受欢迎的。在
但是,hcl
还提供了一个简单的本地添加功能的路径。
--plugin
选项允许您提供python导入路径
或python脚本的文件系统路径,包含第三方命令。在
它们应该是hcl.Command
的子类,并允许您控制自动完成,
返回码等等。
有关如何使用这个类的示例,请参见hcl/commands.py
。
传递给context
的构造函数的context
变量
是主hcl.cli.Cli
实例。在
文档
运行make docs
自动更新自述文件的使用信息,
以及./commands
中的命令文档。
CI检查这些是否是最新的。在
注释
非常类似于h5cli。
hcl
特点:
- 更多文档
--command
模式的管道输出- 当我试着运行它时不会崩溃。在
- 项目
标签: