ITK-dev-shared-components 2.15.0__tar.gz → 2.16.0__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.
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/PKG-INFO +1 -1
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/eflyt/eflyt_login.py +1 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/graph/mail.py +6 -2
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components.egg-info/PKG-INFO +1 -1
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/pyproject.toml +1 -1
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/LICENSE +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/README.md +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/__init__.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/eflyt/__init__.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/eflyt/eflyt_case.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/eflyt/eflyt_letter.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/eflyt/eflyt_search.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/eflyt/eflyt_util.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/getorganized/__init__.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/getorganized/go_api.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/graph/__init__.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/graph/authentication.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/graph/common.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/graph/file.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/graph/site.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/kmd_nova/__init__.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/kmd_nova/authentication.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/kmd_nova/cpr.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/kmd_nova/nova_cases.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/kmd_nova/nova_documents.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/kmd_nova/nova_notes.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/kmd_nova/nova_objects.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/kmd_nova/nova_tasks.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/kmd_nova/util.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/misc/__init__.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/misc/address_lookup.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/misc/cpr_util.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/misc/cvr_lookup.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/misc/file_util.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/sap/__init__.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/sap/fmcacov.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/sap/gridview_util.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/sap/multi_session.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/sap/opret_kundekontakt.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/sap/sap_login.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/sap/sap_util.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/sap/tree_util.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/smtp/__init__.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components/smtp/smtp_util.py +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components.egg-info/SOURCES.txt +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components.egg-info/dependency_links.txt +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components.egg-info/requires.txt +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/itk_dev_shared_components.egg-info/top_level.txt +0 -0
- {itk_dev_shared_components-2.15.0 → itk_dev_shared_components-2.16.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: itk_dev_shared_components
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.16.0
|
|
4
4
|
Summary: Shared components to use in RPA projects
|
|
5
5
|
Author-email: ITK Development <itk-rpa@mkb.aarhus.dk>
|
|
6
6
|
Project-URL: Homepage, https://github.com/itk-dev-rpa/itk-dev-shared-components
|
|
@@ -7,6 +7,7 @@ from selenium.webdriver.remote.webelement import WebElement
|
|
|
7
7
|
from selenium.common.exceptions import NoSuchElementException, StaleElementReferenceException
|
|
8
8
|
|
|
9
9
|
|
|
10
|
+
# pylint: disable=inherit-non-class, missing-function-docstring, too-few-public-methods
|
|
10
11
|
class ResilientBrowser(webdriver.Chrome):
|
|
11
12
|
"""A webdriver.Chrome subclass that retries find_element if the element goes stale."""
|
|
12
13
|
def find_element(self, by=By.ID, value = None) -> WebElement:
|
|
@@ -51,7 +51,7 @@ class Attachment:
|
|
|
51
51
|
size: int
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
def get_emails_from_folder(user: str, folder_path: str, graph_access: GraphAccess) -> tuple[Email]:
|
|
54
|
+
def get_emails_from_folder(user: str, folder_path: str, graph_access: GraphAccess, limit: int = 100) -> tuple[Email]:
|
|
55
55
|
"""Get all emails from the specified user and folder.
|
|
56
56
|
You need to authorize against Graph to get the GraphAccess before using this function
|
|
57
57
|
see the graph.authentication module.
|
|
@@ -60,13 +60,17 @@ def get_emails_from_folder(user: str, folder_path: str, graph_access: GraphAcces
|
|
|
60
60
|
user: The user who owns the folder.
|
|
61
61
|
folder_path: The absolute path of the folder e.g. 'Inbox/Economy/May'
|
|
62
62
|
graph_access: The GraphAccess object used to authenticate.
|
|
63
|
+
limit: The maximum number of mails to fetch. Max 1000.
|
|
63
64
|
|
|
64
65
|
Returns:
|
|
65
66
|
tuple[Email]: The emails from the given folder.
|
|
66
67
|
"""
|
|
68
|
+
if not 0 < limit <= 1000:
|
|
69
|
+
raise ValueError("Limit must be between 1 and 1000.")
|
|
70
|
+
|
|
67
71
|
folder_id = get_folder_id_from_path(user, folder_path, graph_access)
|
|
68
72
|
|
|
69
|
-
endpoint = f"https://graph.microsoft.com/v1.0/users/{user}/mailFolders/{folder_id}/messages?$top=
|
|
73
|
+
endpoint = f"https://graph.microsoft.com/v1.0/users/{user}/mailFolders/{folder_id}/messages?$top={limit}"
|
|
70
74
|
|
|
71
75
|
response = get_request(endpoint, graph_access)
|
|
72
76
|
emails_raw = response.json()['value']
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: itk_dev_shared_components
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.16.0
|
|
4
4
|
Summary: Shared components to use in RPA projects
|
|
5
5
|
Author-email: ITK Development <itk-rpa@mkb.aarhus.dk>
|
|
6
6
|
Project-URL: Homepage, https://github.com/itk-dev-rpa/itk-dev-shared-components
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|