v1.4.0
-
Added
length
andlength_raw
attributes toResource
. These attributes are equivalent to thelen
ofdata`` and
data_raw` respectively, but may be faster to access.- Currently, the only optimized case is
length
for compressed resources, but more optimizations may be added in the future.
- Currently, the only optimized case is
-
Added a
compressed_info
attribute toResource
that 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.packages
insetup.cfg
, which made the library unusable except when installing from source using--editable
. -
Fixed
ResourceFile.__enter__
returningNone
, which made it impossible to useResourceFile
properly in awith
statement. -
Fixed various minor errors reported by type checking with
mypy
.