openpyxl-image-loader-1.0.5
توضیحات
Openpyxl wrapper that gets images from cells
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | openpyxl-image-loader-1.0.5 |
| نام | openpyxl-image-loader |
| نسخه کتابخانه | 1.0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Mauricio Chávez Olea |
| ایمیل نویسنده | mauriciochavez@ciencias.unam.mx |
| آدرس صفحه اصلی | https://github.com/mauricio-chavez/openpyxl-image-loader |
| آدرس اینترنتی | https://pypi.org/project/openpyxl-image-loader/ |
| مجوز | MIT |
# Openpyxl Image Loader
Openpyxl wrapper that gets images from cells
## Requirements
* [openpyxl](https://pypi.org/project/openpyxl/)
## Usage
```python
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
image.show()
# Ask if there's an image in a cell
if image_loader.image_in('A4):
print("Got it!")
```
نیازمندی
| مقدار | نام |
|---|---|
| - | Pillow |
نحوه نصب
نصب پکیج whl openpyxl-image-loader-1.0.5:
pip install openpyxl-image-loader-1.0.5.whl
نصب پکیج tar.gz openpyxl-image-loader-1.0.5:
pip install openpyxl-image-loader-1.0.5.tar.gz