用于浏览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检查这些是否是最新的。在

注释

非常类似于h5clihcl特点:

  • 更多文档
  • --command模式的管道输出
  • 当我试着运行它时不会崩溃。在

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
JavaGCP:一个VM可以位于具有相同地址的不同网络上吗?   java查找安卓中第一个数组的第二个数组中存在的元素的索引   java摄像头活动不工作,设置参数失败   用于python的Base64转换的Java等效代码   为什么JPA/Hibernate在我尝试运行@Query时抛出“java.lang.NegativeArraySizeException:1”?   如何在ubuntu for java的终端上设置路径?   java为什么这两个IP不同?   java JPA:如何将本机查询结果集转换为POJO类集合   java如何在|(12)|(23)中用数字拆分字符串   异常处理如何让程序在达到Java目标后停止运行   java如何不添加以特定字符开头的元素   java如何通过字符串获得swing按钮名称?   java如何在响应不成功时读取改装中的错误体?   java*更新*现在我的程序可以编译但不运行了?