python-hslog:用于解析炉石传说Power.log文件的Python模块

时间:2021-02-04 06:09:23
【文件属性】:
文件名称:python-hslog:用于解析炉石传说Power.log文件的Python模块
文件大小:29KB
文件格式:ZIP
更新时间:2021-02-04 06:09:23
parsing regex hearthstone log-parser ParsingPython 日志 hslog是功能强大的炉石传说Power.log解串器。 概念 从Power.log读取的数据反序列化为数据包。 使用基于正则表达式的方法逐行读取日志,当数据包跨越多行时,它们会累积数据。 BLOCK_START和BLOCK_END数据包被序列化为可嵌套的Block数据包。 我们将游戏的所有数据包称为“数据包树”。 导出PacketTree PacketTree对象使递归迭代变得很容易,这反过来又使得导出成各种其他格式变得非常容易。 PacketTree上的.export()方法将默认使用hearthstone.entities模块将整个树本机导出到Game实体。 这可以通过非常灵
【文件预览】:
python-hslog-master
----.travis.yml(621B)
----tox.ini(598B)
----LICENSE(1KB)
----setup.cfg(645B)
----setup.py(62B)
----README.md(4KB)
----tests()
--------data.py(24KB)
--------test_main.py(14KB)
--------test_logs.py(4KB)
--------__init__.py(0B)
--------conftest.py(962B)
--------test_export.py(10KB)
----.gitignore(70B)
----hslog()
--------exceptions.py(410B)
--------export.py(10KB)
--------player.py(6KB)
--------utils.py(528B)
--------parser.py(26KB)
--------tokens.py(4KB)
--------__init__.py(118B)
--------packets.py(6KB)

网友评论