pumapy 2.3.0__tar.gz → 2.3.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.
- {pumapy-2.3.0/pumapy.egg-info → pumapy-2.3.2}/PKG-INFO +3 -5
- {pumapy-2.3.0 → pumapy-2.3.2}/puma/apps/android/telegram/telegram.py +10 -4
- pumapy-2.3.2/puma/version.py +1 -0
- {pumapy-2.3.0 → pumapy-2.3.2/pumapy.egg-info}/PKG-INFO +3 -5
- {pumapy-2.3.0 → pumapy-2.3.2}/pumapy.egg-info/requires.txt +2 -4
- {pumapy-2.3.0 → pumapy-2.3.2}/setup.py +2 -4
- pumapy-2.3.0/puma/version.py +0 -1
- {pumapy-2.3.0 → pumapy-2.3.2}/LICENSE.txt +0 -0
- {pumapy-2.3.0 → pumapy-2.3.2}/README.md +0 -0
- {pumapy-2.3.0 → pumapy-2.3.2}/puma/__init__.py +0 -0
- {pumapy-2.3.0 → pumapy-2.3.2}/puma/apps/__init__.py +0 -0
- {pumapy-2.3.0 → pumapy-2.3.2}/puma/apps/android/__init__.py +0 -0
- {pumapy-2.3.0 → pumapy-2.3.2}/puma/apps/android/appium_actions.py +0 -0
- {pumapy-2.3.0 → pumapy-2.3.2}/puma/apps/android/google_maps/__init__.py +0 -0
- {pumapy-2.3.0 → pumapy-2.3.2}/puma/apps/android/google_maps/google_maps.py +0 -0
- {pumapy-2.3.0 → pumapy-2.3.2}/puma/apps/android/snapchat/__init__.py +0 -0
- {pumapy-2.3.0 → pumapy-2.3.2}/puma/apps/android/snapchat/snapchat.py +0 -0
- {pumapy-2.3.0 → pumapy-2.3.2}/puma/apps/android/telegram/__init__.py +0 -0
- {pumapy-2.3.0 → pumapy-2.3.2}/puma/apps/android/whatsapp/__init__.py +0 -0
- {pumapy-2.3.0 → pumapy-2.3.2}/puma/apps/android/whatsapp/whatsapp.py +0 -0
- {pumapy-2.3.0 → pumapy-2.3.2}/puma/computer_vision/__init__.py +0 -0
- {pumapy-2.3.0 → pumapy-2.3.2}/puma/computer_vision/ocr.py +0 -0
- {pumapy-2.3.0 → pumapy-2.3.2}/puma/utils/__init__.py +0 -0
- {pumapy-2.3.0 → pumapy-2.3.2}/puma/utils/route_simulator.py +0 -0
- {pumapy-2.3.0 → pumapy-2.3.2}/puma/utils/video_utils.py +0 -0
- {pumapy-2.3.0 → pumapy-2.3.2}/pumapy.egg-info/SOURCES.txt +0 -0
- {pumapy-2.3.0 → pumapy-2.3.2}/pumapy.egg-info/dependency_links.txt +0 -0
- {pumapy-2.3.0 → pumapy-2.3.2}/pumapy.egg-info/top_level.txt +0 -0
- {pumapy-2.3.0 → pumapy-2.3.2}/setup.cfg +0 -0
- {pumapy-2.3.0 → pumapy-2.3.2}/test/test_version.py +0 -0
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pumapy
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.2
|
|
4
4
|
Home-page: https://github.com/NetherlandsForensicInstitute/puma
|
|
5
5
|
Author: Netherlands Forensic Institute
|
|
6
6
|
Author-email: netherlandsforensicinstitute@users.noreply.github.com
|
|
7
7
|
License: EUPL-1.2
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
9
9
|
License-File: LICENSE.txt
|
|
10
|
-
Requires-Dist: appium-python-client~=4.
|
|
11
|
-
Requires-Dist: selenium==4.14.0
|
|
10
|
+
Requires-Dist: appium-python-client~=4.3.0
|
|
12
11
|
Requires-Dist: Pillow==10.4.0
|
|
13
12
|
Requires-Dist: pytesseract==0.3.10
|
|
14
|
-
Requires-Dist: adb-pywrapper==1.0.1
|
|
15
13
|
Requires-Dist: geopy~=2.4.1
|
|
16
14
|
Requires-Dist: setuptools~=75.1.0
|
|
17
15
|
Requires-Dist: gpxpy~=1.6.2
|
|
18
|
-
Requires-Dist: adb_pywrapper~=1.0.
|
|
16
|
+
Requires-Dist: adb_pywrapper~=1.0.2
|
|
19
17
|
Requires-Dist: requests~=2.32.3
|
|
20
18
|
|
|
21
19
|
# Puma - Programmable Utility for Mobile Automation
|
|
@@ -58,14 +58,18 @@ class TelegramActions(AndroidAppiumActions):
|
|
|
58
58
|
self.driver.back()
|
|
59
59
|
print('all conversations loaded!')
|
|
60
60
|
|
|
61
|
-
def return_to_homescreen(self):
|
|
61
|
+
def return_to_homescreen(self, attempts=10):
|
|
62
62
|
"""
|
|
63
63
|
Returns to the start screen of Telegram
|
|
64
|
+
:param attempts: Number of attempts to return to home screen. Avoids an infinite loop when a popup occurs.
|
|
64
65
|
"""
|
|
65
66
|
if self.driver.current_package != self.package_name:
|
|
66
67
|
self.driver.activate_app(self.package_name)
|
|
67
|
-
while not self._currently_at_homescreen():
|
|
68
|
+
while not self._currently_at_homescreen() and attempts > 0:
|
|
68
69
|
self.driver.back()
|
|
70
|
+
attempts -= 1
|
|
71
|
+
if attempts == 0 and not self._currently_at_homescreen():
|
|
72
|
+
raise Exception('Tried to return to homescreen but ran out of attempts...')
|
|
69
73
|
self._load_conversation_titles()
|
|
70
74
|
sleep(1)
|
|
71
75
|
|
|
@@ -201,8 +205,10 @@ class TelegramActions(AndroidAppiumActions):
|
|
|
201
205
|
sleep(1)
|
|
202
206
|
self.driver.find_element(by=AppiumBy.XPATH, value=text_field).click()
|
|
203
207
|
self.driver.find_element(by=AppiumBy.XPATH, value=text_field).send_keys(caption)
|
|
204
|
-
|
|
205
|
-
|
|
208
|
+
|
|
209
|
+
if self.driver.is_keyboard_shown():
|
|
210
|
+
self.driver.find_element(by=AppiumBy.XPATH,
|
|
211
|
+
value='//android.widget.EditText/../../android.widget.ImageView').click()
|
|
206
212
|
# press send
|
|
207
213
|
self.driver.find_element(by=AppiumBy.XPATH,
|
|
208
214
|
value='//android.widget.ImageView[lower-case(@content-desc)="send"]').click()
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
version = "2.3.2"
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pumapy
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.2
|
|
4
4
|
Home-page: https://github.com/NetherlandsForensicInstitute/puma
|
|
5
5
|
Author: Netherlands Forensic Institute
|
|
6
6
|
Author-email: netherlandsforensicinstitute@users.noreply.github.com
|
|
7
7
|
License: EUPL-1.2
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
9
9
|
License-File: LICENSE.txt
|
|
10
|
-
Requires-Dist: appium-python-client~=4.
|
|
11
|
-
Requires-Dist: selenium==4.14.0
|
|
10
|
+
Requires-Dist: appium-python-client~=4.3.0
|
|
12
11
|
Requires-Dist: Pillow==10.4.0
|
|
13
12
|
Requires-Dist: pytesseract==0.3.10
|
|
14
|
-
Requires-Dist: adb-pywrapper==1.0.1
|
|
15
13
|
Requires-Dist: geopy~=2.4.1
|
|
16
14
|
Requires-Dist: setuptools~=75.1.0
|
|
17
15
|
Requires-Dist: gpxpy~=1.6.2
|
|
18
|
-
Requires-Dist: adb_pywrapper~=1.0.
|
|
16
|
+
Requires-Dist: adb_pywrapper~=1.0.2
|
|
19
17
|
Requires-Dist: requests~=2.32.3
|
|
20
18
|
|
|
21
19
|
# Puma - Programmable Utility for Mobile Automation
|
|
@@ -16,15 +16,13 @@ setup(
|
|
|
16
16
|
packages=find_packages(include=['puma*']),
|
|
17
17
|
test_suite="test",
|
|
18
18
|
install_requires=[
|
|
19
|
-
"appium-python-client~=4.
|
|
20
|
-
"selenium==4.14.0",
|
|
19
|
+
"appium-python-client~=4.3.0",
|
|
21
20
|
"Pillow==10.4.0",
|
|
22
21
|
"pytesseract==0.3.10",
|
|
23
|
-
"adb-pywrapper==1.0.1",
|
|
24
22
|
"geopy~=2.4.1",
|
|
25
23
|
"setuptools~=75.1.0",
|
|
26
24
|
"gpxpy~=1.6.2",
|
|
27
|
-
"adb_pywrapper~=1.0.
|
|
25
|
+
"adb_pywrapper~=1.0.2",
|
|
28
26
|
"requests~=2.32.3"
|
|
29
27
|
],
|
|
30
28
|
)
|
pumapy-2.3.0/puma/version.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
version = "2.3.0"
|
|
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
|