Indeed it is possible:
After setting fast_load to True you can then make pefile selectively
load what you need as follows:
---------------------------
pe = pefile.PE(control_file, fast_load=True)
# the following is a list of directory indices, one can use the
dictionary
# pefile.DIRECTORY_ENTRY to refer to the directories by name or
simply
# specify a list such as: [1,2,6,7]
directories_to_load =
[ pefile.DIRECTORY_ENTRY['IMAGE_DIRECTORY_ENTRY_RESOURCE'] ]
pe.parse_data_directories( directories = directories_to_load )
---------------------------
To load all 16 directories (same as fast_load=False)
---------------------------
pe.parse_data_directories( directories= range(0x10) )
---------------------------
regards,
--
ero