Skip to main content

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):

    python
    >>>from py_reflection import app
    >>>app.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

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.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_reflection-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 72c1d4a727aab23f938dfc220a51ad34d9c9f45be2fd5b25516fc1c0d8004e79
MD5 fc65fa500d6402e4eea623bd6327df44
BLAKE2b-256 7e08d7478a271a07790cbe2053c55e0ae2e922a54c5e70b3588d23a85c795246

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py_reflection-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 db9376d3b77c4b2cff6afc598358aec1f0ec19372f6f412db93bc8341d02e15b
MD5 afd77117e7aacaa838a87df65eb5e45e
BLAKE2b-256 f229320788936cb5cdb3349efbd9a4aa2bc2c89e1234691d8b480b54f811508c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page