Skip to content

Commit

Permalink
release 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
amenezes committed Jul 12, 2022
1 parent 0ea0d1e commit cde7850
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ about:
@echo "> aiopytesseract: $(VERSION)"
@echo ""
@echo "make lint - Runs: [isort > black > flake8 > mypy]"
@echo "make tests - Execute tests."
@echo "make tests - Runs: tests."
@echo "make ci - Runs: [lint > tests]"
@echo "make tox - Runs tox."
@echo "make docs - Generate project documentation."
Expand Down
21 changes: 16 additions & 5 deletions aiopytesseract/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
from .commands import (confidence, deskew, get_languages,
get_tesseract_version, image_to_boxes, image_to_data,
image_to_hocr, image_to_osd, image_to_pdf,
image_to_string, languages, run, tesseract_parameters,
tesseract_version)
from .commands import (
confidence,
deskew,
get_languages,
get_tesseract_version,
image_to_boxes,
image_to_data,
image_to_hocr,
image_to_osd,
image_to_pdf,
image_to_string,
languages,
run,
tesseract_parameters,
tesseract_version,
)
from .models import OSD, Box, Data, Parameter

__version__ = "0.8.0"
Expand Down
11 changes: 7 additions & 4 deletions aiopytesseract/validators.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
from pathlib import Path

from .constants import (OCR_ENGINE_MODES, PAGE_SEGMENTATION_MODES,
TESSERACT_LANGUAGES)
from .exceptions import (LanguageInvalidException, NoSuchFileException,
OEMInvalidException, PSMInvalidException)
from .constants import OCR_ENGINE_MODES, PAGE_SEGMENTATION_MODES, TESSERACT_LANGUAGES
from .exceptions import (
LanguageInvalidException,
NoSuchFileException,
OEMInvalidException,
PSMInvalidException,
)


async def psm_is_valid(psm: int) -> None:
Expand Down

0 comments on commit cde7850

Please sign in to comment.