Skip to content

Commit d50a487

Browse files
committed
To include in pip
1 parent 6895917 commit d50a487

7 files changed

Lines changed: 61 additions & 0 deletions

File tree

dist/ingov-0.0.1-py3-none-any.whl

3.02 KB
Binary file not shown.

dist/ingov-0.0.1.tar.gz

2.08 KB
Binary file not shown.

ingov.egg-info/PKG-INFO

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
Metadata-Version: 2.1
2+
Name: ingov
3+
Version: 0.0.1
4+
Summary: This project allows you to record your desktop or a browser controlled by Selenium
5+
Home-page: https://https://github.com/AntoData/PyDesktopBrowserRecorder
6+
Author: Anto P
7+
Author-email: ingovanpe@gmail.com
8+
License: UNKNOWN
9+
Description: # PyDesktopBrowserRecorder
10+
This project allows you to record your desktop or the browser during an automated test using selenium's webdriver
11+
12+
You just have to make the following import:
13+
from videoRecorder import desktopBrowserRecorder
14+
15+
Then you create a DesktopBrowserRecorder object, you have two modes. You have to provide the following parameters:
16+
obj = desktopBrowserRecorder.DesktopBrowserRecorder(folder,encoding)
17+
- folder: Folder where we want to create the folder that will contain the videos for our recording session
18+
- encoding: Encoding of the video. We only assure that using ".mp4" will work
19+
This way, when you start the recording session, the desktop will be recorded until we stop the recording session
20+
21+
But you can also provide a third parameter:
22+
obj = desktopBrowserRecorder.DesktopBrowserRecorder(folder,encoding,driver)
23+
- driver: A webdriver object
24+
In this case, we will record only the browser window(s) that are being controlled by that webdriver object
25+
26+
To start the recording session once we build the object we only have to use this method:
27+
obj.startRecordingSession()
28+
And our object will start recording in a parallel thread
29+
30+
To stop the recording session we only have to:
31+
obj.stopRecordingSession()
32+
The video will be saved and the threads finished
33+
34+
NOTE: If we are recording a browser and the size of it changes, we will stop the current video and start a new one with the new
35+
size of the window
36+
37+
Also, in the package config we include the module checkConfiguration.py:
38+
This module contains the method checkConfiguration() that reads the file importedModules.txt in the same folder and checks the modules listed in every line of this file have been installed in our environment. These modules are needed to run this project successfully. In case one is not installed, the function will tell you how to install it. Also, the module calls this function so you would only have to run this module, but you could also call this function from your program if needed
39+
40+
Also we have a folder test that includes a module called demo.py that you can run to see how this works and how this was tested.
41+
42+
NOTE: This was developed using the following versions of the following external libraries:
43+
- imageio_ffmpeg = 0.4.1
44+
- imageio = 2.5.0
45+
- selenium = 3.141.0
46+
- pyautogui = 0.9.48
47+
48+
Platform: UNKNOWN
49+
Classifier: Programming Language :: Python :: 3
50+
Classifier: License :: OSI Approved :: MIT License
51+
Classifier: Operating System :: OS Independent
52+
Requires-Python: >=3.7
53+
Description-Content-Type: text/markdown

ingov.egg-info/SOURCES.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
README.md
2+
setup.py
3+
ingov.egg-info/PKG-INFO
4+
ingov.egg-info/SOURCES.txt
5+
ingov.egg-info/dependency_links.txt
6+
ingov.egg-info/top_level.txt
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

ingov.egg-info/top_level.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
File renamed without changes.

0 commit comments

Comments
 (0)