jarg:shell 中的简写 JSON 和表单编码语法

时间:2021-07-08 18:24:44
【文件属性】:
文件名称:jarg:shell 中的简写 JSON 和表单编码语法
文件大小:10KB
文件格式:ZIP
更新时间:2021-07-08 18:24:44
Python 贾格 jarg是 shell 的编码简写。 它是一个命令行实用程序,可以在 shell 中更轻松地以 JSON、YAML 和表单编码等格式生成数据。 安装 从安装: $ pip install jarg 用法 jarg 的每个参数都应该采用 name=value 的格式。 值被解释为它们最接近的原生编码值,默认方言是 JSON。 最常见的情况可能是字符串名称和值: $ jarg foo=bar baz=quux {"foo": "bar", "baz": "quux"} 浮点数和整数也可以工作: $ jarg foo=10 bar=4.2 {"foo": 10, "bar": 4.2} 该值是可选的。 如果你省略它,它被解释为null : $ jarg foo {"foo": null} 名称部分与名称具有相同的语法和语义: $ jarg foo[]=bar foo[]=baz
【文件预览】:
jarg-master
----MANIFEST.in(19B)
----.travis.yml(104B)
----README.rst(2KB)
----jarg()
--------cli.py(2KB)
--------__main__.py(54B)
--------dialects.py(1KB)
--------__init__.py(55B)
--------jsonform.py(4KB)
----man()
--------jarg.1.ronn(3KB)
----tests()
--------test_dialects.py(692B)
--------test_jsonform.py(1KB)
--------test_cli.py(414B)
----LICENSE(1KB)
----setup.py(2KB)
----.gitignore(62B)
----Makefile(282B)

网友评论