from pathlib import Path
from openpyxl import load_workbook

path = Path('/home/ubuntu/upload/��قائمةالأدويةالمصرية�.xlsx')
print(f'exists={path.exists()} path={path}')
if not path.exists():
    matches = list(Path('/home/ubuntu/upload').glob('*.xlsx'))
    print('xlsx_matches=', [str(p) for p in matches])
    path = matches[0] if matches else None
if path:
    wb = load_workbook(path, read_only=True, data_only=True)
    print('sheets=', wb.sheetnames)
    for ws in wb.worksheets:
        print(f'--- sheet={ws.title} rows={ws.max_row} cols={ws.max_column} ---')
        for row in ws.iter_rows(min_row=1, max_row=min(ws.max_row, 12), values_only=True):
            print(repr(list(row)))
