io4it 2.1.1.3__tar.gz → 2.1.2__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.
- io4it-2.1.2/PKG-INFO +7 -0
- io4it-2.1.2/io4it.egg-info/PKG-INFO +7 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/io4it.egg-info/SOURCES.txt +1 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/utils/mail.py +1 -1
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/OWInboxMailMonitoring.py +24 -25
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/OWS3Uploader.py +4 -3
- io4it-2.1.2/orangecontrib/IO4IT/widgets/icons/extract_table.png +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/setup.py +1 -1
- io4it-2.1.1.3/PKG-INFO +0 -33
- io4it-2.1.1.3/io4it.egg-info/PKG-INFO +0 -33
- {io4it-2.1.1.3 → io4it-2.1.2}/io4it.egg-info/dependency_links.txt +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/io4it.egg-info/entry_points.txt +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/io4it.egg-info/namespace_packages.txt +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/io4it.egg-info/requires.txt +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/io4it.egg-info/top_level.txt +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/__init__.py +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/ocr_function/__init__.py +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/ocr_function/word_converter.py +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/utils/__init__.py +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/utils/offuscation_basique.py +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/utils/pool_exec_utils.py +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/utils/utils_md.py +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/OWChatGpt.py +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/OWDeep_Search.py +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/OWDoclingMarkdownizerSimple.py +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/OWExportMarkdown.py +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/OWMarkdownLoader.py +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/OWMarkdownizer.py +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/OWOfficeNormalizer.py +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/OWPdfType.py +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/OWProcessPoolExecutor.py +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/OWS3downloader.py +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/OWS3list.py +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/OWSpeechToText.py +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/OWmailLoader.py +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/OWmailSender.py +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/OWwordpdf2docx.py +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/__init__.py +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/designer/__init__.py +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/designer/nogui.ui +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/designer/ow_file_ext_selector.ui +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/designer/owchatgpt.ui +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/designer/owdeepsearch.ui +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/designer/owdoclingasr.ui +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/designer/owdoclingmarkdownizersimple.ui +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/designer/owexportmarkdown.ui +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/designer/owinboxmailmonitoring.ui +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/designer/owmailloader.ui +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/designer/owmailsender.ui +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/designer/owmarkdownizer.ui +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/designer/owmarkdownloader.ui +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/designer/owofficenormalizer.ui +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/designer/owpdftype.ui +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/designer/owprocesspoolexecutor.ui +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/designer/owspeechtotext.ui +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/designer/owvisualizationer.ui +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/designer/wordpdf2docx.ui +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/icons/__init__.py +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/icons/chatgpt.png +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/icons/check_pdf.png +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/icons/deepsearch.svg +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/icons/dep_md_old.png +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/icons/download.png +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/icons/export_md.png +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/icons/file_extensor.png +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/icons/list_aws.png +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/icons/load_md.png +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/icons/mail_loader.png +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/icons/mail_writer.png +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/icons/md.png +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/icons/monitor-email.svg +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/icons/office_normalizer.png +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/icons/process_pool_executor.png +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/icons/speech_to_text.png +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/icons/upload.png +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/icons/visualizationer.png +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/icons/wordpdf2docx.png +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/icons_dev/__init__.py +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/__init__.py +0 -0
- {io4it-2.1.1.3 → io4it-2.1.2}/setup.cfg +0 -0
io4it-2.1.2/PKG-INFO
ADDED
|
@@ -59,6 +59,7 @@ orangecontrib/IO4IT/widgets/icons/deepsearch.svg
|
|
|
59
59
|
orangecontrib/IO4IT/widgets/icons/dep_md_old.png
|
|
60
60
|
orangecontrib/IO4IT/widgets/icons/download.png
|
|
61
61
|
orangecontrib/IO4IT/widgets/icons/export_md.png
|
|
62
|
+
orangecontrib/IO4IT/widgets/icons/extract_table.png
|
|
62
63
|
orangecontrib/IO4IT/widgets/icons/file_extensor.png
|
|
63
64
|
orangecontrib/IO4IT/widgets/icons/list_aws.png
|
|
64
65
|
orangecontrib/IO4IT/widgets/icons/load_md.png
|
|
@@ -9,7 +9,7 @@ from email.message import EmailMessage
|
|
|
9
9
|
import mimetypes
|
|
10
10
|
|
|
11
11
|
from exchangelib import Credentials, HTMLBody, Message, Mailbox
|
|
12
|
-
from exchangelib.protocol import BaseProtocol, NoVerifyHTTPAdapter
|
|
12
|
+
#from exchangelib.protocol import BaseProtocol, NoVerifyHTTPAdapter
|
|
13
13
|
from exchangelib import OAuth2Credentials, Identity, Configuration, Account, DELEGATE
|
|
14
14
|
|
|
15
15
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import os
|
|
2
2
|
import sys
|
|
3
3
|
import Orange.data
|
|
4
|
-
from AnyQt.QtWidgets import QPushButton, QApplication, QRadioButton, QComboBox
|
|
4
|
+
from AnyQt.QtWidgets import QPushButton, QApplication, QRadioButton, QComboBox
|
|
5
5
|
from Orange.widgets import widget
|
|
6
6
|
from Orange.widgets.utils.signals import Input, Output
|
|
7
7
|
from Orange.widgets.settings import Setting
|
|
@@ -17,9 +17,8 @@ else:
|
|
|
17
17
|
from orangecontrib.AAIT.utils import thread_management
|
|
18
18
|
from orangecontrib.AAIT.utils.import_uic import uic
|
|
19
19
|
from orangecontrib.IO4IT.utils import mail
|
|
20
|
-
from Orange.widgets.orangecontrib.IO4IT.utils import offuscation_basique
|
|
21
20
|
from orangecontrib.IO4IT.utils import offuscation_basique
|
|
22
|
-
|
|
21
|
+
from orangecontrib.AAIT.utils import MetManagement
|
|
23
22
|
|
|
24
23
|
class OWInboxMailMonitoring(widget.OWWidget):
|
|
25
24
|
name = "InboxMailMonitoring"
|
|
@@ -130,31 +129,31 @@ class OWInboxMailMonitoring(widget.OWWidget):
|
|
|
130
129
|
|
|
131
130
|
def _run_mail_daemonizer(self):
|
|
132
131
|
self.data_to_send = self.data
|
|
133
|
-
# on va lire la config en rapport pour renvoyer le dossier d'envoi et de reception
|
|
134
|
-
try:
|
|
135
|
-
agent = ""
|
|
136
|
-
if self.type_co == "IMAP4_SSL":
|
|
137
|
-
agent, _, _, _, alias = offuscation_basique.lire_config_imap4_ssl(self.your_email_conf)
|
|
138
|
-
if alias != "":
|
|
139
|
-
agent = alias
|
|
140
|
-
if self.type_co == "MICROSOFT_EXCHANGE_OWA":
|
|
141
|
-
_, agent, _, _, _, _ = offuscation_basique.lire_config_owa(self.your_email_conf)
|
|
142
|
-
if self.type_co == "MICROSOFT_EXCHANGE_OAUTH2":
|
|
143
|
-
_, _, _, agent = offuscation_basique.lire_config_cli_oauth2(self.your_email_conf)
|
|
144
|
-
if agent != "":
|
|
145
|
-
chemin_dossier = MetManagement.get_path_mailFolder()
|
|
146
|
-
self.input_dir = chemin_dossier + str(agent) + "/in"
|
|
147
|
-
self.output_dir = chemin_dossier + str(agent) + "/out"
|
|
148
|
-
input_dir = StringVariable("input_dir")
|
|
149
|
-
output_dir = StringVariable("output_dir")
|
|
150
|
-
self.data_to_send = self.data_to_send.add_column(input_dir, [self.input_dir])
|
|
151
|
-
self.data_to_send = self.data_to_send.add_column(output_dir, [self.output_dir])
|
|
152
|
-
except Exception as e:
|
|
153
|
-
self.error("An error occurred : ", e)
|
|
154
|
-
return
|
|
155
132
|
if self.send_mail:
|
|
156
133
|
mail.check_send_new_emails(self.your_email_conf, self.type_co)
|
|
134
|
+
#lecture des mails on va lire la config en rapport pour renvoyer le dossier d'envoi et de reception
|
|
157
135
|
else:
|
|
136
|
+
try:
|
|
137
|
+
agent = ""
|
|
138
|
+
if self.type_co == "IMAP4_SSL":
|
|
139
|
+
agent, _, _, _, alias = offuscation_basique.lire_config_imap4_ssl(self.your_email_conf)
|
|
140
|
+
if alias != "":
|
|
141
|
+
agent = alias
|
|
142
|
+
if self.type_co == "MICROSOFT_EXCHANGE_OWA":
|
|
143
|
+
_, agent, _, _, _, _ = offuscation_basique.lire_config_owa(self.your_email_conf)
|
|
144
|
+
if self.type_co == "MICROSOFT_EXCHANGE_OAUTH2":
|
|
145
|
+
_, _, _, agent = offuscation_basique.lire_config_cli_oauth2(self.your_email_conf)
|
|
146
|
+
if agent != "":
|
|
147
|
+
chemin_dossier = MetManagement.get_path_mailFolder()
|
|
148
|
+
self.input_dir = chemin_dossier + str(agent) + "/in"
|
|
149
|
+
self.output_dir = chemin_dossier + str(agent) + "/out"
|
|
150
|
+
input_dir = StringVariable("input_dir")
|
|
151
|
+
output_dir = StringVariable("output_dir")
|
|
152
|
+
self.data_to_send = self.data_to_send.add_column(input_dir, [self.input_dir])
|
|
153
|
+
self.data_to_send = self.data_to_send.add_column(output_dir, [self.output_dir])
|
|
154
|
+
except Exception as e:
|
|
155
|
+
self.error("An error occurred : ", e)
|
|
156
|
+
return
|
|
158
157
|
mail.check_new_emails(self.your_email_conf, self.type_co)
|
|
159
158
|
return
|
|
160
159
|
|
|
@@ -15,6 +15,7 @@ class OWS3FileDownloader(OWWidget):
|
|
|
15
15
|
icon = "icons_dev/upload.png"
|
|
16
16
|
priority = 20
|
|
17
17
|
category = "AAIT - API"
|
|
18
|
+
|
|
18
19
|
# Paramètres utilisateur
|
|
19
20
|
access_key = Setting("")
|
|
20
21
|
secret_key = Setting("")
|
|
@@ -91,13 +92,13 @@ class OWS3FileDownloader(OWWidget):
|
|
|
91
92
|
s3 = session.client("s3")
|
|
92
93
|
files = os.listdir(self.download_path) # Liste tout (fichiers + dossiers)
|
|
93
94
|
files_only = [f for f in files if os.path.isfile(os.path.join(self.download_path, f))]
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
# s3.upload_file(self.download_path + "/" + file, self.bucket_name, file)
|
|
95
|
+
for file in files_only:
|
|
96
|
+
s3.upload_file(self.download_path + "/" + file, self.bucket_name, file)
|
|
97
97
|
self.information("Upload terminé !")
|
|
98
98
|
self.Outputs.data.send(self.data)
|
|
99
99
|
|
|
100
100
|
|
|
101
|
+
|
|
101
102
|
except Exception as e:
|
|
102
103
|
print(e)
|
|
103
104
|
self.error(str(e))
|
|
Binary file
|
io4it-2.1.1.3/PKG-INFO
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: io4it
|
|
3
|
-
Version: 2.1.1.3
|
|
4
|
-
Summary: UNKNOWN
|
|
5
|
-
Home-page:
|
|
6
|
-
Author:
|
|
7
|
-
Author-email:
|
|
8
|
-
License: UNKNOWN
|
|
9
|
-
Keywords: orange3 add-on
|
|
10
|
-
Platform: UNKNOWN
|
|
11
|
-
Requires-Dist: pylatexenc
|
|
12
|
-
Requires-Dist: docopt
|
|
13
|
-
Requires-Dist: boto3
|
|
14
|
-
Requires-Dist: opencv-python-headless==4.6.0.66
|
|
15
|
-
Requires-Dist: docling==2.30.0
|
|
16
|
-
Requires-Dist: docling-core==2.26.3
|
|
17
|
-
Requires-Dist: speechbrain
|
|
18
|
-
Requires-Dist: whisper
|
|
19
|
-
Requires-Dist: whisper-openai
|
|
20
|
-
Requires-Dist: pyannote.audio
|
|
21
|
-
Requires-Dist: pyannote-core
|
|
22
|
-
Requires-Dist: pypandoc
|
|
23
|
-
Requires-Dist: pypandoc-binary
|
|
24
|
-
Requires-Dist: scikit-learn
|
|
25
|
-
Requires-Dist: openai
|
|
26
|
-
Requires-Dist: pip-system-certs==5.0
|
|
27
|
-
Requires-Dist: docx2pdf
|
|
28
|
-
Requires-Dist: doc2docx
|
|
29
|
-
Requires-Dist: msal
|
|
30
|
-
Requires-Dist: exchangelib
|
|
31
|
-
Requires-Dist: CATEGORIT
|
|
32
|
-
|
|
33
|
-
UNKNOWN
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: io4it
|
|
3
|
-
Version: 2.1.1.3
|
|
4
|
-
Summary: UNKNOWN
|
|
5
|
-
Home-page:
|
|
6
|
-
Author:
|
|
7
|
-
Author-email:
|
|
8
|
-
License: UNKNOWN
|
|
9
|
-
Keywords: orange3 add-on
|
|
10
|
-
Platform: UNKNOWN
|
|
11
|
-
Requires-Dist: pylatexenc
|
|
12
|
-
Requires-Dist: docopt
|
|
13
|
-
Requires-Dist: boto3
|
|
14
|
-
Requires-Dist: opencv-python-headless==4.6.0.66
|
|
15
|
-
Requires-Dist: docling==2.30.0
|
|
16
|
-
Requires-Dist: docling-core==2.26.3
|
|
17
|
-
Requires-Dist: speechbrain
|
|
18
|
-
Requires-Dist: whisper
|
|
19
|
-
Requires-Dist: whisper-openai
|
|
20
|
-
Requires-Dist: pyannote.audio
|
|
21
|
-
Requires-Dist: pyannote-core
|
|
22
|
-
Requires-Dist: pypandoc
|
|
23
|
-
Requires-Dist: pypandoc-binary
|
|
24
|
-
Requires-Dist: scikit-learn
|
|
25
|
-
Requires-Dist: openai
|
|
26
|
-
Requires-Dist: pip-system-certs==5.0
|
|
27
|
-
Requires-Dist: docx2pdf
|
|
28
|
-
Requires-Dist: doc2docx
|
|
29
|
-
Requires-Dist: msal
|
|
30
|
-
Requires-Dist: exchangelib
|
|
31
|
-
Requires-Dist: CATEGORIT
|
|
32
|
-
|
|
33
|
-
UNKNOWN
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{io4it-2.1.1.3 → io4it-2.1.2}/orangecontrib/IO4IT/widgets/designer/owdoclingmarkdownizersimple.ui
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|