You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(6) |
Nov
(8) |
Dec
(51) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(105) |
Feb
(93) |
Mar
(194) |
Apr
(145) |
May
(100) |
Jun
(111) |
Jul
(117) |
Aug
(126) |
Sep
(233) |
Oct
(138) |
Nov
(164) |
Dec
(109) |
| 2002 |
Jan
(216) |
Feb
(175) |
Mar
(216) |
Apr
(194) |
May
(157) |
Jun
(140) |
Jul
(158) |
Aug
(73) |
Sep
(105) |
Oct
(164) |
Nov
(104) |
Dec
(95) |
| 2003 |
Jan
(72) |
Feb
(69) |
Mar
(81) |
Apr
(151) |
May
(101) |
Jun
(139) |
Jul
(99) |
Aug
(118) |
Sep
(115) |
Oct
(151) |
Nov
(161) |
Dec
(102) |
| 2004 |
Jan
(120) |
Feb
(175) |
Mar
(106) |
Apr
(111) |
May
(54) |
Jun
(78) |
Jul
(76) |
Aug
(105) |
Sep
(94) |
Oct
(143) |
Nov
(75) |
Dec
(85) |
| 2005 |
Jan
(99) |
Feb
(77) |
Mar
(164) |
Apr
(97) |
May
(79) |
Jun
(57) |
Jul
(65) |
Aug
(102) |
Sep
(95) |
Oct
(129) |
Nov
(123) |
Dec
(52) |
| 2006 |
Jan
(48) |
Feb
(99) |
Mar
(90) |
Apr
(51) |
May
(81) |
Jun
(136) |
Jul
(56) |
Aug
(109) |
Sep
(50) |
Oct
(44) |
Nov
(74) |
Dec
(75) |
| 2007 |
Jan
(92) |
Feb
(137) |
Mar
(93) |
Apr
(79) |
May
(52) |
Jun
(74) |
Jul
(143) |
Aug
(175) |
Sep
(154) |
Oct
(137) |
Nov
(88) |
Dec
(90) |
| 2008 |
Jan
(58) |
Feb
(113) |
Mar
(167) |
Apr
(88) |
May
(105) |
Jun
(37) |
Jul
(87) |
Aug
(72) |
Sep
(56) |
Oct
(41) |
Nov
(102) |
Dec
(70) |
| 2009 |
Jan
(115) |
Feb
(113) |
Mar
(126) |
Apr
(58) |
May
(125) |
Jun
(45) |
Jul
(90) |
Aug
(125) |
Sep
(84) |
Oct
(61) |
Nov
(111) |
Dec
(61) |
| 2010 |
Jan
(85) |
Feb
(86) |
Mar
(130) |
Apr
(58) |
May
(57) |
Jun
(32) |
Jul
(25) |
Aug
(50) |
Sep
(41) |
Oct
(65) |
Nov
(63) |
Dec
(24) |
| 2011 |
Jan
(43) |
Feb
(31) |
Mar
(28) |
Apr
(68) |
May
(53) |
Jun
(42) |
Jul
(58) |
Aug
(26) |
Sep
(51) |
Oct
(76) |
Nov
(60) |
Dec
(9) |
| 2012 |
Jan
(16) |
Feb
(32) |
Mar
(32) |
Apr
(39) |
May
(16) |
Jun
(19) |
Jul
(3) |
Aug
(11) |
Sep
(35) |
Oct
(47) |
Nov
(28) |
Dec
(18) |
| 2013 |
Jan
(18) |
Feb
(36) |
Mar
(10) |
Apr
(7) |
May
(7) |
Jun
(27) |
Jul
(17) |
Aug
(35) |
Sep
(19) |
Oct
(31) |
Nov
(8) |
Dec
(22) |
| 2014 |
Jan
(5) |
Feb
(11) |
Mar
(18) |
Apr
(23) |
May
(26) |
Jun
(14) |
Jul
(18) |
Aug
(26) |
Sep
(20) |
Oct
(48) |
Nov
(13) |
Dec
(9) |
| 2015 |
Jan
(9) |
Feb
(15) |
Mar
(25) |
Apr
(10) |
May
(26) |
Jun
(6) |
Jul
(13) |
Aug
(5) |
Sep
(14) |
Oct
(36) |
Nov
(24) |
Dec
(18) |
| 2016 |
Jan
(24) |
Feb
(11) |
Mar
(1) |
Apr
(6) |
May
(7) |
Jun
(3) |
Jul
(9) |
Aug
(15) |
Sep
(22) |
Oct
(5) |
Nov
(5) |
Dec
(2) |
| 2017 |
Jan
(20) |
Feb
(4) |
Mar
(4) |
Apr
(1) |
May
(5) |
Jun
(7) |
Jul
(14) |
Aug
(9) |
Sep
(18) |
Oct
(2) |
Nov
(3) |
Dec
(3) |
| 2018 |
Jan
(7) |
Feb
(6) |
Mar
(1) |
Apr
(2) |
May
|
Jun
|
Jul
(1) |
Aug
(18) |
Sep
(8) |
Oct
(9) |
Nov
(4) |
Dec
(6) |
| 2019 |
Jan
(5) |
Feb
|
Mar
(2) |
Apr
(4) |
May
(6) |
Jun
(8) |
Jul
(11) |
Aug
(10) |
Sep
(6) |
Oct
|
Nov
(1) |
Dec
|
| 2020 |
Jan
(8) |
Feb
(3) |
Mar
(1) |
Apr
(4) |
May
(1) |
Jun
(1) |
Jul
|
Aug
|
Sep
(1) |
Oct
(5) |
Nov
(2) |
Dec
(1) |
| 2021 |
Jan
|
Feb
|
Mar
(5) |
Apr
(2) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2022 |
Jan
|
Feb
(2) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(7) |
Aug
(1) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
| 2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
(5) |
Jul
(15) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2024 |
Jan
|
Feb
(1) |
Mar
|
Apr
(2) |
May
|
Jun
(5) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2025 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Paul E. <pau...@me...> - 2015-10-21 00:18:46
|
Ok, since there is some interest, a little more detail: - We have a project name of “Jycraft” - There is a GitHub organization called Jycraft with some repos for different projects: https://github.com/jycraft <https://github.com/jycraft> - There’s a GitHub Pages landing page with a lot of “proactively truthful” storytelling/dreaming: http://jycraft.github.io <http://jycraft.github.io/> This is the repo that needs attention: https://github.com/Jycraft/jycraft-server-plugin <https://github.com/Jycraft/jycraft-server-plugin> I’d love to get some help with Gradle or some other approach to automated builds. After that, let’s get rid of Canary support and simply provide a download for Sponge. After that, a few changes in how we do WebSocket <-> interpreter. The PyCon call for talks just opened, I believe, and closes in January (I believe.) Wonder if this can make enough progress to submit a paper. I know PyCon 2014 had a Minecraft talk that was very heavily attended. —Paul > On Oct 20, 2015, at 8:09 PM, Darjus Loktevic <da...@gm...> wrote: > > I'd be more than happy to help as well. Python and Minecraft should go hand in hand. > > Darjus > > On Wed, Oct 21, 2015 at 8:50 AM Jim Baker <jim...@py... <mailto:jim...@py...>> wrote: > I have no problem holding hands here :) Sometimes I'm limited by time, but such annotation support is now a work priority for me. > > Given that Minecraft Jython support should be a very good demonstration of what Clamp can do, and what we need to work on, I'm especially eager for any and all guinea pigs. Let's do it! > > - Jim > > On Tue, Oct 20, 2015 at 4:41 AM, Paul Everitt <pau...@me... <mailto:pau...@me...>> wrote: > Sorry about taking it off-list, was trying to be considerate to others here, as I was coming hat-in-hand. > > You and I have talked before about Clamp as a build solution. I’m all for being a guinea pig on Clamp, annotations, etc. but I worry that my huge deficit on Java/Jython building will result in my outsourcing our building to you. :) > > But if you’re up for hand-holding, I’ll gladly provide the hands. > > —Paul > >> On Oct 19, 2015, at 7:31 PM, Jim Baker <jim...@py... <mailto:jim...@py...>> wrote: >> >> Paul, >> >> I don't think this needs to be in a private email - threads work well enough :), and this list is very low traffic. >> >> Anyway, I'm back from vacation, and I should let you and Ben know that I plan to work next on Clamp's support for Java annotations [1]. We need this for a project using Spring annotations; that it supports Minecraft sounds like a very nice bonus to me. I'm sure others will find this very beneficial as well in their Jython usage. >> >> - Jim >> >> [1]: https://github.com/jythontools/clamp#supporting-java-annotations <https://github.com/jythontools/clamp#supporting-java-annotations> >> >> On Mon, Oct 19, 2015 at 4:24 PM, Paul Everitt <pau...@me... <mailto:pau...@me...>> wrote: >> >> To save everybody from a discussion about this on-list, I’ll reply to you in private. >> >> —Paul >> >>> On Oct 19, 2015, at 5:41 PM, Ben Lewis <ben...@gm... <mailto:ben...@gm...>> wrote: >>> >>> Hello Paul >>> >>> Recently I have also been investigating ways of creating minecraft plugins in python. I have came up with a prototype of building plugins on top of the Sponge API. >>> >>> I have put the code on github here https://github.com/skinny121/PySponge <https://github.com/skinny121/PySponge> >>> >>> The major hurdles for creating a binding is that the different plugin apis all like to use annotations and they often use annotations statically to discovers plugins. >>> >>> The solution I came up with was to simply generate the main plugin java class via a setup script and link to the plugin python files from there. >>> >>> Ben Lewis >>> >>> On Tue, Oct 20, 2015 at 12:14 AM, Paul Everitt <pau...@me... <mailto:pau...@me...>> wrote: >>> >>>> On Oct 15, 2015, at 11:48 AM, Stefan Eletzhofer <ste...@gm... <mailto:ste...@gm...>> wrote: >>>> >>>> Hi Paul, >>>> >>>> Am [DATE] schrieb "Paul Everitt" <[ADDRESS]>: >>>> >>>> >>>> >>>>> As has been discussed here a few times, Minecraft is a great place for getting kids interested in programming. Python, via Jython, is a great match for that, as the #1 teaching language. >>>> >>>> Yeah, it is! Two children *love* Minecraft. I guess they'd *love* to teach MC some new tricks if >>>> it would be approachable. >>> >>> It certainly has the potential to be quite approachable. Seppe’s original blog post has a screencast showing how you can let people type in Python code, from a browser: >>> >>> http://blog.macuyiko.com/post/2015/rebuilding-our-jython-console-plugin-for-minecraft.html <http://blog.macuyiko.com/post/2015/rebuilding-our-jython-console-plugin-for-minecraft.html> >>> >>> We have other material in a different place (GitHub organization with some repos) but I don’t want to promote that name until it’s clear the project will continue. >>> >>>> >>>>> Seppe vanden Broucke got a Jython-based Minecraft plugin that lets you run Python code that talks to the Minecraft server API, including a websocket-based Web UI for typing in code that is sent over and executed. It’s fascinating stuff. I’m pitching in to work on that frontend and some other project stuff. >>>> >>>> Do you have a link somewhere? >>>> >>>>> >>>>> But we need some help on the Java/Jython side if it is going to go anywhere. Even 5 hours of help from someone that knows Java, Gradle/Maven, and Jython would go a long way. I don’t know those things, and am unlikely to learn it well enough in the time I have available. >>>> >>>> Well -- I don't know about java (cough) but we do have experience in Jython -- our company's software >>>> bases on a Jython backend to a PLM System (Jython 2.7, Flask based) ... >>>> >>>> The problem is I have not the faintest idea how MC works. Any concrete issues / suggestions? >>> >>> Minecraft servers support server-side extension via plugin systems. There are 3 main plugin projects at the moment: >>> >>> - Canary (dead) >>> - Spigot (successor to Canary’s API) >>> - Sponge (more ambitious) >>> >>> Seppe’s code has support for Canary and Spigot. For the most part, it works, but there are some things that could be done. >>> >>> What’s more needed, though, is basic Java/Jython stuff. We don’t have an automated way to build it (e.g Gradle or Maven) which also means we can’t really hook it up to a CI server. (For that matter, we don’t have any tests.) >>> >>> At the point where we want to attract any outsiders, we need to pay attention to some form of distribution. Our build is currently very large and you have to do a few semi-error-prone manual steps to install. >>> >>> Finally, you have to run a web server manually to serve up the static files for the web UI. Would be nice to have the Jython process do that, just to eliminate some steps needed. >>> >>> Beyond that, the sky is the limit. A system where plugin people could create, collaborate, and share little snippets is certainly feasible. And once we get to the point where we can reach out to the Python community, we’ll have plenty of help. But we’re stuck at the moment on Java janitorial work. [wink] >>> >>> —Paul >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Jython-users mailing list >>> Jyt...@li... <mailto:Jyt...@li...> >>> https://lists.sourceforge.net/lists/listinfo/jython-users <https://lists.sourceforge.net/lists/listinfo/jython-users> >>> >>> >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Jython-users mailing list >> Jyt...@li... <mailto:Jyt...@li...> >> https://lists.sourceforge.net/lists/listinfo/jython-users <https://lists.sourceforge.net/lists/listinfo/jython-users> >> >> > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Jython-users mailing list > Jyt...@li... <mailto:Jyt...@li...> > https://lists.sourceforge.net/lists/listinfo/jython-users <https://lists.sourceforge.net/lists/listinfo/jython-users> > > |
|
From: Darjus L. <da...@gm...> - 2015-10-21 00:09:21
|
I'd be more than happy to help as well. Python and Minecraft should go hand in hand. Darjus On Wed, Oct 21, 2015 at 8:50 AM Jim Baker <jim...@py...> wrote: > I have no problem holding hands here :) Sometimes I'm limited by time, but > such annotation support is now a work priority for me. > > Given that Minecraft Jython support should be a very good demonstration of > what Clamp can do, and what we need to work on, I'm especially eager for > any and all guinea pigs. Let's do it! > > - Jim > > On Tue, Oct 20, 2015 at 4:41 AM, Paul Everitt <pau...@me...> wrote: > >> Sorry about taking it off-list, was trying to be considerate to others >> here, as I was coming hat-in-hand. >> >> You and I have talked before about Clamp as a build solution. I’m all for >> being a guinea pig on Clamp, annotations, etc. but I worry that my huge >> deficit on Java/Jython building will result in my outsourcing our building >> to you. :) >> >> But if you’re up for hand-holding, I’ll gladly provide the hands. >> >> —Paul >> >> On Oct 19, 2015, at 7:31 PM, Jim Baker <jim...@py...> wrote: >> >> Paul, >> >> I don't think this needs to be in a private email - threads work well >> enough :), and this list is very low traffic. >> >> Anyway, I'm back from vacation, and I should let you and Ben know that I >> plan to work next on Clamp's support for Java annotations [1]. We need this >> for a project using Spring annotations; that it supports Minecraft sounds >> like a very nice bonus to me. I'm sure others will find this very >> beneficial as well in their Jython usage. >> >> - Jim >> >> [1]: https://github.com/jythontools/clamp#supporting-java-annotations >> >> On Mon, Oct 19, 2015 at 4:24 PM, Paul Everitt <pau...@me...> wrote: >> >>> >>> To save everybody from a discussion about this on-list, I’ll reply to >>> you in private. >>> >>> —Paul >>> >>> On Oct 19, 2015, at 5:41 PM, Ben Lewis <ben...@gm...> wrote: >>> >>> Hello Paul >>> >>> Recently I have also been investigating ways of creating minecraft >>> plugins in python. I have came up with a prototype of building plugins on >>> top of the Sponge API. >>> >>> I have put the code on github here https://github.com/skinny121/PySponge >>> >>> The major hurdles for creating a binding is that the different plugin >>> apis all like to use annotations and they often use annotations statically >>> to discovers plugins. >>> >>> The solution I came up with was to simply generate the main plugin java >>> class via a setup script and link to the plugin python files from there. >>> >>> Ben Lewis >>> >>> On Tue, Oct 20, 2015 at 12:14 AM, Paul Everitt <pau...@me...> >>> wrote: >>> >>>> >>>> On Oct 15, 2015, at 11:48 AM, Stefan Eletzhofer < >>>> ste...@gm...> wrote: >>>> >>>> Hi Paul, >>>> >>>> Am [DATE] schrieb "Paul Everitt" <[ADDRESS]>: >>>> >>>> >>>> >>>> As has been discussed here a few times, Minecraft is a great place for >>>> getting kids interested in programming. Python, via Jython, is a great >>>> match for that, as the #1 teaching language. >>>> >>>> >>>> Yeah, it is! Two children *love* Minecraft. I guess they'd *love* to >>>> teach MC some new tricks if >>>> it would be approachable. >>>> >>>> >>>> It certainly has the potential to be quite approachable. Seppe’s >>>> original blog post has a screencast showing how you can let people type in >>>> Python code, from a browser: >>>> >>>> >>>> http://blog.macuyiko.com/post/2015/rebuilding-our-jython-console-plugin-for-minecraft.html >>>> >>>> We have other material in a different place (GitHub organization with >>>> some repos) but I don’t want to promote that name until it’s clear the >>>> project will continue. >>>> >>>> >>>> Seppe vanden Broucke got a Jython-based Minecraft plugin that lets you >>>> run Python code that talks to the Minecraft server API, including a >>>> websocket-based Web UI for typing in code that is sent over and executed. >>>> It’s fascinating stuff. I’m pitching in to work on that frontend and some >>>> other project stuff. >>>> >>>> >>>> Do you have a link somewhere? >>>> >>>> >>>> But we need some help on the Java/Jython side if it is going to go >>>> anywhere. Even 5 hours of help from someone that knows Java, Gradle/Maven, >>>> and Jython would go a long way. I don’t know those things, and am unlikely >>>> to learn it well enough in the time I have available. >>>> >>>> >>>> Well -- I don't know about java (cough) but we do have experience in >>>> Jython -- our company's software >>>> bases on a Jython backend to a PLM System (Jython 2.7, Flask based) ... >>>> >>>> The problem is I have not the faintest idea how MC works. Any concrete >>>> issues / suggestions? >>>> >>>> >>>> Minecraft servers support server-side extension via plugin systems. >>>> There are 3 main plugin projects at the moment: >>>> >>>> - Canary (dead) >>>> - Spigot (successor to Canary’s API) >>>> - Sponge (more ambitious) >>>> >>>> Seppe’s code has support for Canary and Spigot. For the most part, it >>>> works, but there are some things that could be done. >>>> >>>> What’s more needed, though, is basic Java/Jython stuff. We don’t have >>>> an automated way to build it (e.g Gradle or Maven) which also means we >>>> can’t really hook it up to a CI server. (For that matter, we don’t have any >>>> tests.) >>>> >>>> At the point where we want to attract any outsiders, we need to pay >>>> attention to some form of distribution. Our build is currently very large >>>> and you have to do a few semi-error-prone manual steps to install. >>>> >>>> Finally, you have to run a web server manually to serve up the static >>>> files for the web UI. Would be nice to have the Jython process do that, >>>> just to eliminate some steps needed. >>>> >>>> Beyond that, the sky is the limit. A system where plugin people could >>>> create, collaborate, and share little snippets is certainly feasible. And >>>> once we get to the point where we can reach out to the Python community, >>>> we’ll have plenty of help. But we’re stuck at the moment on Java janitorial >>>> work. [wink] >>>> >>>> —Paul >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> >>>> _______________________________________________ >>>> Jython-users mailing list >>>> Jyt...@li... >>>> https://lists.sourceforge.net/lists/listinfo/jython-users >>>> >>>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Jython-users mailing list >>> Jyt...@li... >>> https://lists.sourceforge.net/lists/listinfo/jython-users >>> >>> >> >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Jython-users mailing list >> Jyt...@li... >> https://lists.sourceforge.net/lists/listinfo/jython-users >> >> > |
|
From: Jim B. <jim...@py...> - 2015-10-20 21:50:40
|
I have no problem holding hands here :) Sometimes I'm limited by time, but such annotation support is now a work priority for me. Given that Minecraft Jython support should be a very good demonstration of what Clamp can do, and what we need to work on, I'm especially eager for any and all guinea pigs. Let's do it! - Jim On Tue, Oct 20, 2015 at 4:41 AM, Paul Everitt <pau...@me...> wrote: > Sorry about taking it off-list, was trying to be considerate to others > here, as I was coming hat-in-hand. > > You and I have talked before about Clamp as a build solution. I’m all for > being a guinea pig on Clamp, annotations, etc. but I worry that my huge > deficit on Java/Jython building will result in my outsourcing our building > to you. :) > > But if you’re up for hand-holding, I’ll gladly provide the hands. > > —Paul > > On Oct 19, 2015, at 7:31 PM, Jim Baker <jim...@py...> wrote: > > Paul, > > I don't think this needs to be in a private email - threads work well > enough :), and this list is very low traffic. > > Anyway, I'm back from vacation, and I should let you and Ben know that I > plan to work next on Clamp's support for Java annotations [1]. We need this > for a project using Spring annotations; that it supports Minecraft sounds > like a very nice bonus to me. I'm sure others will find this very > beneficial as well in their Jython usage. > > - Jim > > [1]: https://github.com/jythontools/clamp#supporting-java-annotations > > On Mon, Oct 19, 2015 at 4:24 PM, Paul Everitt <pau...@me...> wrote: > >> >> To save everybody from a discussion about this on-list, I’ll reply to you >> in private. >> >> —Paul >> >> On Oct 19, 2015, at 5:41 PM, Ben Lewis <ben...@gm...> wrote: >> >> Hello Paul >> >> Recently I have also been investigating ways of creating minecraft >> plugins in python. I have came up with a prototype of building plugins on >> top of the Sponge API. >> >> I have put the code on github here https://github.com/skinny121/PySponge >> >> The major hurdles for creating a binding is that the different plugin >> apis all like to use annotations and they often use annotations statically >> to discovers plugins. >> >> The solution I came up with was to simply generate the main plugin java >> class via a setup script and link to the plugin python files from there. >> >> Ben Lewis >> >> On Tue, Oct 20, 2015 at 12:14 AM, Paul Everitt <pau...@me...> >> wrote: >> >>> >>> On Oct 15, 2015, at 11:48 AM, Stefan Eletzhofer < >>> ste...@gm...> wrote: >>> >>> Hi Paul, >>> >>> Am [DATE] schrieb "Paul Everitt" <[ADDRESS]>: >>> >>> >>> >>> As has been discussed here a few times, Minecraft is a great place for >>> getting kids interested in programming. Python, via Jython, is a great >>> match for that, as the #1 teaching language. >>> >>> >>> Yeah, it is! Two children *love* Minecraft. I guess they'd *love* to >>> teach MC some new tricks if >>> it would be approachable. >>> >>> >>> It certainly has the potential to be quite approachable. Seppe’s >>> original blog post has a screencast showing how you can let people type in >>> Python code, from a browser: >>> >>> >>> http://blog.macuyiko.com/post/2015/rebuilding-our-jython-console-plugin-for-minecraft.html >>> >>> We have other material in a different place (GitHub organization with >>> some repos) but I don’t want to promote that name until it’s clear the >>> project will continue. >>> >>> >>> Seppe vanden Broucke got a Jython-based Minecraft plugin that lets you >>> run Python code that talks to the Minecraft server API, including a >>> websocket-based Web UI for typing in code that is sent over and executed. >>> It’s fascinating stuff. I’m pitching in to work on that frontend and some >>> other project stuff. >>> >>> >>> Do you have a link somewhere? >>> >>> >>> But we need some help on the Java/Jython side if it is going to go >>> anywhere. Even 5 hours of help from someone that knows Java, Gradle/Maven, >>> and Jython would go a long way. I don’t know those things, and am unlikely >>> to learn it well enough in the time I have available. >>> >>> >>> Well -- I don't know about java (cough) but we do have experience in >>> Jython -- our company's software >>> bases on a Jython backend to a PLM System (Jython 2.7, Flask based) ... >>> >>> The problem is I have not the faintest idea how MC works. Any concrete >>> issues / suggestions? >>> >>> >>> Minecraft servers support server-side extension via plugin systems. >>> There are 3 main plugin projects at the moment: >>> >>> - Canary (dead) >>> - Spigot (successor to Canary’s API) >>> - Sponge (more ambitious) >>> >>> Seppe’s code has support for Canary and Spigot. For the most part, it >>> works, but there are some things that could be done. >>> >>> What’s more needed, though, is basic Java/Jython stuff. We don’t have an >>> automated way to build it (e.g Gradle or Maven) which also means we can’t >>> really hook it up to a CI server. (For that matter, we don’t have any >>> tests.) >>> >>> At the point where we want to attract any outsiders, we need to pay >>> attention to some form of distribution. Our build is currently very large >>> and you have to do a few semi-error-prone manual steps to install. >>> >>> Finally, you have to run a web server manually to serve up the static >>> files for the web UI. Would be nice to have the Jython process do that, >>> just to eliminate some steps needed. >>> >>> Beyond that, the sky is the limit. A system where plugin people could >>> create, collaborate, and share little snippets is certainly feasible. And >>> once we get to the point where we can reach out to the Python community, >>> we’ll have plenty of help. But we’re stuck at the moment on Java janitorial >>> work. [wink] >>> >>> —Paul >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Jython-users mailing list >>> Jyt...@li... >>> https://lists.sourceforge.net/lists/listinfo/jython-users >>> >>> >> >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Jython-users mailing list >> Jyt...@li... >> https://lists.sourceforge.net/lists/listinfo/jython-users >> >> > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > > |
|
From: <fwi...@gm...> - 2015-10-20 16:00:31
|
On behalf of the Jython development team, I'm pleased to announce that Jython 2.7.1 beta2 is released! Thanks to Amobee for sponsoring my work on Jython, and thanks to the many contributors to Jython! Details are here: http://fwierzbicki.blogspot.com/2015/10/jython-271-beta2-released.html -Frank |
|
From: Paul E. <pau...@me...> - 2015-10-20 10:41:35
|
Sorry about taking it off-list, was trying to be considerate to others here, as I was coming hat-in-hand. You and I have talked before about Clamp as a build solution. I’m all for being a guinea pig on Clamp, annotations, etc. but I worry that my huge deficit on Java/Jython building will result in my outsourcing our building to you. :) But if you’re up for hand-holding, I’ll gladly provide the hands. —Paul > On Oct 19, 2015, at 7:31 PM, Jim Baker <jim...@py...> wrote: > > Paul, > > I don't think this needs to be in a private email - threads work well enough :), and this list is very low traffic. > > Anyway, I'm back from vacation, and I should let you and Ben know that I plan to work next on Clamp's support for Java annotations [1]. We need this for a project using Spring annotations; that it supports Minecraft sounds like a very nice bonus to me. I'm sure others will find this very beneficial as well in their Jython usage. > > - Jim > > [1]: https://github.com/jythontools/clamp#supporting-java-annotations <https://github.com/jythontools/clamp#supporting-java-annotations> > > On Mon, Oct 19, 2015 at 4:24 PM, Paul Everitt <pau...@me... <mailto:pau...@me...>> wrote: > > To save everybody from a discussion about this on-list, I’ll reply to you in private. > > —Paul > >> On Oct 19, 2015, at 5:41 PM, Ben Lewis <ben...@gm... <mailto:ben...@gm...>> wrote: >> >> Hello Paul >> >> Recently I have also been investigating ways of creating minecraft plugins in python. I have came up with a prototype of building plugins on top of the Sponge API. >> >> I have put the code on github here https://github.com/skinny121/PySponge <https://github.com/skinny121/PySponge> >> >> The major hurdles for creating a binding is that the different plugin apis all like to use annotations and they often use annotations statically to discovers plugins. >> >> The solution I came up with was to simply generate the main plugin java class via a setup script and link to the plugin python files from there. >> >> Ben Lewis >> >> On Tue, Oct 20, 2015 at 12:14 AM, Paul Everitt <pau...@me... <mailto:pau...@me...>> wrote: >> >>> On Oct 15, 2015, at 11:48 AM, Stefan Eletzhofer <ste...@gm... <mailto:ste...@gm...>> wrote: >>> >>> Hi Paul, >>> >>> Am [DATE] schrieb "Paul Everitt" <[ADDRESS]>: >>> >>> >>> >>>> As has been discussed here a few times, Minecraft is a great place for getting kids interested in programming. Python, via Jython, is a great match for that, as the #1 teaching language. >>> >>> Yeah, it is! Two children *love* Minecraft. I guess they'd *love* to teach MC some new tricks if >>> it would be approachable. >> >> It certainly has the potential to be quite approachable. Seppe’s original blog post has a screencast showing how you can let people type in Python code, from a browser: >> >> http://blog.macuyiko.com/post/2015/rebuilding-our-jython-console-plugin-for-minecraft.html <http://blog.macuyiko.com/post/2015/rebuilding-our-jython-console-plugin-for-minecraft.html> >> >> We have other material in a different place (GitHub organization with some repos) but I don’t want to promote that name until it’s clear the project will continue. >> >>> >>>> Seppe vanden Broucke got a Jython-based Minecraft plugin that lets you run Python code that talks to the Minecraft server API, including a websocket-based Web UI for typing in code that is sent over and executed. It’s fascinating stuff. I’m pitching in to work on that frontend and some other project stuff. >>> >>> Do you have a link somewhere? >>> >>>> >>>> But we need some help on the Java/Jython side if it is going to go anywhere. Even 5 hours of help from someone that knows Java, Gradle/Maven, and Jython would go a long way. I don’t know those things, and am unlikely to learn it well enough in the time I have available. >>> >>> Well -- I don't know about java (cough) but we do have experience in Jython -- our company's software >>> bases on a Jython backend to a PLM System (Jython 2.7, Flask based) ... >>> >>> The problem is I have not the faintest idea how MC works. Any concrete issues / suggestions? >> >> Minecraft servers support server-side extension via plugin systems. There are 3 main plugin projects at the moment: >> >> - Canary (dead) >> - Spigot (successor to Canary’s API) >> - Sponge (more ambitious) >> >> Seppe’s code has support for Canary and Spigot. For the most part, it works, but there are some things that could be done. >> >> What’s more needed, though, is basic Java/Jython stuff. We don’t have an automated way to build it (e.g Gradle or Maven) which also means we can’t really hook it up to a CI server. (For that matter, we don’t have any tests.) >> >> At the point where we want to attract any outsiders, we need to pay attention to some form of distribution. Our build is currently very large and you have to do a few semi-error-prone manual steps to install. >> >> Finally, you have to run a web server manually to serve up the static files for the web UI. Would be nice to have the Jython process do that, just to eliminate some steps needed. >> >> Beyond that, the sky is the limit. A system where plugin people could create, collaborate, and share little snippets is certainly feasible. And once we get to the point where we can reach out to the Python community, we’ll have plenty of help. But we’re stuck at the moment on Java janitorial work. [wink] >> >> —Paul >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Jython-users mailing list >> Jyt...@li... <mailto:Jyt...@li...> >> https://lists.sourceforge.net/lists/listinfo/jython-users <https://lists.sourceforge.net/lists/listinfo/jython-users> >> >> > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Jython-users mailing list > Jyt...@li... <mailto:Jyt...@li...> > https://lists.sourceforge.net/lists/listinfo/jython-users <https://lists.sourceforge.net/lists/listinfo/jython-users> > > |
|
From: Jeff A. <ja...@fa...> - 2015-10-20 09:27:41
|
Paulo:
A footnote to this ... I believe your call:
python.exec("from __future__ import unicode_literals");
ought to have made the u-prefix unnecessary in the subsequent eval(), as
you expected, but it doesn't. See: http://bugs.jython.org/issue2039
Jeff
On 19/10/2015 23:19, Jeff Allen wrote:
> Glad you like it. The trick is to ensure your source code is treated
> as Unicode by eval(). But even then, the only place your non-ascii
> characters can appear is inside a Unicode literal, signalled by the
> u-prefix (or maybe in comments). The following worked for me (in
> 2.7.1, under Eclipse):
>
> import org.python.core.Py;
> import org.python.core.PyObject;
> import org.python.util.PythonInterpreter;
>
> public class UnicodeInterpret {
> public static void main(String[] args) {
> PythonInterpreter python = new PythonInterpreter();
> String source = "u'λαμβδα'";
> PyObject result = python.eval(Py.newUnicode(source));
> System.out.println(result);
> }
> }
>
> Jeff
>
> On 19/10/2015 19:59, Paulo Costa wrote:
>> Hello,
>> First, thanks for this awesome library.
>> I've just started used Jython and I'm loving it :)
>>
>>
>> I'm using it inside my project to evalute some user-define expressions.
>> I need these expressions evaluated using unicode_literals
>>
>> How can I do that?
>>
>> This is what I've tried so far:
>>
>> PythonInterpreter python = new PythonInterpreter();
>>
>>
>> //Not using unicode_literals
>>
>> System.out.println(python.eval("repr('é')"));
>>
>>
>> //Try to update the interpreter using exec - Doesn't work
>>
>> python.exec("from __future__ import unicode_literals");
>>
>> System.out.println(python.eval("repr('é')"));
>>
>>
>> //Import unicode_literals and print string inside exec() -
>> Works, but doesn't return a value
>>
>> python.exec("from __future__ import unicode_literals\nprint
>> repr('é')");
>>
>>
>> Thanks!
>>
>
|
|
From: Sayth R. <fle...@gm...> - 2015-10-20 09:26:13
|
Hi all Just a question of interest as Python evolves and 3.6 shapes as a solidifying release for the 3 series and Java moves into modules with Coin is there any perceivable benefit to Jython directly or indirectly from these changes? Cheers Sayth |
|
From: Jim B. <jim...@py...> - 2015-10-19 23:31:37
|
Paul, I don't think this needs to be in a private email - threads work well enough :), and this list is very low traffic. Anyway, I'm back from vacation, and I should let you and Ben know that I plan to work next on Clamp's support for Java annotations [1]. We need this for a project using Spring annotations; that it supports Minecraft sounds like a very nice bonus to me. I'm sure others will find this very beneficial as well in their Jython usage. - Jim [1]: https://github.com/jythontools/clamp#supporting-java-annotations On Mon, Oct 19, 2015 at 4:24 PM, Paul Everitt <pau...@me...> wrote: > > To save everybody from a discussion about this on-list, I’ll reply to you > in private. > > —Paul > > On Oct 19, 2015, at 5:41 PM, Ben Lewis <ben...@gm...> wrote: > > Hello Paul > > Recently I have also been investigating ways of creating minecraft plugins > in python. I have came up with a prototype of building plugins on top of > the Sponge API. > > I have put the code on github here https://github.com/skinny121/PySponge > > The major hurdles for creating a binding is that the different plugin apis > all like to use annotations and they often use annotations statically to > discovers plugins. > > The solution I came up with was to simply generate the main plugin java > class via a setup script and link to the plugin python files from there. > > Ben Lewis > > On Tue, Oct 20, 2015 at 12:14 AM, Paul Everitt <pau...@me...> wrote: > >> >> On Oct 15, 2015, at 11:48 AM, Stefan Eletzhofer < >> ste...@gm...> wrote: >> >> Hi Paul, >> >> Am [DATE] schrieb "Paul Everitt" <[ADDRESS]>: >> >> >> >> As has been discussed here a few times, Minecraft is a great place for >> getting kids interested in programming. Python, via Jython, is a great >> match for that, as the #1 teaching language. >> >> >> Yeah, it is! Two children *love* Minecraft. I guess they'd *love* to >> teach MC some new tricks if >> it would be approachable. >> >> >> It certainly has the potential to be quite approachable. Seppe’s original >> blog post has a screencast showing how you can let people type in Python >> code, from a browser: >> >> >> http://blog.macuyiko.com/post/2015/rebuilding-our-jython-console-plugin-for-minecraft.html >> >> We have other material in a different place (GitHub organization with >> some repos) but I don’t want to promote that name until it’s clear the >> project will continue. >> >> >> Seppe vanden Broucke got a Jython-based Minecraft plugin that lets you >> run Python code that talks to the Minecraft server API, including a >> websocket-based Web UI for typing in code that is sent over and executed. >> It’s fascinating stuff. I’m pitching in to work on that frontend and some >> other project stuff. >> >> >> Do you have a link somewhere? >> >> >> But we need some help on the Java/Jython side if it is going to go >> anywhere. Even 5 hours of help from someone that knows Java, Gradle/Maven, >> and Jython would go a long way. I don’t know those things, and am unlikely >> to learn it well enough in the time I have available. >> >> >> Well -- I don't know about java (cough) but we do have experience in >> Jython -- our company's software >> bases on a Jython backend to a PLM System (Jython 2.7, Flask based) ... >> >> The problem is I have not the faintest idea how MC works. Any concrete >> issues / suggestions? >> >> >> Minecraft servers support server-side extension via plugin systems. There >> are 3 main plugin projects at the moment: >> >> - Canary (dead) >> - Spigot (successor to Canary’s API) >> - Sponge (more ambitious) >> >> Seppe’s code has support for Canary and Spigot. For the most part, it >> works, but there are some things that could be done. >> >> What’s more needed, though, is basic Java/Jython stuff. We don’t have an >> automated way to build it (e.g Gradle or Maven) which also means we can’t >> really hook it up to a CI server. (For that matter, we don’t have any >> tests.) >> >> At the point where we want to attract any outsiders, we need to pay >> attention to some form of distribution. Our build is currently very large >> and you have to do a few semi-error-prone manual steps to install. >> >> Finally, you have to run a web server manually to serve up the static >> files for the web UI. Would be nice to have the Jython process do that, >> just to eliminate some steps needed. >> >> Beyond that, the sky is the limit. A system where plugin people could >> create, collaborate, and share little snippets is certainly feasible. And >> once we get to the point where we can reach out to the Python community, >> we’ll have plenty of help. But we’re stuck at the moment on Java janitorial >> work. [wink] >> >> —Paul >> >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Jython-users mailing list >> Jyt...@li... >> https://lists.sourceforge.net/lists/listinfo/jython-users >> >> > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > > |
|
From: Paul E. <pau...@me...> - 2015-10-19 22:24:53
|
To save everybody from a discussion about this on-list, I’ll reply to you in private. —Paul > On Oct 19, 2015, at 5:41 PM, Ben Lewis <ben...@gm...> wrote: > > Hello Paul > > Recently I have also been investigating ways of creating minecraft plugins in python. I have came up with a prototype of building plugins on top of the Sponge API. > > I have put the code on github here https://github.com/skinny121/PySponge <https://github.com/skinny121/PySponge> > > The major hurdles for creating a binding is that the different plugin apis all like to use annotations and they often use annotations statically to discovers plugins. > > The solution I came up with was to simply generate the main plugin java class via a setup script and link to the plugin python files from there. > > Ben Lewis > > On Tue, Oct 20, 2015 at 12:14 AM, Paul Everitt <pau...@me... <mailto:pau...@me...>> wrote: > >> On Oct 15, 2015, at 11:48 AM, Stefan Eletzhofer <ste...@gm... <mailto:ste...@gm...>> wrote: >> >> Hi Paul, >> >> Am [DATE] schrieb "Paul Everitt" <[ADDRESS]>: >> >> >> >>> As has been discussed here a few times, Minecraft is a great place for getting kids interested in programming. Python, via Jython, is a great match for that, as the #1 teaching language. >> >> Yeah, it is! Two children *love* Minecraft. I guess they'd *love* to teach MC some new tricks if >> it would be approachable. > > It certainly has the potential to be quite approachable. Seppe’s original blog post has a screencast showing how you can let people type in Python code, from a browser: > > http://blog.macuyiko.com/post/2015/rebuilding-our-jython-console-plugin-for-minecraft.html <http://blog.macuyiko.com/post/2015/rebuilding-our-jython-console-plugin-for-minecraft.html> > > We have other material in a different place (GitHub organization with some repos) but I don’t want to promote that name until it’s clear the project will continue. > >> >>> Seppe vanden Broucke got a Jython-based Minecraft plugin that lets you run Python code that talks to the Minecraft server API, including a websocket-based Web UI for typing in code that is sent over and executed. It’s fascinating stuff. I’m pitching in to work on that frontend and some other project stuff. >> >> Do you have a link somewhere? >> >>> >>> But we need some help on the Java/Jython side if it is going to go anywhere. Even 5 hours of help from someone that knows Java, Gradle/Maven, and Jython would go a long way. I don’t know those things, and am unlikely to learn it well enough in the time I have available. >> >> Well -- I don't know about java (cough) but we do have experience in Jython -- our company's software >> bases on a Jython backend to a PLM System (Jython 2.7, Flask based) ... >> >> The problem is I have not the faintest idea how MC works. Any concrete issues / suggestions? > > Minecraft servers support server-side extension via plugin systems. There are 3 main plugin projects at the moment: > > - Canary (dead) > - Spigot (successor to Canary’s API) > - Sponge (more ambitious) > > Seppe’s code has support for Canary and Spigot. For the most part, it works, but there are some things that could be done. > > What’s more needed, though, is basic Java/Jython stuff. We don’t have an automated way to build it (e.g Gradle or Maven) which also means we can’t really hook it up to a CI server. (For that matter, we don’t have any tests.) > > At the point where we want to attract any outsiders, we need to pay attention to some form of distribution. Our build is currently very large and you have to do a few semi-error-prone manual steps to install. > > Finally, you have to run a web server manually to serve up the static files for the web UI. Would be nice to have the Jython process do that, just to eliminate some steps needed. > > Beyond that, the sky is the limit. A system where plugin people could create, collaborate, and share little snippets is certainly feasible. And once we get to the point where we can reach out to the Python community, we’ll have plenty of help. But we’re stuck at the moment on Java janitorial work. [wink] > > —Paul > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Jython-users mailing list > Jyt...@li... <mailto:Jyt...@li...> > https://lists.sourceforge.net/lists/listinfo/jython-users <https://lists.sourceforge.net/lists/listinfo/jython-users> > > |
|
From: Jeff A. <ja...@fa...> - 2015-10-19 22:19:55
|
Glad you like it. The trick is to ensure your source code is treated as
Unicode by eval(). But even then, the only place your non-ascii
characters can appear is inside a Unicode literal, signalled by the
u-prefix (or maybe in comments). The following worked for me (in 2.7.1,
under Eclipse):
import org.python.core.Py;
import org.python.core.PyObject;
import org.python.util.PythonInterpreter;
public class UnicodeInterpret {
public static void main(String[] args) {
PythonInterpreter python = new PythonInterpreter();
String source = "u'λαμβδα'";
PyObject result = python.eval(Py.newUnicode(source));
System.out.println(result);
}
}
Jeff
On 19/10/2015 19:59, Paulo Costa wrote:
> Hello,
> First, thanks for this awesome library.
> I've just started used Jython and I'm loving it :)
>
>
> I'm using it inside my project to evalute some user-define expressions.
> I need these expressions evaluated using unicode_literals
>
> How can I do that?
>
> This is what I've tried so far:
>
> PythonInterpreter python = new PythonInterpreter();
>
>
> //Not using unicode_literals
>
> System.out.println(python.eval("repr('é')"));
>
>
> //Try to update the interpreter using exec - Doesn't work
>
> python.exec("from __future__ import unicode_literals");
>
> System.out.println(python.eval("repr('é')"));
>
>
> //Import unicode_literals and print string inside exec() -
> Works, but doesn't return a value
>
> python.exec("from __future__ import unicode_literals\nprint
> repr('é')");
>
>
> Thanks!
>
|
|
From: Ben L. <ben...@gm...> - 2015-10-19 21:41:23
|
Hello Paul Recently I have also been investigating ways of creating minecraft plugins in python. I have came up with a prototype of building plugins on top of the Sponge API. I have put the code on github here https://github.com/skinny121/PySponge The major hurdles for creating a binding is that the different plugin apis all like to use annotations and they often use annotations statically to discovers plugins. The solution I came up with was to simply generate the main plugin java class via a setup script and link to the plugin python files from there. Ben Lewis On Tue, Oct 20, 2015 at 12:14 AM, Paul Everitt <pau...@me...> wrote: > > On Oct 15, 2015, at 11:48 AM, Stefan Eletzhofer < > ste...@gm...> wrote: > > Hi Paul, > > Am [DATE] schrieb "Paul Everitt" <[ADDRESS]>: > > > > As has been discussed here a few times, Minecraft is a great place for > getting kids interested in programming. Python, via Jython, is a great > match for that, as the #1 teaching language. > > > Yeah, it is! Two children *love* Minecraft. I guess they'd *love* to > teach MC some new tricks if > it would be approachable. > > > It certainly has the potential to be quite approachable. Seppe’s original > blog post has a screencast showing how you can let people type in Python > code, from a browser: > > > http://blog.macuyiko.com/post/2015/rebuilding-our-jython-console-plugin-for-minecraft.html > > We have other material in a different place (GitHub organization with some > repos) but I don’t want to promote that name until it’s clear the project > will continue. > > > Seppe vanden Broucke got a Jython-based Minecraft plugin that lets you run > Python code that talks to the Minecraft server API, including a > websocket-based Web UI for typing in code that is sent over and executed. > It’s fascinating stuff. I’m pitching in to work on that frontend and some > other project stuff. > > > Do you have a link somewhere? > > > But we need some help on the Java/Jython side if it is going to go > anywhere. Even 5 hours of help from someone that knows Java, Gradle/Maven, > and Jython would go a long way. I don’t know those things, and am unlikely > to learn it well enough in the time I have available. > > > Well -- I don't know about java (cough) but we do have experience in > Jython -- our company's software > bases on a Jython backend to a PLM System (Jython 2.7, Flask based) ... > > The problem is I have not the faintest idea how MC works. Any concrete > issues / suggestions? > > > Minecraft servers support server-side extension via plugin systems. There > are 3 main plugin projects at the moment: > > - Canary (dead) > - Spigot (successor to Canary’s API) > - Sponge (more ambitious) > > Seppe’s code has support for Canary and Spigot. For the most part, it > works, but there are some things that could be done. > > What’s more needed, though, is basic Java/Jython stuff. We don’t have an > automated way to build it (e.g Gradle or Maven) which also means we can’t > really hook it up to a CI server. (For that matter, we don’t have any > tests.) > > At the point where we want to attract any outsiders, we need to pay > attention to some form of distribution. Our build is currently very large > and you have to do a few semi-error-prone manual steps to install. > > Finally, you have to run a web server manually to serve up the static > files for the web UI. Would be nice to have the Jython process do that, > just to eliminate some steps needed. > > Beyond that, the sky is the limit. A system where plugin people could > create, collaborate, and share little snippets is certainly feasible. And > once we get to the point where we can reach out to the Python community, > we’ll have plenty of help. But we’re stuck at the moment on Java janitorial > work. [wink] > > —Paul > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > > |
|
From: Paulo C. <me...@pa...> - 2015-10-19 19:28:48
|
Hello,
First, thanks for this awesome library.
I've just started used Jython and I'm loving it :)
I'm using it inside my project to evalute some user-define expressions.
I need these expressions evaluated using unicode_literals
How can I do that?
This is what I've tried so far:
PythonInterpreter python = new PythonInterpreter();
>
>
>> //Not using unicode_literals
>
> System.out.println(python.eval("repr('é')"));
>
>
>> //Try to update the interpreter using exec - Doesn't work
>
> python.exec("from __future__ import unicode_literals");
>
> System.out.println(python.eval("repr('é')"));
>
>
>> //Import unicode_literals and print string inside exec() - Works, but
>> doesn't return a value
>
> python.exec("from __future__ import unicode_literals\nprint repr('é')");
>
>
Thanks!
|
|
From: Paul E. <pau...@me...> - 2015-10-19 11:14:52
|
> On Oct 15, 2015, at 11:48 AM, Stefan Eletzhofer <ste...@gm...> wrote: > > Hi Paul, > > Am [DATE] schrieb "Paul Everitt" <[ADDRESS]>: > > > >> As has been discussed here a few times, Minecraft is a great place for getting kids interested in programming. Python, via Jython, is a great match for that, as the #1 teaching language. > > Yeah, it is! Two children *love* Minecraft. I guess they'd *love* to teach MC some new tricks if > it would be approachable. It certainly has the potential to be quite approachable. Seppe’s original blog post has a screencast showing how you can let people type in Python code, from a browser: http://blog.macuyiko.com/post/2015/rebuilding-our-jython-console-plugin-for-minecraft.html <http://blog.macuyiko.com/post/2015/rebuilding-our-jython-console-plugin-for-minecraft.html> We have other material in a different place (GitHub organization with some repos) but I don’t want to promote that name until it’s clear the project will continue. > >> Seppe vanden Broucke got a Jython-based Minecraft plugin that lets you run Python code that talks to the Minecraft server API, including a websocket-based Web UI for typing in code that is sent over and executed. It’s fascinating stuff. I’m pitching in to work on that frontend and some other project stuff. > > Do you have a link somewhere? > >> >> But we need some help on the Java/Jython side if it is going to go anywhere. Even 5 hours of help from someone that knows Java, Gradle/Maven, and Jython would go a long way. I don’t know those things, and am unlikely to learn it well enough in the time I have available. > > Well -- I don't know about java (cough) but we do have experience in Jython -- our company's software > bases on a Jython backend to a PLM System (Jython 2.7, Flask based) ... > > The problem is I have not the faintest idea how MC works. Any concrete issues / suggestions? Minecraft servers support server-side extension via plugin systems. There are 3 main plugin projects at the moment: - Canary (dead) - Spigot (successor to Canary’s API) - Sponge (more ambitious) Seppe’s code has support for Canary and Spigot. For the most part, it works, but there are some things that could be done. What’s more needed, though, is basic Java/Jython stuff. We don’t have an automated way to build it (e.g Gradle or Maven) which also means we can’t really hook it up to a CI server. (For that matter, we don’t have any tests.) At the point where we want to attract any outsiders, we need to pay attention to some form of distribution. Our build is currently very large and you have to do a few semi-error-prone manual steps to install. Finally, you have to run a web server manually to serve up the static files for the web UI. Would be nice to have the Jython process do that, just to eliminate some steps needed. Beyond that, the sky is the limit. A system where plugin people could create, collaborate, and share little snippets is certainly feasible. And once we get to the point where we can reach out to the Python community, we’ll have plenty of help. But we’re stuck at the moment on Java janitorial work. [wink] —Paul |
|
From: Jim B. <jim...@py...> - 2015-10-16 20:12:43
|
David, For me, this is a very tough question to address since you're running on an unsupported release. However, I understand why, due to the fact that we roughly doubled the size of the jython.jar from beta 1 to 2.7.0 to 27MB. Since I'm the one person most responsible for that size increase, my apologies, I don't like it either. These size increases are all from including additional libraries. The biggest addition is ICU4J, at 11MB, which is only used to provide full unicodedata and encodings.idna support; and BouncyCastle and Netty 4, at 4.5MB, which are used to support ssl, select, and socket. Both encoding and socket support in turn then provide support for requests; which when vendored, in turn supports pip and the PyPI ecosystem for Jython. Our primary goal for Jython 2.7 is to provide a highly compatible implementation of version 2.7 of the Python language and standard libraries; and the corresponding ecosystem. I think we have done a good job with that, and current work on the forthcoming 2.7.1 release continues to improve on this goal as well. However, this does not mean that there needs to be just one profile of Jython 2.7.x that is used. In particular, I understand from discussion on #jython that certain users have been successful in stripping the Jython runtime to only 7MB, because they don't need support for sockets, ssl, etc, mostly because the container already provides this support; or they directly use Java. You might also combine: build out your site-packages with the standard full profile of Jython 2.7, then run it with the reduced set. So here's the challenge for our users: can we identify one or more useful profiles of Jython where we have excluded files from the jython.jar; and share these exclusions? (Maybe we could collect here on this email thread.) I recommend we define these profiles in terms of Gradle, given that we are planning to use Gradle to replace the Ant build script real soon now (probably once we start 2.7.2). In particular, it's easy enough to specify in Gradle with the jar task: https://docs.gradle.org/current/dsl/org.gradle.api.tasks.bundling.Jar.html#org.gradle.api.tasks.bundling.Jar:excludes So that's where I would start. Note that automated tools most likely will not work due to the fact that Jython is so dynamic, unless they observe the use of ClassLoaders. (Maybe there are such tools we can use!) - Jim On Fri, Oct 16, 2015 at 11:32 AM, David Charles <dav...@gm...> wrote: > I have a Jython application based on 2.7b1 that I have packaged into a > *.jar file for deployment via Java Webstart. (Every other Beta release > presented a problem to me, and the official release is just sooo big.) I > used to be able to run my application with a command like this: > > $ java -jar myapp.jar > > But this no longer works. Now, I application immediately dies with an > exception: > > Exception in thread "MainThread" Traceback (most recent call last): > File "<string>", line 1, in <module> > File "__pyclasspath__/myapp/__init__.py", line 38, in <module> > File "__pyclasspath__/myap/style.py", line 9, in <module> > File "__pyclasspath__/resourceloading.py", line 7, in <module> > LookupError: no codec search functions registered: can't find encoding > 'iso-8859-1' > > I searched teh Interwebs, but I appear to be alone in this unpleasant > condition. > > I get the same exception on both Java 8u60 and 7u75. My OS is Ubuntu > 11.04. > > Any hints on how to proceed? > > Thanks Jythonwizards, > David > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > > |
|
From: David C. <dav...@gm...> - 2015-10-16 18:32:52
|
I have a Jython application based on 2.7b1 that I have packaged into a
*.jar file for deployment via Java Webstart. (Every other Beta release
presented a problem to me, and the official release is just sooo big.) I
used to be able to run my application with a command like this:
$ java -jar myapp.jar
But this no longer works. Now, I application immediately dies with an
exception:
Exception in thread "MainThread" Traceback (most recent call last):
File "<string>", line 1, in <module>
File "__pyclasspath__/myapp/__init__.py", line 38, in <module>
File "__pyclasspath__/myap/style.py", line 9, in <module>
File "__pyclasspath__/resourceloading.py", line 7, in <module>
LookupError: no codec search functions registered: can't find encoding
'iso-8859-1'
I searched teh Interwebs, but I appear to be alone in this unpleasant
condition.
I get the same exception on both Java 8u60 and 7u75. My OS is Ubuntu 11.04.
Any hints on how to proceed?
Thanks Jythonwizards,
David
|
|
From: Master Of T. <hi....@bt...> - 2015-10-16 09:14:57
|
I am using PythonInterpreter in my Scala app as scripting add-on ... this
is what Ive found that works (guess you can do same with XML config
file, but I already have central config file for whole app):
val root_logger = LoggerFactory.getLogger(org.slf4j.Logger.ROOT_LOGGER_NAME).asInstanceOf[ch.qos.logback.classic.Logger]
if (CFG.get("global", "log_level") == "info")
root_logger.setLevel(ch.qos.logback.classic.Level.INFO)
else if (CFG.get("global", "log_level") == "warn")
root_logger.setLevel(ch.qos.logback.classic.Level.WARN)
else
root_logger.setLevel(ch.qos.logback.classic.Level.ERROR)
Regards
On Sun, Oct 11, 2015 at 06:26:11AM +0000, Darjus Loktevic wrote:
> Can you try the following?
>
> log = logging.getLogger("_socket")
> log.setLevel(level=logging.WARNING)
>
> Also, if that does not help, please share with us how you enable logging
> in the first place?
>
> Darjus
> On Sat, Oct 10, 2015 at 4:49 AM Master Of The
> <[1]hi....@bt...> wrote:
>
> Hi,
>
> Ive been trying to suppress Netty debug logging in Jython but with no
> success. What is the correct way to set logging level of Jython netty
> client?
>
> I have messages like this all over my log:
>
> 12:23:20.241 [Jython-Netty-Client-0] DEBUG
> o.p.n.channel.DefaultChannelPipeline - Discarded inbound message
> UnpooledUnsafeDirectByteBuf(ridx: 0, widx: 11, cap: 4096) that reached
> at the tail of the pipeline. Please check your pipeline configuration.
>
> Regards
> --
> Master Of The
> [2]hi....@bt...
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Jython-users mailing list
> [3]Jyt...@li...
> [4]https://lists.sourceforge.net/lists/listinfo/jython-users
>
> References
>
> Visible links
> 1. mailto:hi....@bt...
> 2. mailto:hi....@bt...
> 3. mailto:Jyt...@li...
> 4. https://lists.sourceforge.net/lists/listinfo/jython-users
--
Master Of The
hi....@bt...
|
|
From: Guy M. <gm...@ma...> - 2015-10-15 14:55:56
|
Hello! Has anyone gotten jython >= 2.5.4 to work within weblogic? I've been able to get it going within tomcat, but not having good luck getting jython working with weblogic 10 . . . Any thoughts would be greatly appreciated!! Regards, Guy |
|
From: Paul E. <pau...@me...> - 2015-10-15 13:29:40
|
As has been discussed here a few times, Minecraft is a great place for getting kids interested in programming. Python, via Jython, is a great match for that, as the #1 teaching language. Seppe vanden Broucke got a Jython-based Minecraft plugin that lets you run Python code that talks to the Minecraft server API, including a websocket-based Web UI for typing in code that is sent over and executed. It’s fascinating stuff. I’m pitching in to work on that frontend and some other project stuff. But we need some help on the Java/Jython side if it is going to go anywhere. Even 5 hours of help from someone that knows Java, Gradle/Maven, and Jython would go a long way. I don’t know those things, and am unlikely to learn it well enough in the time I have available. With some help from some Jython/Java people, we could get the project in good enough shape to give a talk on it at PyCon and attract critical mass. And it would be a lot of fun. —Paul |
|
From: Darjus L. <da...@gm...> - 2015-10-11 06:26:26
|
Can you try the following?
log = logging.getLogger("_socket")
log.setLevel(level=logging.WARNING)
Also, if that does not help, please share with us how you enable logging in
the first place?
Darjus
On Sat, Oct 10, 2015 at 4:49 AM Master Of The <
hi....@bt...> wrote:
> Hi,
>
> Ive been trying to suppress Netty debug logging in Jython but with no
> success. What is the correct way to set logging level of Jython netty
> client?
>
> I have messages like this all over my log:
>
> 12:23:20.241 [Jython-Netty-Client-0] DEBUG
> o.p.n.channel.DefaultChannelPipeline - Discarded inbound message
> UnpooledUnsafeDirectByteBuf(ridx: 0, widx: 11, cap: 4096) that reached
> at the tail of the pipeline. Please check your pipeline configuration.
>
> Regards
> --
> Master Of The
> hi....@bt...
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Jython-users mailing list
> Jyt...@li...
> https://lists.sourceforge.net/lists/listinfo/jython-users
>
|
|
From: Debabrata P. <deb...@gm...> - 2015-10-10 18:10:29
|
In my previous query, sys.path had __classpath__ and __pyclasspath__/ as the last two entries The underscores were removed while using markdown. Apologize for that. Regards, Debabrata On Sat, Oct 10, 2015 at 8:14 PM, Debabrata Pani <deb...@gm...> wrote: > I switched to IntelliJ IDEA at workplace (team reasons) > > And evaluated the intellij python plugin with jython 2.7.0 on my MAC OS X > 10.9.5 > > I download the jython installer and went through the installation > procedure before using the python plugin of IntelliJ IDEA > > In IntelliJ IDEA we have to setup a python SDK which can be used for > executing python scripts which I did promptly by pointing towards the > jython executable file. > While trying to run a python script (of reasonable complexity with lots of > java and python modules dependencies ) , *I got the following error* : > > Exception in thread “main” ImportError: Cannot import site module and its > dependencies: No module named site > Determine if the following attributes are correct: > > - sys.path: [‘/opt/jython2.7.0/Lib1’, ‘/opt/python-dateutil-1.5’, > ‘/Users/someuser/.m2/repository/org/apache/hive/shims/hive-shims-common/0.13.0/hive-shims-common-0.13.0.jar’, > * elided a lot of jars * , ‘/opt/jython2.7.0/Lib’, ‘*classpath*‘, ‘ > *pyclasspath*/‘] > This attribute might be including the wrong directories, such as from > CPython > - sys.prefix: /opt/jython2.7.0 > This attribute is set by the system property python.home, although it > can > be often automatically determined by the location of the Jython jar > file > > You can use the -S option or python.import.site=false to not import the > site module > On using -S switch, I got more frustrating errors > > Traceback (most recent call last): > File > “/Users/debabratapani/mobileum/work/code/datamodel/oozie/DomesticAverage/ProcessDomesticAverageAction.py”, > line 6, in > import oozie.common.dataset as dataset > File > “/Users/debabratapani/mobileum/work/code/datamodel/oozie/common/dataset.py”, > line 4, in > import re > *ImportError: No module named re* > > *How is -S causing this ? * > Removed the -S switch and add the following environment variable > > JYTHONPATH=/opt/jython270/Lib > > *It went through fine* > I don’t need to add this environment variable when i use the jython > executable itself. > > *Suggestion why this is required?* > > After this configuration headache, using IntelliJ IDEA with python plugin > is breeze. > > |
|
From: Debabrata P. <deb...@gm...> - 2015-10-10 14:44:07
|
I switched to IntelliJ IDEA at workplace (team reasons) And evaluated the intellij python plugin with jython 2.7.0 on my MAC OS X 10.9.5 I download the jython installer and went through the installation procedure before using the python plugin of IntelliJ IDEA In IntelliJ IDEA we have to setup a python SDK which can be used for executing python scripts which I did promptly by pointing towards the jython executable file. While trying to run a python script (of reasonable complexity with lots of java and python modules dependencies ) , *I got the following error* : Exception in thread “main” ImportError: Cannot import site module and its dependencies: No module named site Determine if the following attributes are correct: - sys.path: [‘/opt/jython2.7.0/Lib1’, ‘/opt/python-dateutil-1.5’, ‘/Users/someuser/.m2/repository/org/apache/hive/shims/hive-shims-common/0.13.0/hive-shims-common-0.13.0.jar’, * elided a lot of jars * , ‘/opt/jython2.7.0/Lib’, ‘*classpath*‘, ‘ *pyclasspath*/‘] This attribute might be including the wrong directories, such as from CPython - sys.prefix: /opt/jython2.7.0 This attribute is set by the system property python.home, although it can be often automatically determined by the location of the Jython jar file You can use the -S option or python.import.site=false to not import the site module On using -S switch, I got more frustrating errors Traceback (most recent call last): File “/Users/debabratapani/mobileum/work/code/datamodel/oozie/DomesticAverage/ProcessDomesticAverageAction.py”, line 6, in import oozie.common.dataset as dataset File “/Users/debabratapani/mobileum/work/code/datamodel/oozie/common/dataset.py”, line 4, in import re *ImportError: No module named re* *How is -S causing this ? * Removed the -S switch and add the following environment variable JYTHONPATH=/opt/jython270/Lib *It went through fine* I don’t need to add this environment variable when i use the jython executable itself. *Suggestion why this is required?* After this configuration headache, using IntelliJ IDEA with python plugin is breeze. |
|
From: Master Of T. <hi....@bt...> - 2015-10-09 17:46:04
|
Hi, Ive been trying to suppress Netty debug logging in Jython but with no success. What is the correct way to set logging level of Jython netty client? I have messages like this all over my log: 12:23:20.241 [Jython-Netty-Client-0] DEBUG o.p.n.channel.DefaultChannelPipeline - Discarded inbound message UnpooledUnsafeDirectByteBuf(ridx: 0, widx: 11, cap: 4096) that reached at the tail of the pipeline. Please check your pipeline configuration. Regards -- Master Of The hi....@bt... |
|
From: Fabio Z. <fa...@gm...> - 2015-10-06 12:00:08
|
Release Highlights: ------------------------------- * Improved PyDev Package Explorer to give more information when all elements are filtered. * Code completion improvements: when a parameter is typed in the docstring, assigning it to an instance gives proper code-completion results when accessing the instance. * Fixed issues dealing with ansi colors in the interactive console. * When autopep8 is applied as the code formatting engine, the region selected is used to specify the lines for formatting. * Minor improvements in the debugger. What is PyDev? --------------------------- PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and IronPython development. It comes with goodies such as code completion, syntax highlighting, syntax analysis, code analysis, refactor, debug, interactive console, etc. Details on PyDev: http://pydev.org Details on its development: http://pydev.blogspot.com What is LiClipse? --------------------------- LiClipse is a PyDev standalone with goodies such as support for Multiple cursors, theming, TextMate bundles and a number of other languages such as Django Templates, Jinja2, Kivy Language, Mako Templates, Html, Javascript, etc. It's also a commercial counterpart which helps supporting the development of PyDev. Details on LiClipse: http://www.liclipse.com/ Cheers, -- Fabio Zadrozny ------------------------------------------------------ Software Developer LiClipse http://www.liclipse.com PyDev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com PyVmMonitor - Python Profiler http://www.pyvmmonitor.com/ |
|
From: John C. <joh...@xa...> - 2015-09-25 23:45:54
|
Hi, Can someone give me the instruction on how to build jython-standalone.jar from source code? Thanks John -- [image: What's New with Xactly] <http://www.xactlycorp.com/email-click/> <https://www.nyse.com/quote/XNYS:XTLY> [image: LinkedIn] <https://www.linkedin.com/company/xactly-corporation> [image: Twitter] <https://twitter.com/Xactly> [image: Facebook] <https://www.facebook.com/XactlyCorp> [image: YouTube] <http://www.youtube.com/xactlycorporation> |
|
From: Quanah Gibson-M. <qu...@zi...> - 2015-09-24 22:23:16
|
--On Thursday, September 24, 2015 3:15 PM -0700 Quanah Gibson-Mount <qu...@zi...> wrote: > AttributeError: 'module' object has no attribute 'getpid' Jython standalone jar was broken between 2.7.0 BETA3 and 2.7.0 BETA4. os.* functions work fine in BETA3 and earlier. They no longer work in 2.7.0 BETA4 and later. --Quanah -- Quanah Gibson-Mount Platform Architect Zimbra, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration |