summaryrefslogtreecommitdiff
path: root/python-clointfusion.spec
blob: 06894dfc2287303ab1b6f554f6223c350cb22581 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
%global _empty_manifest_terminate_build 0
Name:		python-clointfusion
Version:	1.1.7
Release:	1
Summary:	Python based Automation (RPA) Platform
License:	BSD
URL:		https://github.com/ClointFusion/ClointFusion
Source0:	https://mirrors.aliyun.com/pypi/web/packages/a5/a4/541cde5425c52f85494ce64107d7e14599cfe970d0d3c7e0f6acbf52e45a/clointfusion-1.1.7.tar.gz
BuildArch:	noarch

Requires:	python3-pandas
Requires:	python3-PyAutoGUI
Requires:	python3-clipboard
Requires:	python3-PySimpleGUI
Requires:	python3-emoji
Requires:	python3-matplotlib
Requires:	python3-openpyxl
Requires:	python3-requests
Requires:	python3-cryptocode
Requires:	python3-xlsx2html
Requires:	python3-pyfiglet
Requires:	python3-xls2xlsx
Requires:	python3-xlwt
Requires:	python3-webdriver-manager
Requires:	python3-click
Requires:	python3-pyinspect
Requires:	python3-speedtest-cli
Requires:	python3-rich
Requires:	python3-SpeechRecognition
Requires:	python3-pyttsx3
Requires:	python3-win10toast-click
Requires:	python3-helium
Requires:	python3-colored

%description
# Installation
<br>
> ### ClointFusion is now supported on Windows / Ubuntu / macOS* !
## Windows :
> ### Windows users can download EXE pre-loaded with Python 3.9 and ClointFusion package: <a href='https://github.com/ClointFusion/ClointFusion/releases/download/v1.0.0/ClointFusion_Community_Edition.exe' target="_blank">Windows EXE</a>
### OR
* ClointFusion is compatible with both Windows 10 and Windows 11.
* Installing on a Windows PC is a breeze.
* Make certain that Python 3.8 or Python 3.9 is installed.
* Then, from the command prompt, execute the following command.
    ```
    pip install -U ClointFusion
    ```
## Ubuntu :
* Clointfusion requires sudo rights to install on Ubuntu.
* Additional Linux packages must be installed before Clointfusion can be installed.
* Make certain that Python 3.8 or Python 3.9 is installed.
* Then, from the command prompt, execute the following command.
    ```
    sudo apt-get install python3-tk python3-dev
    sudo pip3 install ClointFusion
    ```
<br>
# Importing
<br>
> ### ClointFusion can be accessed using one of two methods.
## Windows :
* ### Terminal : Opens a Python interpreter using the command " import ClointFusion as cf "
    ```
    cf_py
    ```
* ### Code Editor or IDE : Import ClointFusion first, and then run the file in Python.
    ```
    # cf_bot.py
    import ClointFusion as cf
    cf.browser_activate()
    ```
    ```
    python cf_bot.py
    ```
## Ubuntu :
* ### Terminal : Opens a Python interpreter with the command " import ClointFusion as cf " and the required sudo privileges.
    ```
    sudo cf_py
    ```
* ### Code Editor or IDE : Run the file with sudo permissions.
    ```
    # cf_bot.py
    import ClointFusion as cf
    cf.ChromeBrowser()
    ```
    ```
    sudo python3 cf_bot.py
    ```
<br>
# Features
<br>
> ## DOST : Your friend in automation || Build RPA Bots without Code.
` DOST ` is an interactive Blockly based ``no-code`` BOT Builder platform built and optimized for ClointFusion-based BOT building. We feel that automation is important for people other than programmers. Using DOST, even a common man can create a BOT in minutes.
### Advantages of DOST
- Easy to Use.
- Build BOT in minutes.
- No prior Programming knowledge needed.
# ClointFusion in Action
## **Now access more than 100 functions (hit ctrl+space in your IDE)**
***TIP: You can find and inspect all of ClointFusion's functions using only one function i.e., `find()`. Just pass the partial name of the function.***
```
cf.find("sort")
cf.find("gui")
```
* ### 4 functions on Mouse Operations:
| Function | Accepted Parameters | Description |
| :--------: | :----: | :----------- |
| cf.mouse_click() | x=" ", y=" ", left_or_right="left", no_of_clicks=1  | Clicks at the given X Y Co-ordinates on the screen using ingle / double / triple click(s). Optionally copies selected data to clipboard (works for double / triple clicks) |
| cf.mouse_move() | x=" ", y=" " | Moves the cursor to the given X Y Co-ordinates |
| cf.mouse_drag_from_to() | x1=" ", y1=" ", x2=" ",y2=" ", delay=0.5 | Clicks and drags from X1 Y1 co-ordinates to X2 Y2 Co-ordinates on the screen |
| cf.mouse_search_snip_return_coordinates_x_y() | img=" ", wait=180 | Searches the given image on the screen and returns its center of X Y co-ordinates. |
<br>

%package -n python3-clointfusion
Summary:	Python based Automation (RPA) Platform
Provides:	python-clointfusion
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-pip
%description -n python3-clointfusion
# Installation
<br>
> ### ClointFusion is now supported on Windows / Ubuntu / macOS* !
## Windows :
> ### Windows users can download EXE pre-loaded with Python 3.9 and ClointFusion package: <a href='https://github.com/ClointFusion/ClointFusion/releases/download/v1.0.0/ClointFusion_Community_Edition.exe' target="_blank">Windows EXE</a>
### OR
* ClointFusion is compatible with both Windows 10 and Windows 11.
* Installing on a Windows PC is a breeze.
* Make certain that Python 3.8 or Python 3.9 is installed.
* Then, from the command prompt, execute the following command.
    ```
    pip install -U ClointFusion
    ```
## Ubuntu :
* Clointfusion requires sudo rights to install on Ubuntu.
* Additional Linux packages must be installed before Clointfusion can be installed.
* Make certain that Python 3.8 or Python 3.9 is installed.
* Then, from the command prompt, execute the following command.
    ```
    sudo apt-get install python3-tk python3-dev
    sudo pip3 install ClointFusion
    ```
<br>
# Importing
<br>
> ### ClointFusion can be accessed using one of two methods.
## Windows :
* ### Terminal : Opens a Python interpreter using the command " import ClointFusion as cf "
    ```
    cf_py
    ```
* ### Code Editor or IDE : Import ClointFusion first, and then run the file in Python.
    ```
    # cf_bot.py
    import ClointFusion as cf
    cf.browser_activate()
    ```
    ```
    python cf_bot.py
    ```
## Ubuntu :
* ### Terminal : Opens a Python interpreter with the command " import ClointFusion as cf " and the required sudo privileges.
    ```
    sudo cf_py
    ```
* ### Code Editor or IDE : Run the file with sudo permissions.
    ```
    # cf_bot.py
    import ClointFusion as cf
    cf.ChromeBrowser()
    ```
    ```
    sudo python3 cf_bot.py
    ```
<br>
# Features
<br>
> ## DOST : Your friend in automation || Build RPA Bots without Code.
` DOST ` is an interactive Blockly based ``no-code`` BOT Builder platform built and optimized for ClointFusion-based BOT building. We feel that automation is important for people other than programmers. Using DOST, even a common man can create a BOT in minutes.
### Advantages of DOST
- Easy to Use.
- Build BOT in minutes.
- No prior Programming knowledge needed.
# ClointFusion in Action
## **Now access more than 100 functions (hit ctrl+space in your IDE)**
***TIP: You can find and inspect all of ClointFusion's functions using only one function i.e., `find()`. Just pass the partial name of the function.***
```
cf.find("sort")
cf.find("gui")
```
* ### 4 functions on Mouse Operations:
| Function | Accepted Parameters | Description |
| :--------: | :----: | :----------- |
| cf.mouse_click() | x=" ", y=" ", left_or_right="left", no_of_clicks=1  | Clicks at the given X Y Co-ordinates on the screen using ingle / double / triple click(s). Optionally copies selected data to clipboard (works for double / triple clicks) |
| cf.mouse_move() | x=" ", y=" " | Moves the cursor to the given X Y Co-ordinates |
| cf.mouse_drag_from_to() | x1=" ", y1=" ", x2=" ",y2=" ", delay=0.5 | Clicks and drags from X1 Y1 co-ordinates to X2 Y2 Co-ordinates on the screen |
| cf.mouse_search_snip_return_coordinates_x_y() | img=" ", wait=180 | Searches the given image on the screen and returns its center of X Y co-ordinates. |
<br>

%package help
Summary:	Development documents and examples for clointfusion
Provides:	python3-clointfusion-doc
%description help
# Installation
<br>
> ### ClointFusion is now supported on Windows / Ubuntu / macOS* !
## Windows :
> ### Windows users can download EXE pre-loaded with Python 3.9 and ClointFusion package: <a href='https://github.com/ClointFusion/ClointFusion/releases/download/v1.0.0/ClointFusion_Community_Edition.exe' target="_blank">Windows EXE</a>
### OR
* ClointFusion is compatible with both Windows 10 and Windows 11.
* Installing on a Windows PC is a breeze.
* Make certain that Python 3.8 or Python 3.9 is installed.
* Then, from the command prompt, execute the following command.
    ```
    pip install -U ClointFusion
    ```
## Ubuntu :
* Clointfusion requires sudo rights to install on Ubuntu.
* Additional Linux packages must be installed before Clointfusion can be installed.
* Make certain that Python 3.8 or Python 3.9 is installed.
* Then, from the command prompt, execute the following command.
    ```
    sudo apt-get install python3-tk python3-dev
    sudo pip3 install ClointFusion
    ```
<br>
# Importing
<br>
> ### ClointFusion can be accessed using one of two methods.
## Windows :
* ### Terminal : Opens a Python interpreter using the command " import ClointFusion as cf "
    ```
    cf_py
    ```
* ### Code Editor or IDE : Import ClointFusion first, and then run the file in Python.
    ```
    # cf_bot.py
    import ClointFusion as cf
    cf.browser_activate()
    ```
    ```
    python cf_bot.py
    ```
## Ubuntu :
* ### Terminal : Opens a Python interpreter with the command " import ClointFusion as cf " and the required sudo privileges.
    ```
    sudo cf_py
    ```
* ### Code Editor or IDE : Run the file with sudo permissions.
    ```
    # cf_bot.py
    import ClointFusion as cf
    cf.ChromeBrowser()
    ```
    ```
    sudo python3 cf_bot.py
    ```
<br>
# Features
<br>
> ## DOST : Your friend in automation || Build RPA Bots without Code.
` DOST ` is an interactive Blockly based ``no-code`` BOT Builder platform built and optimized for ClointFusion-based BOT building. We feel that automation is important for people other than programmers. Using DOST, even a common man can create a BOT in minutes.
### Advantages of DOST
- Easy to Use.
- Build BOT in minutes.
- No prior Programming knowledge needed.
# ClointFusion in Action
## **Now access more than 100 functions (hit ctrl+space in your IDE)**
***TIP: You can find and inspect all of ClointFusion's functions using only one function i.e., `find()`. Just pass the partial name of the function.***
```
cf.find("sort")
cf.find("gui")
```
* ### 4 functions on Mouse Operations:
| Function | Accepted Parameters | Description |
| :--------: | :----: | :----------- |
| cf.mouse_click() | x=" ", y=" ", left_or_right="left", no_of_clicks=1  | Clicks at the given X Y Co-ordinates on the screen using ingle / double / triple click(s). Optionally copies selected data to clipboard (works for double / triple clicks) |
| cf.mouse_move() | x=" ", y=" " | Moves the cursor to the given X Y Co-ordinates |
| cf.mouse_drag_from_to() | x1=" ", y1=" ", x2=" ",y2=" ", delay=0.5 | Clicks and drags from X1 Y1 co-ordinates to X2 Y2 Co-ordinates on the screen |
| cf.mouse_search_snip_return_coordinates_x_y() | img=" ", wait=180 | Searches the given image on the screen and returns its center of X Y co-ordinates. |
<br>

%prep
%autosetup -n clointfusion-1.1.7

%build
%py3_build

%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
	find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
	find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
	find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
	find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
	find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .

%files -n python3-clointfusion -f filelist.lst
%dir %{python3_sitelib}/*

%files help -f doclist.lst
%{_docdir}/*

%changelog
* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.7-1
- Package Spec generated