Skip to content

Commit 40703e3

Browse files
committed
Update Python and Pillow versions
1 parent c188ede commit 40703e3

File tree

4 files changed

+517
-398
lines changed

4 files changed

+517
-398
lines changed

README.md

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
# What is pyxlimg
22

3-
Pyxlimg is for extracting images from xlsx. It has a high affinity with other libraries. This is because you can treat the image as an instance of Pillow.Image. I hope it will be incorporated into openpyxl and pylightxl in the future.
3+
Pyxlimg is for extracting images from xlsx. It has a high affinity with other libraries. This is because you can treat the image as an instance of Pillow.Image.
44

5-
# Concept
5+
## Concept
66

77
Images are difficult to handle with xlwings, openpyxl, and pylightxl. Especially linter and type annotation are difficult. Complement these. And the goal is to make it easier to do OCR etc. using xlsx in Python.
88

9-
# Install
9+
## Install
1010

1111
Recommended to install using pip.
1212

1313
```sh
1414
pip install pyxlimg
1515
```
1616

17-
# Usage
17+
## Usage
1818

1919
```py
2020
from PIL import Image
@@ -40,32 +40,41 @@ In this way, you can easily assign images to variable.
4040
DisplayImage.show() # Show you the Image too.
4141
```
4242

43-
# FAQ
43+
## FAQ
4444

45-
## What image format does this support?
46-
If it is supported by [Pillow](https://pypi.org/project/Pillow/), it can be supported. If the original image is in a commonly used format such as png, jpg, bmp when pasted or inserted into xlsx.
45+
### What image format does this support?
4746

48-
## What kind of library is this supposed to be used with?
49-
For example, `Tesseract OCR`, `pylightxl`, `openpyxl`, `matplotlib`. It is also ideal for matching with other `pillow` related libraries.
47+
If it is supported by [Pillow](https://pypi.org/project/Pillow/), it can be supported. If the original image is in a commonly used format such as png, jpg, bmp when pasted or inserted into xlsx.
5048

51-
# How to Contribute
49+
### What kind of library is this supposed to be used with?
5250

53-
Please do a git clone and pull request. The version control tool used in this repository is poetry.
51+
For example, `Tesseract OCR`, `pylightxl`, `openpyxl`, `matplotlib`. It is also ideal for matching with other `pillow` related libraries.
5452

5553
## Build
5654

5755
How to build package.
5856

59-
```
57+
```bash
6058
poetry install
6159
poetry shell
6260
poetry build
6361
```
6462

6563
How to build sphinx docs.
6664

67-
```
65+
```bash
6866
poetry export --with dev -f requirements.txt > requirements.txt
6967
sphinx-apidoc -f -o ./docs ./pyxlimg
7068
sphinx-build -b html ./docs ./docs/_build
7169
```
70+
71+
In Windows
72+
73+
```pwsh
74+
pyenv install 3.11.0
75+
pyenv local 3.11.0
76+
poetry install
77+
poetry shell
78+
pytest
79+
poetry build
80+
```

0 commit comments

Comments
 (0)