{"id":16075541,"url":"https://github.com/madhawav/j2pbind","last_synced_at":"2026-04-27T22:31:33.639Z","repository":{"id":89023259,"uuid":"129541073","full_name":"madhawav/J2PBind","owner":"madhawav","description":"Java to Python Bindings","archived":false,"fork":false,"pushed_at":"2018-04-15T14:21:55.000Z","size":50,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T10:42:07.492Z","etag":null,"topics":["java-bindings","python","python-bindings","python3","wrapper"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/madhawav.png","metadata":{"files":{"readme":"README.MD","changelog":null,"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":"2018-04-14T17:53:20.000Z","updated_at":"2022-02-19T15:15:36.000Z","dependencies_parsed_at":"2023-06-13T14:31:10.059Z","dependency_job_id":null,"html_url":"https://github.com/madhawav/J2PBind","commit_stats":{"total_commits":15,"total_committers":2,"mean_commits":7.5,"dds":0.06666666666666665,"last_synced_commit":"55626fa4e1f4b8388d8d8571a7de830b9ffe6b41"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/madhawav/J2PBind","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhawav%2FJ2PBind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhawav%2FJ2PBind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhawav%2FJ2PBind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhawav%2FJ2PBind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madhawav","download_url":"https://codeload.github.com/madhawav/J2PBind/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhawav%2FJ2PBind/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32358509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["java-bindings","python","python-bindings","python3","wrapper"],"created_at":"2024-10-09T09:06:23.225Z","updated_at":"2026-04-27T22:31:33.625Z","avatar_url":"https://github.com/madhawav.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java to Python Bind Generator (J2PBG)\n\nGenerate Python bindings (wrappers) on Java Classes. \n* Generates Intellisense friendly Python bindings on Java Classes.\n* Bindings are based on Pyjnius.\n* Compatible with Python 3.\n* Supports overriding of Java Classes and Interfaces from Python.\n  - Callbacks to Python from Java.\n\n## How to run?\nThe _j2pBindCLI_ can be used to generate Python bindings using java .class files.\n```\njava -jar j2pBindCLI-0.1.0-SNAPSHOT-jar-with-dependencies.jar [path to root directory of compiled classes] [output path]\n```\n*Note: First follow the instructions in `How to Install` section.\n\n## Example Code\nThis example code extends a Java Class using a Python Class. \n\n1) Create a directory for example code. (say `example_code_directory`)\n2) Create the subdirectory structure `example_code_directory/java/test`.\n3) Copy [TestClass.java](j2pBindLib/src/test/resources/SampleCode/TestClass.java) to `example_code_directory/java/test`. \n   - Note that _TestClass_ is a Java Class belonging to package _test_.\n   - It is an abstract class with abstract methods.  \n4) Compile TestClass.java. `javac TestClass.java`\n5) Navigate to `source_directory/j2pBindCLI/target` and run `java -jar j2pBindCLI-0.1.0-SNAPSHOT-jar-with-dependencies.jar example_code_directory/java example_code_directory`.\n   - Now you have python bindings generated for _TestClass.java_.\n6) Copy [TestApp.py](j2pBindLib/src/test/resources/SampleCode/TestApp.py) to `example_code_directory/python/`.\n   - TestApp.py has class _TestClassImpl_ which extends _TestClass.java_.\n   - It overrides some of the methods of the extended Java class.\n7) Run `python3 TestApp.py`\n   - This executes a sequence of method calls with print lines explaining the control flow.\n \n\n## How to Install?\n1) Install dependencies\n   - Java 8.0+ with maven\n   - Python 3.5\n   - Cython `sudo pip3 install cython`\n   - Pyjnius `sudo pip3 install pyjnius` \n2) Clone the project and navigate to source directory\n3) Run `mvn clean install`\n4) If the build succeeds, _j2pBindCLI_ would be located at j2pBindCLI/target directory.\n\n## Future Work\n - Static functions support\n - Fields support\n - Maven binding generator plugin","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadhawav%2Fj2pbind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadhawav%2Fj2pbind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadhawav%2Fj2pbind/lists"}