{"id":17013984,"url":"https://github.com/enderzombi102/jythonmc","last_synced_at":"2025-04-12T09:12:34.317Z","repository":{"id":102982145,"uuid":"376948293","full_name":"ENDERZOMBI102/JythonMC","owner":"ENDERZOMBI102","description":"A library containing Jython for use within minecraft mods","archived":false,"fork":false,"pushed_at":"2024-06-21T16:30:50.000Z","size":4385,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T09:11:44.134Z","etag":null,"topics":["fabricmc","jython","library","python"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ENDERZOMBI102.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,"zenodo":null}},"created_at":"2021-06-14T20:30:04.000Z","updated_at":"2024-06-21T16:30:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"3450c426-b6d3-4076-992f-b14bbaea3a5d","html_url":"https://github.com/ENDERZOMBI102/JythonMC","commit_stats":{"total_commits":26,"total_committers":3,"mean_commits":8.666666666666666,"dds":"0.11538461538461542","last_synced_commit":"60e09d15085d9281fb3f38ac5a0eca3bd3ea35ec"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ENDERZOMBI102%2FJythonMC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ENDERZOMBI102%2FJythonMC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ENDERZOMBI102%2FJythonMC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ENDERZOMBI102%2FJythonMC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ENDERZOMBI102","download_url":"https://codeload.github.com/ENDERZOMBI102/JythonMC/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248543848,"owners_count":21121838,"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","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":["fabricmc","jython","library","python"],"created_at":"2024-10-14T06:14:46.006Z","updated_at":"2025-04-12T09:12:34.298Z","avatar_url":"https://github.com/ENDERZOMBI102.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![downloads](https://img.shields.io/modrinth/dt/jythonmc?color=00AF5C\u0026label=modrinth%20downloads\u0026style=flat-square\u0026logo=modrinth)](https://modrinth.com/mod/jythonmc/versions)\n[![followers](https://img.shields.io/modrinth/followers/jythonmc?color=00AF5C\u0026label=modrinth%20followers\u0026style=flat-square\u0026logo=modrinth)](https://modrinth.com/mod/jythonmc)\n\n_DISCLAIMER! THIS LIBRARY DOES NOT LET YOU CREATE MODS IN PYTHON!_\n\n# JythonMC\nA library providing Jython for use within minecraft mods.\n\n# Use\nThere's two methods to initialize the python system:\n\n 1) Add `\"jythonmc:use\" : true` to `custom` in your `fabric.mod.json`\u003cbr\u003e\n      this will automatically start the python system when JythonMC is loaded\n 3) Call `com.enderzombi102.jythonmc.Jython.initSystem()`\u003cbr\u003e\n      this will initialize the python system, but if its already initialized it'll do nothing\n\nAfter the system is initialized, you can use the python interpreter liek this:\n```java\ntry ( PythonInterpreter python = new PythonInterpreter() ) {\n\tpython.setErr(System.err);  // to set python's stderr\n\tpython.setOut(System.out);  // to set python's stdout\n\tpython.exec(CODE);  // executes the code in the string CODE\n} catch (Exception e) {\n\te.printStackTrace();  // python exceptions are translated to java ones if nothing catch them\n}\n```\n\n# Install\nbuild.gradle\n```gradle\nrepositories {\n\tmavenCentral()\n\tmaven {\n\t\turl 'https://repo.repsy.io/mvn/enderzombi102/mc/'\n\t}\n}\n\ndependencies {\n\tmodImplementation \"com.enderzombi102:JythonMC:$jythonmc_version\"\n}\n```\ngradle.properties\n```properties\njythonmc_version=1.0.2\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenderzombi102%2Fjythonmc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenderzombi102%2Fjythonmc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenderzombi102%2Fjythonmc/lists"}