Skip to main content

Openpyxl wrapper that gets images from cells

Project description

Openpyxl Image Loader

Openpyxl wrapper that gets images from cells



from openpyxl import load_workbook
from openpyxl_image_loader import SheetImageLoader

# Load your workbook and sheet as you want, for example
wb = load_workbook('path_to_file.xlsx')
sheet = wb['required_sheet']

# Put your sheet in the loader
image_loader = SheetImageLoader(sheet)

# And get image from specified cell
image = image_loader.get('A3')

# Image now is a Pillow image, so you can do the following

# Ask if there's an image in a cell
if image_loader.image_in('A4):
    print("Got it!")

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for openpyxl-image-loader, version 1.0.5
Filename, size File type Python version Upload date Hashes
Filename, size openpyxl_image_loader-1.0.5-py3-none-any.whl (3.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size openpyxl-image-loader-1.0.5.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page