v1.4.0
-
Added
lengthandlength_rawattributes toResource. These attributes are equivalent to thelenofdata`` anddata_raw` respectively, but may be faster to access.- Currently, the only optimized case is
lengthfor compressed resources, but more optimizations may be added in the future.
- Currently, the only optimized case is
-
Added a
compressed_infoattribute toResourcethat provides access to the header information of compressed resources. -
Improved handling of compressed resources when listing resource files with the command line tool.
- Metadata of compressed resources is now displayed even if no decompressor implementation is available (as long as the compressed data header can be parsed).
- Performance has been improved - the data no longer needs to be fully decompressed to get its length, this information is now read from the header.
- The
'dcmp'ID used to decompress each resource is displayed.
-
Fixed an incorrect
options.packagesinsetup.cfg, which made the library unusable except when installing from source using--editable. -
Fixed
ResourceFile.__enter__returningNone, which made it impossible to useResourceFileproperly in awithstatement. -
Fixed various minor errors reported by type checking with
mypy.