simplepath:Simplepath是兼顾性能的字典查找实用程序映射器

时间:2021-05-13 05:39:55
【文件属性】:
文件名称:simplepath:Simplepath是兼顾性能的字典查找实用程序映射器
文件大小:36KB
文件格式:ZIP
更新时间:2021-05-13 05:39:55
Python 简单路径 simplepath是一个使用超简单表达式并考虑性能的数据结构查找库。 “ simplepath”是其他一些*path技术的文字游戏,例如xpath , jsonpath , jpath等。 免费软件:MIT许可证 GitHub: : 灵感 simplepath的灵感simplepath于性能。 许多其他库都专注于进行单次查找,但是当需要查询大量数据时,它们就不够用了。 例如,如果某个结构的字典需要转换为另一种结构的字典,那么一种简单且可配置的方式可能是定义一个配置字典,其中键将作为输出字典的键,而值将是查找表达式以获取适当的数据: { "greetings": "foo.greeting", "planet": "foo.[0].planet", ... } 上面的方法很容易实现,但是效果不是很好,因为对于每个查找,都必须对查找表达式进行求值
【文件预览】:
simplepath-master
----MANIFEST.in(163B)
----README.rst(3KB)
----CONTRIBUTING.rst(3KB)
----simplepath()
--------exceptions.py(98B)
--------lut.py(483B)
--------expressions.py(5KB)
--------lookups.py(4KB)
--------utils.py(2KB)
--------mapper.py(11KB)
--------__init__.py(126B)
--------registry.py(624B)
--------constants.py(590B)
----requirements-dev.txt(114B)
----HISTORY.rst(1KB)
----requirements.txt(4B)
----AUTHORS.rst(498B)
----.travis.yml(265B)
----tox.ini(200B)
----setup.cfg(55B)
----setup.py(2KB)
----Makefile(2KB)
----docs()
--------authors.rst(28B)
--------make.bat(7KB)
--------contributing.rst(33B)
--------conf.py(8KB)
--------usage.rst(24B)
--------history.rst(28B)
--------index.rst(219B)
--------Makefile(7KB)
--------license.rst(28B)
----.editorconfig(252B)
----tests()
--------test_z_performance.py(5KB)
--------test_registry.py(546B)
--------__init__.py(40B)
--------test_constants.py(445B)
--------test_expressions.py(7KB)
--------test_lookups.py(9KB)
--------test_mapper.py(17KB)
--------test_z_integration.py(2KB)
--------test_utils.py(3KB)
----LICENSE.rst(1KB)
----.gitignore(396B)
----.importanizerc(366B)

网友评论