{"id":19607111,"url":"https://github.com/robocorp/java-access-bridge-wrapper","last_synced_at":"2025-09-05T06:31:39.157Z","repository":{"id":43795513,"uuid":"377057235","full_name":"robocorp/java-access-bridge-wrapper","owner":"robocorp","description":"Python wrapper around the Java Access Bridge Windows .dll","archived":false,"fork":false,"pushed_at":"2024-07-03T09:03:18.000Z","size":98,"stargazers_count":17,"open_issues_count":9,"forks_count":7,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-09-03T16:56:09.390Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robocorp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-15T06:19:37.000Z","updated_at":"2025-08-09T06:00:16.000Z","dependencies_parsed_at":"2024-06-19T06:13:46.973Z","dependency_job_id":"e3936317-fb19-45f2-b065-91822a1b78fe","html_url":"https://github.com/robocorp/java-access-bridge-wrapper","commit_stats":{"total_commits":45,"total_committers":4,"mean_commits":11.25,"dds":0.0888888888888889,"last_synced_commit":"6a94790c3a5c794e94d8a087d983b5f9a5f7861d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/robocorp/java-access-bridge-wrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robocorp%2Fjava-access-bridge-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robocorp%2Fjava-access-bridge-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robocorp%2Fjava-access-bridge-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robocorp%2Fjava-access-bridge-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robocorp","download_url":"https://codeload.github.com/robocorp/java-access-bridge-wrapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robocorp%2Fjava-access-bridge-wrapper/sbom","scorecard":{"id":781033,"data":{"date":"2025-08-11","repo":{"name":"github.com/robocorp/java-access-bridge-wrapper","commit":"bfa4eaefc5aa093a6de293a9c2867e07badc9345"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 2/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yaml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/robocorp/java-access-bridge-wrapper/main.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yaml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/robocorp/java-access-bridge-wrapper/main.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yaml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/robocorp/java-access-bridge-wrapper/main.yaml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/main.yaml:22","Warn: pipCommand not pinned by hash: .github/workflows/main.yaml:24","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2024-48 / GHSA-fj7x-q9j7-g6q6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T04:55:29.995Z","repository_id":43795513,"created_at":"2025-08-23T04:55:29.995Z","updated_at":"2025-08-23T04:55:29.995Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273501374,"owners_count":25117086,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T10:08:55.497Z","updated_at":"2025-09-05T06:31:38.718Z","avatar_url":"https://github.com/robocorp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Version](https://img.shields.io/pypi/v/java-access-bridge-wrapper.svg?label=version)](https://pypi.org/project/java-access-bridge-wrapper/)\n[![License](https://img.shields.io/pypi/l/java-access-bridge-wrapper.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)\n\n# Introduction\n\nPython wrapper around the Java Access Bridge / Windows Access Bridge.\n\n# Requirements\n\n* 64-bit Windows\n* Java \u003e= 8 (https://docs.aws.amazon.com/corretto/latest/corretto-8-ug/downloads-list.html)\n  * If you are doing development install JDK, otherwise JRE is enough\n* Python \u003e= 3.8 (https://www.python.org/downloads/release/python-375/)\n\nEnable the Java Access Bridge in windows\n\n    C:\\path\\to\\java\\bin\\jabswitch -enable\n\n# Install\n\n    pip install java-access-bridge-wrapper\n\n# How to use\n\nImport the Java Access Bridge (JAB) wrapper and optionally the context tree\n\n    from JABWrapper.jab_wrapper import JavaAccessBridgeWrapper\n    from JABWrapper.context_tree import ContextNode, ContextTree, SearchElement\n\nThe JAB creates an virtual GUI window when it is opened. For the JAB to operate and receive events from the GUI, the calling code needs to implement the windows\nmessage pump and call it in a loop. The JABWrapper object needs to be in the same thread.\n\nThis can be achieved for example by starting the message pump in a separate thread, where the JAB object is also initialized.\n\n    GetMessage = ctypes.windll.user32.GetMessageW\n    TranslateMessage = ctypes.windll.user32.TranslateMessage\n    DispatchMessage = ctypes.windll.user32.DispatchMessageW\n\n    def pump_background(pipe: queue.Queue):\n        try:\n            jab_wrapper = JavaAccessBridgeWrapper()\n            pipe.put(jab_wrapper)\n            message = byref(wintypes.MSG())\n            while GetMessage(message, 0, 0, 0) \u003e 0:\n                TranslateMessage(message)\n                logging.debug(\"Dispatching msg={}\".format(repr(message)))\n                DispatchMessage(message)\n        except Exception as err:\n            pipe.put(None)\n\n    def main():\n        pipe = queue.Queue()\n            thread = threading.Thread(target=pump_background, daemon=True, args=[pipe])\n            thread.start()\n            jab_wrapper = pipe.get()\n            if not jab_wrapper:\n                raise Exception(\"Failed to initialize Java Access Bridge Wrapper\")\n            time.sleep(0.1) # Wait until the initial messages are parsed, before accessing frames\n\n    if __name__ == \"__main__\":\n        main()\n\nOnce the JABWrapper object is initialized, attach to some frame and optionally create the context tree to get the element tree of the application.\n\n    jab_wrapper.switch_window_by_title(\"Frame title\")\n    context_tree = ContextTree(jab_wrapper)\n\n# Development\n\n## Prerequisites\n\n1. Install Invoke, Poetry and the other required dependencies in order to be able to develop and package the library:\n   `pip install -Ur requirements.txt`.\n   - If you want to isolate these from the other projects and not rely on the OS\n     Python, enable a (_pyenv_) virtual environment first by following these\n     [instructions](https://github.com/robocorp/rpaframework/blob/master/docs/source/contributing/development.md#virtual-environments).\n2. Now you're ready to set-up Poetry for the first time with `inv setup`.\n   - Check with `-h` on how to pass credentials for ensuring that both your production  PyPI and CI DevPI are\n     configured. You'll find these in our **Robocorp** \u003e **Shared** 1Password by searching for keywords like \"pypi\"\n     (where we recommend a personal _token_ instead) and \"devpi\".\n3. Run `inv update` so the library gets ready for development.\n\n## Testing\n\nRun test script against a simple Swing application.\n\nSet environment variable\n\n    set RC_JAVA_ACCESS_BRIDGE_DLL=\"C:\\path\\to\\Java\\bin\\WindowsAccessBridge-64.dll\"\n\nUpdate requirements and install the library in development mode\n\n    inv update\n\nRun tests\n\n    inv test  # runs all the tests in all scenarios\n    inv test -s -t test_jab_wrapper.py  # runs all the tests from a file in one simple common scenario\n    inv test -s -c -t test_jab_wrapper.py::test_depth  # as above, but specific test and captures output\n\n## Packaging\n\nCheck linting\n\n    inv lint  # apply with '-a'\n\nBuilding and publishing\n\n    inv publish  # '-c' for DevPI\n\n## TODO:\n\n* Support for 32-bit Java Access Bridge version\n* Implement rest of the utility functions to the JABWrapper\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobocorp%2Fjava-access-bridge-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobocorp%2Fjava-access-bridge-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobocorp%2Fjava-access-bridge-wrapper/lists"}