用于浏览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第三方库


热门话题
Java Spring REST API JSON在postman中显示,但在测试中未“看到”   java如何以编程方式检查旋转设备?   java力穷举开关   amazon web services DynamoDB从Java更新列表失败   java Android studio IDE更改波斯注释字体   java如何将postgresql添加到OpenShift Spring应用程序?   java RecycleView分页是否在末尾添加新项?   如何通过java获取移动设备信息?   java为什么Apache Commons StringEscapeUtils escapeXML10不能在groovy中工作?   函数式编程java curry现有的静态函数   java与JList的合作