Skip to main content

Rest API endpoint to automate Microfocus Reflection Desktop Workspace

Project description

py_reflection


██████╗░██╗░░░██╗██████╗░███████╗███████╗██╗░░░░░███████╗░█████╗░████████╗██╗░█████╗░███╗░░██╗
██╔══██╗╚██╗░██╔╝██╔══██╗██╔════╝██╔════╝██║░░░░░██╔════╝██╔══██╗╚══██╔══╝██║██╔══██╗████╗░██║
██████╔╝░╚████╔╝░██████╔╝█████╗░░█████╗░░██║░░░░░█████╗░░██║░░╚═╝░░░██║░░░██║██║░░██║██╔██╗██║
██╔═══╝░░░╚██╔╝░░██╔══██╗██╔══╝░░██╔══╝░░██║░░░░░██╔══╝░░██║░░██╗░░░██║░░░██║██║░░██║██║╚████║
██║░░░░░░░░██║░░░██║░░██║███████╗██║░░░░░███████╗███████╗╚█████╔╝░░░██║░░░██║╚█████╔╝██║░╚███║
╚═╝░░░░░░░░╚═╝░░░╚═╝░░╚═╝╚══════╝╚═╝░░░░░╚══════╝╚══════╝░╚════╝░░░░╚═╝░░░╚═╝░╚════╝░╚═╝░░╚══╝

Developed by - Prasun Bhattacharyya Email - bhattacharyyaprasun47@gmail.com

Rest API endpoint to automate Microfocus Reflection Desktop Workspace

**All requests in this library should be GET only.

How to start:

  1. Install the package via pip:

    py -m pip install py_reflection
    
  2. Run the package (Run the commands below in terminal):

    set FLASK_APP=py_reflection
    set FLASK_ENV=development
    pip install -e .
    flask run
    

Api Endpoint and their description: ** All of the endpoints have a common parameter view_idx(integer, optional). Use this parameter to toggle between session in emulator.

  1. /send_keys: Use this endpoint to press keys in the emulator. Parameters to pass: text(string), x(integer), y(integer)

  2. /get_text: Use this endpoint to get text from a specific coordinate. Parameters to pass: x(integer), y(integer)

  3. /press_key: Use this endpoint to press special control keys: Parameters to pass: control_key(string all in caps). Available control keys: 'F1','F2','F3','F4','F5','F6','F7','F8','F9','F10','F11','F12','F13','F14','F15','F16','F17','F18','F19','TAB','DELETE','LEFT','DOWN','UP','RIGHT','PAGEUP','PAGEDOWN','CLEAR','END','ENTER'

  4. /get_text_coordinates: Use this endpoint to get coordinates of text present in emulator screen. Parameters to pass: text(string), total_row_count(integer, optional), total_column_count(integer, optional)

  5. /check_text_present: Use this endpoint to check if given text present in emulator screen. Parameters to pass: text(string), total_row_count(integer, optional), total_column_count(integer, optional)

  6. /move_cursor: Use this endpoint to move cursor to specified coordinate. Parameters to pass: x(integer), y(integer)

  7. /get_view_count: Use this endpoint to get number of sessions opened in emulator.

Link to GitHub: https://github.com/prasun1060/py_reflection

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_reflection-0.1.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

py_reflection-0.1.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file py_reflection-0.1.0.tar.gz.

File metadata

  • Download URL: py_reflection-0.1.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.0

File hashes

Hashes for py_reflection-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2b5fc90362a8e2750ea6f54e4933c74813f79ba357c8099d851b1e1bc66c16c0
MD5 4aaa6b2a565870685053161223cac866
BLAKE2b-256 a941f5b6b946be8b6b990ba096c6687a6df3ee6d7c4bd61bfd4bbc58c91f3105

See more details on using hashes here.

File details

Details for the file py_reflection-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: py_reflection-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.0

File hashes

Hashes for py_reflection-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3249e3a8838dc722ad614e148feeb60fb149abe5e65bae1dbce00dd50a9744cc
MD5 7a123c1f1061a99ea517b2a7e3b24be6
BLAKE2b-256 85fad983e9ee1f3fa7c9ccf62f62b927a19187c44e055f270acf60cc2526a8b0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page