Python Plugin Loader
PythonLoader 0.3.4
This plugin allows developers to code bukkit plugins in the python programming language. The plugins in python can either use a thin wrapper to the standard Bukkit API, or the newer decorator API. For more detailed instructions for installing this plugin and how to code plugins, take a look into the Readme on Github.
Features:
- Load bukkit plugins written in python.
Installation: Put PythonLoader.jar into plugins directory and jython.jar into lib directory (within bukkit folder not plugins folder).
Downloads:
- PythonLoader 0.3.4
- Jython (By downloading and using Jython you accept the Jython License)
- Source Code
Documentation
The Readme on github contains an introduction to creating plugins in python
Also make sure to check out @zaph34r's tutorial series
I have to give special credits to lahwran who created the whole decorator API and corrected many of my mistakes. :)
Is it possible to connect with a sql database using this? I can't seem to get it working
@RedSeamonster
Could run into problems with bukkit dev rules. I believe plugins on bukkit dev have to go through a process of verification by moderators that the plugin is what it says it is and not malware. Having people post their own python plugins here instead of submitting them as proper independent projects would introduce the risk of unverified project code and I believe would go against the rules. Better options are for people developing plugins with this to make their own project page, or for the creator of this plugin to create an external website as a repository for python plugins.
Building a Python-based ComputerCraft clone with this is fun!
Man, this thing is awesome. I've always been too lazy to learn Java, but now I can make some fun plugins with Python.
@ChengZi368
Jython does not support Python 3 (and most likely wont for a while). However, a beta for 2.7 was recently released. I've confirmed that it works (quite well) with PPL. Just replace the jython.jar in /lib/ with one from
. It is a beta, so don't be surprised if stuff doesn't work.
You should maybe add some kind of list in the description up there with some links to people's Python plugins. Maybe if we could get some people to post theirs.
python 3 support??
@masteroftime
Thanks a bunch, I'll be bookmarking that one! Also thanks for the quick reply. ^^
@Tott3
zaph34r has written a tutorial, you can find it here
I'm probably doing something very wrong, but I can't get this to work :(
Edit: I fixed it by using /dljython start, must have misplaced it or something. It's all working now. Wish Python was an officially supported plugin language, would be awesome! Thanks for this awesome plugin though. Are there any documentation for the decorator API more than the readme file? Can't find anything on google or I'm not googling the right thing. :P All I can find is the class thingie :( I'm quite new to this whole thing so not quite sure what I should be looking for :P
I did a quickt test with 1.4.7 and found no errors. However I rebuilt the plugin and uploaded it. You'll find it in the files section once it's been approved. If you run into problems using the plugin with the newest Bukkit version please PM me.
I will try to update it myself unofficially, and share the results if I am successful. However I think porting this will be far more complicated than a 1.7.3 gen plugin I have ported to latest updates a couple of times.
Can't wait to see this updated to 1.4.6 :D
Can you make a forum so you can help newbies and people can post their plugins for others to use and learn from.
I can't wait to see this grow. I love these programming ports, from Java to X languages.
Very excited to see this succeed, no doubt that it will.
Sorry for the problem with the invalid links but I had some problems with the bukkit team with approving the new version. The problem was that I automatically download Jython and because the cannot check if it doesn't contain a virus if I download it from an external site and they also cannot provide me a secure download link on dev.bukkit.org I couldn't get it approved. So now I moved the download process to a command you have to issue and put a warning message in and I hope it will statisfy them so that the new version will finally be approved.
@Cwbh10
Almost correct but that link is for the jython interpreter. For this plugin to work you need the "jython-standalone" version. I've corrected the links now.
Just a note: Your "PythonLoader 0.3.4" under the download subtitle doesn't work and neither does the Jython link.
:)
Found this Jython link: http://search.maven.org/remotecontent?filepath=org/python/jython/2.5.3/jython-2.5.3.jar
Here is a request: Support for compiled python (.pyc) code. I think it would be better for distribution. Also, it would be neat if there were some kind of installer for this plugin that could be packaged along side our own python plugins to make it easier to distribute plugins written for this system.
Please fix the 404 on the jython.jar link. I am assuming that it is a jar made specifically for bukkit and as such I won't find it in any of the official Jython downloads, so I await its availability to be restored.
Update: I found the jython.jar on the github page.