pyflutter-app 0.2.9__tar.gz → 0.3.1__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.
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/PKG-INFO +1 -1
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/cartas/__init__.py +7 -4
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/cartas/common.py +29 -1
- pyflutter_app-0.3.1/cartas/relatorio.py +979 -0
- pyflutter_app-0.3.1/cartas/table_toi.py +134 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/cartas/util.py +13 -3
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/converter/home_page/controller.py +157 -135
- pyflutter_app-0.3.1/converter/home_page/model.py +154 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/converter/lib_toi.py +206 -161
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/converter/page_forms/common.py +18 -18
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/converter/page_forms/config.py +6 -6
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/converter/page_forms/controller_forms.py +152 -18
- pyflutter_app-0.3.1/converter/page_forms/master_forms.py +113 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/converter/page_forms/model_forms.py +124 -10
- pyflutter_app-0.3.1/converter/page_forms/view_forms.py +164 -0
- pyflutter_app-0.3.1/converter/util.py +78 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/converter/whatsapp/model.py +12 -8
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/ocrlib/__init__.py +15 -21
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/ocrlib/_tesseract.py +2 -4
- pyflutter_app-0.3.1/ocrlib/common.py +99 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/ocrlib/relatorio_ocr.py +200 -41
- pyflutter_app-0.2.9/ocrlib/_table_ocr.py → pyflutter_app-0.3.1/ocrlib/table_ocr.py +13 -3
- pyflutter_app-0.3.1/ocrlib/util.py +62 -0
- pyflutter_app-0.3.1/pdflib/__init__.py +35 -0
- pyflutter_app-0.2.9/ocrlib/_common.py → pyflutter_app-0.3.1/pdflib/common.py +4 -141
- pyflutter_app-0.3.1/pdflib/imagelib.py +434 -0
- pyflutter_app-0.3.1/pdflib/pdf_convert.py +470 -0
- pyflutter_app-0.3.1/pdflib/pdf_document.py +549 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/pyproject.toml +1 -1
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/table_stream/__init__.py +11 -11
- pyflutter_app-0.3.1/table_stream/array.py +184 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/table_stream/erros.py +11 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/table_stream/hash_map.py +2 -102
- pyflutter_app-0.3.1/table_stream/pattner/__init__.py +2 -0
- pyflutter_app-0.3.1/table_stream/pattner/observer.py +31 -0
- pyflutter_app-0.3.1/table_stream/sheet/__init__.py +2 -0
- pyflutter_app-0.3.1/table_stream/sheet/data_storage.py +37 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/table_stream/state.py +54 -36
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/table_stream/sysfiles.py +63 -17
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/table_stream/table.py +11 -4
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/table_stream/thread.py +33 -34
- pyflutter_app-0.3.1/test.py +43 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/toi.py +3 -3
- pyflutter_app-0.3.1/update.sh +5 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/uv.lock +5 -5
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/whatsapp_files/__init__.py +7 -1
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/whatsapp_files/util.py +2 -2
- pyflutter_app-0.2.9/cartas/_table_toi.py +0 -249
- pyflutter_app-0.2.9/cartas/relatorio.py +0 -453
- pyflutter_app-0.2.9/converter/home_page/model.py +0 -124
- pyflutter_app-0.2.9/converter/page_forms/view_forms.py +0 -104
- pyflutter_app-0.2.9/converter/util.py +0 -43
- pyflutter_app-0.2.9/ocrlib/_pdf_convert.py +0 -1383
- pyflutter_app-0.2.9/ocrlib/util.py +0 -29
- pyflutter_app-0.2.9/table_stream/pattner/__init__.py +0 -3
- pyflutter_app-0.2.9/table_stream/sheet/__init__.py +0 -10
- pyflutter_app-0.2.9/table_stream/sheet/load.py +0 -322
- pyflutter_app-0.2.9/table_stream/sheet/parse.py +0 -206
- pyflutter_app-0.2.9/table_stream/sheet/save.py +0 -146
- pyflutter_app-0.2.9/test.py +0 -148
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/.gitignore +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/.idea/.gitignore +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/.idea/inspectionProfiles/Project_Default.xml +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/.idea/inspectionProfiles/profiles_settings.xml +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/.idea/misc.xml +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/.idea/modules.xml +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/.idea/pyflutter_app.iml +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/.idea/vcs.xml +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/README.md +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/cartas/erros.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/cartas/find_toi.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/converter/__init__.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/converter/__main__.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/converter/assets/forms_config.json +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/converter/config_app.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/converter/home_page/__init__.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/converter/home_page/_page_edit.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/converter/home_page/view.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/converter/page_forms/Diagnorstico.txt +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/converter/page_forms/__init__.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/converter/page_forms/diagnose_forms.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/converter/page_forms/service.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/converter/run_app_convert.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/converter/table_widget.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/converter/whatsapp/__init__.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/export_app.sh +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/local_build/linux.sh +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/local_build/send.sh +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/main.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/mediator.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/mvc/controller.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/mvc/model.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/mvc/view.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/new-export_app.sh +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/ocrlib/erros.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/ocrlib/export_ocr.sh +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/pyflutter_ui/__init__.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/pyflutter_ui/app.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/pyflutter_ui/file_picker.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/pyflutter_ui/navigator.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/pyflutter_ui/scheduler.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/pyflutter_ui/theme.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/pyflutter_ui/ui/__init__.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/pyflutter_ui/ui/buttons.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/pyflutter_ui/ui/container.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/pyflutter_ui/ui/core.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/pyflutter_ui/ui/list_builder.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/pyflutter_ui/ui/progress.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/pyflutter_ui/ui/tables.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/pyflutter_ui/ui/widgets.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/table_stream/notifier.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/table_stream/pattner/adapter.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/table_stream/sheet/check_mod.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/table_stream/sheet/options.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/table_stream/workbook.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/whatsapp_files/_table_whatsapp.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/whatsapp_files/common.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/whatsapp_files/erros.py +0 -0
- {pyflutter_app-0.2.9 → pyflutter_app-0.3.1}/whatsapp_files/stream_files.py +0 -0
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
from .
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
from .table_toi import (
|
|
2
|
+
HeaderEntregaTOI,
|
|
3
|
+
HeaderFilesTOI,
|
|
4
4
|
TableTOI,
|
|
5
5
|
LocalEntregaCarta,
|
|
6
6
|
TipoCarta,
|
|
7
|
-
BuilderTablesTOI,
|
|
8
7
|
)
|
|
9
8
|
|
|
10
9
|
from .find_toi import extrair_uc_toi
|
|
@@ -13,5 +12,9 @@ from .common import BuilderConfigTOI, ConfigTOI
|
|
|
13
12
|
from .relatorio import (
|
|
14
13
|
ControllerTOI,
|
|
15
14
|
ReadWriteTableTOI,
|
|
15
|
+
BuilderCartas,
|
|
16
|
+
FactoryTOI,
|
|
16
17
|
load_files_toi,
|
|
18
|
+
rename_files_toi,
|
|
19
|
+
RenameFilesTOI,
|
|
17
20
|
)
|
|
@@ -8,8 +8,12 @@ from cartas.util import File, Directory, UserFileSystem, BuilderConfigOcr
|
|
|
8
8
|
class ConfigTOI:
|
|
9
9
|
|
|
10
10
|
file_relatorio_toi: File
|
|
11
|
+
file_relatorio_forms: File
|
|
11
12
|
file_table_toi: File
|
|
13
|
+
file_master_forms: File # NOVO
|
|
12
14
|
dir_base_toi: Directory
|
|
15
|
+
dir_log_excel: Directory
|
|
16
|
+
dir_relatorios: Directory
|
|
13
17
|
work_dir: Directory
|
|
14
18
|
|
|
15
19
|
|
|
@@ -43,15 +47,35 @@ class BuilderConfigTOI(object):
|
|
|
43
47
|
"Retorno-de-campo", True
|
|
44
48
|
)
|
|
45
49
|
|
|
50
|
+
@property
|
|
51
|
+
def dir_log_excel(self) -> Directory:
|
|
52
|
+
return self.dir_base_work.concat("Cartas-TOI", True).concat("Logs", True)
|
|
53
|
+
|
|
54
|
+
@property
|
|
55
|
+
def dir_relatorios(self) -> Directory:
|
|
56
|
+
return self.dir_base_work.concat("Cartas-TOI", True).concat(
|
|
57
|
+
"Relatorios-toi", True
|
|
58
|
+
)
|
|
59
|
+
|
|
46
60
|
@property
|
|
47
61
|
def file_relatorio_toi(self) -> File:
|
|
48
62
|
d = self._builder_ocr.builder().dir_table
|
|
49
63
|
return d.join_file("Relatorio-tois.xlsx")
|
|
50
64
|
|
|
65
|
+
@property
|
|
66
|
+
def file_relatorio_forms(self) -> File:
|
|
67
|
+
d = self._builder_ocr.builder().dir_table
|
|
68
|
+
return d.join_file("cartas-toi-lancadas.xlsx")
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def file_master_forms(self) -> File:
|
|
72
|
+
d = self._builder_ocr.builder().dir_table
|
|
73
|
+
return d.join_file("master-forms-toi.xlsx")
|
|
74
|
+
|
|
51
75
|
@property
|
|
52
76
|
def file_table_toi(self) -> File:
|
|
53
77
|
d = self._builder_ocr.builder().dir_table
|
|
54
|
-
return d.join_file("
|
|
78
|
+
return d.join_file("tabela-entregas-tois.xlsx")
|
|
55
79
|
|
|
56
80
|
def _create(self) -> ConfigTOI:
|
|
57
81
|
return ConfigTOI(
|
|
@@ -59,6 +83,10 @@ class BuilderConfigTOI(object):
|
|
|
59
83
|
dir_base_toi=self.dir_retorno_de_campo,
|
|
60
84
|
file_relatorio_toi=self.file_relatorio_toi,
|
|
61
85
|
file_table_toi=self.file_table_toi,
|
|
86
|
+
file_relatorio_forms=self.file_relatorio_forms,
|
|
87
|
+
dir_log_excel=self.dir_log_excel,
|
|
88
|
+
dir_relatorios=self.dir_relatorios,
|
|
89
|
+
file_master_forms=self.file_master_forms,
|
|
62
90
|
)
|
|
63
91
|
|
|
64
92
|
def builder(self) -> ConfigTOI:
|