From 4c8ca494dfcd737206093d4fb75e6aeadb090e7c Mon Sep 17 00:00:00 2001 From: Ivan Maslov Date: Thu, 7 Nov 2019 20:38:25 +0300 Subject: [PATCH] 1.0.7 #Version in one place #AddREADME --- PythonDebug_64.cmd | 3 +++ Robot/README.md | 58 +++++++++++++++++++++++++++++++++++++++++++++ Robot/VersionGet.py | 12 ++++++++++ Robot/__init__.py | 3 ++- Robot/setup.py | 8 +++++-- Robot/test.json | 1 + v1.0.6 => v1.0.7 | 0 7 files changed, 82 insertions(+), 3 deletions(-) create mode 100644 PythonDebug_64.cmd create mode 100644 Robot/README.md create mode 100644 Robot/VersionGet.py create mode 100644 Robot/test.json rename v1.0.6 => v1.0.7 (100%) diff --git a/PythonDebug_64.cmd b/PythonDebug_64.cmd new file mode 100644 index 00000000..60dfd0bc --- /dev/null +++ b/PythonDebug_64.cmd @@ -0,0 +1,3 @@ +cd %~dp0 +Resources\WPy64-3720\python-3.7.2.amd64\python.exe +pause >nul \ No newline at end of file diff --git a/Robot/README.md b/Robot/README.md new file mode 100644 index 00000000..f5f30305 --- /dev/null +++ b/Robot/README.md @@ -0,0 +1,58 @@ +# OpenRPA +First open source RPA platform for business is released! + +# How to run +Studio +Double click to Studio\StudioRun_32.cmd or Studio\StudioRun_64.cmd + +# Robot how to debug +Robot\PythonDebug_64.cmd +import Robot +Robot.ActivityRun( + { + ModuleName: <"GUI"|..., str>, + ActivityName: , + ArgumentList: [, ...] - optional, + ArgumentDict: {:, ...} - optional + } +) + +# Robot example script: +Robot\Examples\GetFolderList\Python_32_Script_Run.cmd + +# Python 32 bit +Resources\WPy32-3720\python-3.7.2\python.exe + +# Python 64 bit +Resources\WPy64-3720\python-3.7.2.amd64\python.exe + +# Module GUI activity List: +############################ +Новая версия +############################ +Получить список элементов, который удовлетворяет условиям через расширенный движок поиска +[ + { + "index":<Позиция элемента в родительском объекте>, + "depth_start" - глубина, с которой начинается поиск (по умолчанию 1) + "depth_end" - глубина, до которой ведется поиск (по умолчанию 1) + "class_name" - наименование класса, который требуется искать + "title" - наименование заголовка + "rich_text" - наименование rich_text + } +] + + +# Open RPA Wiki +- [Home](https://gitlab.com/UnicodeLabs/OpenRPA/wikis/home) +- [04. Desktop app access (win32 & ui automation)](https://gitlab.com/UnicodeLabs/OpenRPA/wikis/04.-Desktop-app-access-(win32-&-ui-automation)) + +#Dependencies +* Python 3 x32 [psutil, pywinauto, wmi, PIL, keyboard, pyautogui, win32api (pywin32), selenium, openCV, tesseract, requests, lxml, PyMuPDF] +* Python 3 x64 [psutil, pywinauto, wmi, PIL, keyboard, pyautogui, win32api (pywin32), selenium, openCV, tesseract, requests, lxml, PyMuPDF] +* pywinauto (Windows GUI automation) +* Semantic UI CSS framework +* JsRender by https://www.jsviews.com (switch to Handlebars) +* Handlebars + +Created by Unicode Labs (Ivan Maslov) \ No newline at end of file diff --git a/Robot/VersionGet.py b/Robot/VersionGet.py new file mode 100644 index 00000000..e6b9d58d --- /dev/null +++ b/Robot/VersionGet.py @@ -0,0 +1,12 @@ +import os +import re +#Just call Version.Get("..") +def Get(inFolderPath): + lREPatternString="^v[0-9]*.[0-9]*.[0-9]*$" + lResultList = [f for f in os.listdir(inFolderPath) if re.match(lREPatternString,f)] + lResult=None + if len(lResultList) == 0: + lResult = None + else: + lResult = lResultList[0] + return lResult \ No newline at end of file diff --git a/Robot/__init__.py b/Robot/__init__.py index 421811e5..43b95459 100644 --- a/Robot/__init__.py +++ b/Robot/__init__.py @@ -3,7 +3,8 @@ r""" The OpenRPA package (from UnicodeLabs) """ -__version__ = '1.0.2' +import Version +__version__ = Version.Get("..") __all__ = [ 'GUI','Clipboard','IntegrationOrchestrator','Window' ] diff --git a/Robot/setup.py b/Robot/setup.py index 3b9f7b34..326e5671 100644 --- a/Robot/setup.py +++ b/Robot/setup.py @@ -1,9 +1,13 @@ from setuptools import setup, find_packages +import Version +def LongDescriptionRead(): + with open('README.md') as f: + long_description = f.read() setup(name='pyOpenRPA', - version='1.0.3', + version=Version.Get(".."), description='First open source RPA platform for business', - long_description='The OpenRPA - first open source RPA platform for business (by Ivan Maslov). Full manual you can find at: https://gitlab.com/UnicodeLabs/OpenRPA/wikis/home', + long_description=LongDescriptionRead(), classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: MIT License', diff --git a/Robot/test.json b/Robot/test.json new file mode 100644 index 00000000..9e26dfee --- /dev/null +++ b/Robot/test.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/v1.0.6 b/v1.0.7 similarity index 100% rename from v1.0.6 rename to v1.0.7