Skip to content

Releases: Askaholic/faf-replay-parser-python

v0.5.3 - Add `extract_scfa` function

19 Jun 01:27
54770b2
Compare
Choose a tag to compare

As of this version, the version numbers for this library will no longer correspond with those of the underlying Rust crate, but will instead represent compatibility of the Python API exposed by this package.

What's Changed

  • Add extract_scfa for decompressing .fafreplay files

Full Changelog: v0.5.2...v0.5.3

v0.5.2 - Update dependencies

16 Apr 22:20
5f17d78
Compare
Choose a tag to compare

Update to pyo3 version 0.16.4.

  • Added support for python 3.10
  • Dropped support for python 3.6

Update package metadata

v0.5.1-rev0 - Add command name lookup array

25 Apr 21:42
1963778
Compare
Choose a tag to compare

New in this version

Command names can be looked up through the NAMES array:

>>>  from fafreplay import commands
>>> commands.NAMES[0]
"Advance"

New in the previous version

Note that as of version 0.5.1, there is an additional constant commands.MAX that defines the maximum valid command id. This can be used to verify validity of command ids or to construct a parser that parses all commands:

>>> from fafreplay import commands, Parser
>>> if command_id > commands.MAX:
...     raise Exception("Invalid command id")
>>> parser = Parser(commands=range(commands.MAX + 1))

Also note that the commands argument to Parser can now be any iterable. Again, both of these changes are available in 0.5.1