ocr-stream 2.5.2__tar.gz → 2.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,8 @@
1
+ .idea/
2
+ ocr_stream/bin_tess/__pycache__/
3
+ ocr_stream/modules/__pycache__/
4
+ ocr_stream/ocr/__pycache__/
5
+ ocr_stream/__pycache__/
6
+
7
+
8
+
@@ -1,19 +1,14 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: ocr_stream
3
- Version: 2.5.2
3
+ Version: 2.6
4
4
  Summary: Extrair textos de documentos digitalizados e imagens.
5
- Author: Bruno Chaves
6
- Requires-Python: >=3.11
7
- Description-Content-Type: text/markdown
8
- Requires-Dist: PyMuPDF
9
- Requires-Dist: reportlab
5
+ Requires-Python: >=3.12
6
+ Requires-Dist: convert-stream>=2.6
7
+ Requires-Dist: opencv-python
10
8
  Requires-Dist: openpyxl
11
9
  Requires-Dist: pandas
12
- Requires-Dist: requests>=2.32.4
13
- Requires-Dist: opencv-python
14
- Requires-Dist: pytesseract
15
- Requires-Dist: convert_stream>=2.5.1
16
- Requires-Dist: soup_files>=1.4.2
10
+ Requires-Dist: pytesseract>=0.3.13
11
+ Description-Content-Type: text/markdown
17
12
 
18
13
  # ocrlib
19
14
 
@@ -47,4 +42,4 @@ recognized.to_document().to_file_pdf(output_file)
47
42
  # você pode salvar uma planilha com o texto da imagem
48
43
  output_excel: File = File('path/to/file.xlsx')
49
44
  recognized: TextRecognized = ocr.image_recognize(image)
50
- recognized.to_document().to_excel(output_excel)
45
+ recognized.to_document().to_excel(output_excel)
@@ -0,0 +1,23 @@
1
+ #!/bin/bash
2
+ #
3
+ # Script para compilar o projeto localmente e preparar para enviar ao PyPI.
4
+ #
5
+ THIS_FILE=$(readlink -f "$0")
6
+ THIS_DIR=$(dirname "$THIS_FILE")
7
+ DIR_ROOT=$(cd "$THIS_DIR"; cd ..; pwd) # Raiz do projeto
8
+
9
+ LOCAL_DIR_VENV="${DIR_ROOT}/.venv"
10
+ VENV_ACTIVATE="${LOCAL_DIR_VENV}/bin/activate"
11
+ source "${VENV_ACTIVATE}" || exit 1
12
+
13
+ function main(){
14
+ uv sync || exit 1
15
+ # Executa o build usando o ambiente gerenciado pelo uv
16
+ uv run python -m build || exit 1
17
+ # pip3 install build
18
+ # python3 -m build
19
+
20
+ echo -e "\nPara enviar ao PyPI use ->> python3 -m twine upload dist/*"
21
+ }
22
+
23
+ main "$@"
@@ -0,0 +1,18 @@
1
+ #!/bin/bash
2
+
3
+ THIS_FILE=$(readlink -f "$0")
4
+ THIS_DIR=$(dirname "$THIS_FILE")
5
+ DIR_ROOT=$(cd "$THIS_DIR"; cd ..; pwd) # Raiz do projeto
6
+
7
+ LOCAL_DIR_VENV="${DIR_ROOT}/.venv"
8
+ VENV_ACTIVATE="${LOCAL_DIR_VENV}/bin/activate"
9
+ source "${VENV_ACTIVATE}" || exit 1
10
+
11
+ function main(){
12
+ # pip3 install twine
13
+ # uv add twine build
14
+ echo -e "Enviando ao PyPI"
15
+ python3 -m twine upload dist/* --verbose
16
+ }
17
+
18
+ main "$@"