XLRD is installed and tested:
>>> import xlrd
>>> workbook = xlrd.open_workbook(\'Sample.xls\')
When I read the file through
xlrd does support providing data directly without a filepath, just use the file_contents
argument:
xlrd.open_workbook(file_contents=fileobj.read())
From the documentation:
file_contents – A string or an
mmap.mmap
object or some other behave-alike object. Iffile_contents
is supplied,filename
will not be used, except (possibly) in messages.