[Twisted-Python] Flash AMF and Twisted
![](https://secure.gravatar.com/avatar/228abe46f6c8e9c7c2e8440cfda66ebd.jpg?s=120&d=mm&r=g)
Hi all, Re. this message: http://twistedmatrix.com/pipermail/twisted-python/2007-May/015373.html Has any work been done here? I'm facing a project that requires two-way communication between a Flex/Apollo app and a Twisted server. In my initial tests I used http and comet-like techniques but I'm not sure they are the most efficient way. I'm willing to help with the project - I've already dabbled a little in the DjangoAMF stuff. Arnar
![](https://secure.gravatar.com/avatar/fc076525efed8fdaa3cf7602e15c8daa.jpg?s=120&d=mm&r=g)
FYI, we started coding, check out http://dev.collab.com/twisted-rtmp/ for more info. Thijs On Jun 12, 2007, at 2:06 PM, Arnar Birgisson wrote:
![](https://secure.gravatar.com/avatar/7ed9784cbb1ba1ef75454034b3a8e6a1.jpg?s=120&d=mm&r=g)
On Mon, 18 Jun 2007 00:59:33 +0200, Thijs Triemstra | Collab <lists@collab.nl> wrote:
Looks cool. It's nice you've got examples up already :) I hate to have to ask, but could you change the name of the project to not include "twisted" and take the Twisted logo down? These are marks of the Twisted Matrix Labs team. They aren't for general use by projects which make use of or otherwise depend on Twisted. Thanks, Jean-Paul
![](https://secure.gravatar.com/avatar/fc076525efed8fdaa3cf7602e15c8daa.jpg?s=120&d=mm&r=g)
Hi Jean-Paul,
Ah ok, sorry about that. The name changed and the project can now be found on http://dev.collab.com/rtmpy Thijs
![](https://secure.gravatar.com/avatar/d6328babd9f9a98ecc905e1ccac2495e.jpg?s=120&d=mm&r=g)
On 02:23 am, exarkun@divmod.com wrote:
Thanks, too, for changing this so readily :). It makes me think, though, that maybe we should have a suggested prefix for things-which-use-Twisted, since "py" is a little confusing there. Python has PyXXX, maybe Twisted should have TwiXXX or similar?
![](https://secure.gravatar.com/avatar/d37c7104c024b78dc451e3a6b733df9d.jpg?s=120&d=mm&r=g)
On Jun 18, 2007, at 1:05 PM, glyph@divmod.com wrote:
Personally speaking , It would be nice if Twisted a) had a suggested prefix b) had 2 logos put into the public domain i. a form of the logo for people who want to show support on their sites that run twisted ii. a "powerd by" logo for applicaitons built on twisted. This would be similar to what Mozilla did with the firefox logos. // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | CEO/Founder SyndiClick Networks | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | Founder/CTO/CVO | FindMeOn.com - The cure for Multiple Web Personality Disorder | Web Identity Management and 3D Social Networking | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | RoadSound.com - Tools For Bands, Stuff For Fans | Collaborative Online Management And Syndication Tools | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
![](https://secure.gravatar.com/avatar/78bc9c09e16afd3a2690807a493aba4b.jpg?s=120&d=mm&r=g)
+1 for the logos! -1 for suggested prefix, especially if it's "Twi" - this renders virtually any project name unpronounceable. ;-) Anyway, the Twisted coding guidelines are largely about creative, unambiguous naming. I for one find "py-" names obnoxious, especially since they actually *increase* the chance of a google namespace collision. (What would you name your twisted-based IRC bot? twibot? Too bad three other people did that.) _____________________ *Cory Dodt* basileus augustus codesaurus decipher 5250 n palm ave, ste 220 fresno, ca 93704 t: +1 559 256 0463 f: +1 559 436 6944 www.decipherinc.com <http://decipherinc.com/> On 6/30/07, Jonathan Vanasco <twisted-python@2xlp.com> wrote:
![](https://secure.gravatar.com/avatar/fbd473e7e3b6675a84cd3c3b4a2c1972.jpg?s=120&d=mm&r=g)
On Tuesday 03 July 2007, Cory Dodt wrote:
-1 for suggested prefix, especially if it's "Twi" - this renders virtually any project name unpronounceable. ;-)
Is there really a need for a prefix? In case of the "py" prefix, it seems packages can be divided into two categories: 1. applications that happen to be implemented in Python 2. things Python developers can use, such as Python bindings for an existing C/C++ library In my opinion, category 1 is just developers who can't think of a good name. For the end user the implementation language is mostly irrelevant, so the "py" prefix does not really add information, it just turns a word into a name. I know it's hard to find a good name for a project, but should they be offered an excuse to give up trying? For category 2, maybe a prefix is useful, for example for wrapping a library so it uses Deferreds, or for integrating event loops. Are there many projects like this? The only one I know of is sAsync. Projects like Nevow that are not a layer around something existing would not really benefit from a prefix, I think, since they would still need a name to apply the prefix to. One possible approach for a package-for-Twisted naming convention would be to use "-ed" as a postfix. Most base names will likely be nouns, but those can be verbed for extra silliness. For example the IRC bot would be named "Botted". Having a convention like that acts as an extra incentive to a developer to come up with an original name that does not use the conventional postfix. ;) Bye, Maarten
![](https://secure.gravatar.com/avatar/e993a43b746ade6aaffadece9aa4c034.jpg?s=120&d=mm&r=g)
I only read this message today. About a month ago, I started playing a little with such a project myself. Actually the project is (the millionth) media player on the Wii, but since progressive download on the Wii works only for flv-files smaller than about 100M (it runs out of memory else), I needed a streaming flv server. I'm still trying to get a feel for best practices in Python, however it does get the work done, it can streams flvs to flash player. http://code.google.com/p/wiidiaplayer/ Just wanted to let you know. On 2007-06-12 12:06, Arnar Birgisson wrote:
![](https://secure.gravatar.com/avatar/228abe46f6c8e9c7c2e8440cfda66ebd.jpg?s=120&d=mm&r=g)
On 7/14/07, Reinoud Elhorst <twisted@claude.nl> wrote:
Thanks! Uhh.. I just took a look at your code and though "he's doing this stuff exactly as we did" - until I realized it was my code :/ - I guess that's partly our fault for not including the license disclaimer in our experimental files. To be clear, you are free to copy the code as you like - but please include the copyright notice somewhere (our code is MIT licensed). On the other hand, your RTMP stuff is something we are planning on implementing in RTMPy. I would much appreciate it if you were willing to join our project and help us out, since your input would definitely be of great value. Our page is at http://dev.collab.com/rtmpy (seems to be down atm) and our ML is at http://lists.collab.com/mailman/listinfo/rtmpy. Arnar
![](https://secure.gravatar.com/avatar/e993a43b746ade6aaffadece9aa4c034.jpg?s=120&d=mm&r=g)
Arnar Birgisson wrote:
The rest of the rtmpcode is a port from http://code.google.com/p/haxevideo/, mixed with a lot of my own to server specific file types. I joined the rtmpy lists, hopefully I can be of some value! Reinoud
![](https://secure.gravatar.com/avatar/fc076525efed8fdaa3cf7602e15c8daa.jpg?s=120&d=mm&r=g)
FYI, we started coding, check out http://dev.collab.com/twisted-rtmp/ for more info. Thijs On Jun 12, 2007, at 2:06 PM, Arnar Birgisson wrote:
![](https://secure.gravatar.com/avatar/7ed9784cbb1ba1ef75454034b3a8e6a1.jpg?s=120&d=mm&r=g)
On Mon, 18 Jun 2007 00:59:33 +0200, Thijs Triemstra | Collab <lists@collab.nl> wrote:
Looks cool. It's nice you've got examples up already :) I hate to have to ask, but could you change the name of the project to not include "twisted" and take the Twisted logo down? These are marks of the Twisted Matrix Labs team. They aren't for general use by projects which make use of or otherwise depend on Twisted. Thanks, Jean-Paul
![](https://secure.gravatar.com/avatar/fc076525efed8fdaa3cf7602e15c8daa.jpg?s=120&d=mm&r=g)
Hi Jean-Paul,
Ah ok, sorry about that. The name changed and the project can now be found on http://dev.collab.com/rtmpy Thijs
![](https://secure.gravatar.com/avatar/d6328babd9f9a98ecc905e1ccac2495e.jpg?s=120&d=mm&r=g)
On 02:23 am, exarkun@divmod.com wrote:
Thanks, too, for changing this so readily :). It makes me think, though, that maybe we should have a suggested prefix for things-which-use-Twisted, since "py" is a little confusing there. Python has PyXXX, maybe Twisted should have TwiXXX or similar?
![](https://secure.gravatar.com/avatar/d37c7104c024b78dc451e3a6b733df9d.jpg?s=120&d=mm&r=g)
On Jun 18, 2007, at 1:05 PM, glyph@divmod.com wrote:
Personally speaking , It would be nice if Twisted a) had a suggested prefix b) had 2 logos put into the public domain i. a form of the logo for people who want to show support on their sites that run twisted ii. a "powerd by" logo for applicaitons built on twisted. This would be similar to what Mozilla did with the firefox logos. // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | CEO/Founder SyndiClick Networks | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | Founder/CTO/CVO | FindMeOn.com - The cure for Multiple Web Personality Disorder | Web Identity Management and 3D Social Networking | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | RoadSound.com - Tools For Bands, Stuff For Fans | Collaborative Online Management And Syndication Tools | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
![](https://secure.gravatar.com/avatar/78bc9c09e16afd3a2690807a493aba4b.jpg?s=120&d=mm&r=g)
+1 for the logos! -1 for suggested prefix, especially if it's "Twi" - this renders virtually any project name unpronounceable. ;-) Anyway, the Twisted coding guidelines are largely about creative, unambiguous naming. I for one find "py-" names obnoxious, especially since they actually *increase* the chance of a google namespace collision. (What would you name your twisted-based IRC bot? twibot? Too bad three other people did that.) _____________________ *Cory Dodt* basileus augustus codesaurus decipher 5250 n palm ave, ste 220 fresno, ca 93704 t: +1 559 256 0463 f: +1 559 436 6944 www.decipherinc.com <http://decipherinc.com/> On 6/30/07, Jonathan Vanasco <twisted-python@2xlp.com> wrote:
![](https://secure.gravatar.com/avatar/fbd473e7e3b6675a84cd3c3b4a2c1972.jpg?s=120&d=mm&r=g)
On Tuesday 03 July 2007, Cory Dodt wrote:
-1 for suggested prefix, especially if it's "Twi" - this renders virtually any project name unpronounceable. ;-)
Is there really a need for a prefix? In case of the "py" prefix, it seems packages can be divided into two categories: 1. applications that happen to be implemented in Python 2. things Python developers can use, such as Python bindings for an existing C/C++ library In my opinion, category 1 is just developers who can't think of a good name. For the end user the implementation language is mostly irrelevant, so the "py" prefix does not really add information, it just turns a word into a name. I know it's hard to find a good name for a project, but should they be offered an excuse to give up trying? For category 2, maybe a prefix is useful, for example for wrapping a library so it uses Deferreds, or for integrating event loops. Are there many projects like this? The only one I know of is sAsync. Projects like Nevow that are not a layer around something existing would not really benefit from a prefix, I think, since they would still need a name to apply the prefix to. One possible approach for a package-for-Twisted naming convention would be to use "-ed" as a postfix. Most base names will likely be nouns, but those can be verbed for extra silliness. For example the IRC bot would be named "Botted". Having a convention like that acts as an extra incentive to a developer to come up with an original name that does not use the conventional postfix. ;) Bye, Maarten
![](https://secure.gravatar.com/avatar/e993a43b746ade6aaffadece9aa4c034.jpg?s=120&d=mm&r=g)
I only read this message today. About a month ago, I started playing a little with such a project myself. Actually the project is (the millionth) media player on the Wii, but since progressive download on the Wii works only for flv-files smaller than about 100M (it runs out of memory else), I needed a streaming flv server. I'm still trying to get a feel for best practices in Python, however it does get the work done, it can streams flvs to flash player. http://code.google.com/p/wiidiaplayer/ Just wanted to let you know. On 2007-06-12 12:06, Arnar Birgisson wrote:
![](https://secure.gravatar.com/avatar/228abe46f6c8e9c7c2e8440cfda66ebd.jpg?s=120&d=mm&r=g)
On 7/14/07, Reinoud Elhorst <twisted@claude.nl> wrote:
Thanks! Uhh.. I just took a look at your code and though "he's doing this stuff exactly as we did" - until I realized it was my code :/ - I guess that's partly our fault for not including the license disclaimer in our experimental files. To be clear, you are free to copy the code as you like - but please include the copyright notice somewhere (our code is MIT licensed). On the other hand, your RTMP stuff is something we are planning on implementing in RTMPy. I would much appreciate it if you were willing to join our project and help us out, since your input would definitely be of great value. Our page is at http://dev.collab.com/rtmpy (seems to be down atm) and our ML is at http://lists.collab.com/mailman/listinfo/rtmpy. Arnar
![](https://secure.gravatar.com/avatar/e993a43b746ade6aaffadece9aa4c034.jpg?s=120&d=mm&r=g)
Arnar Birgisson wrote:
The rest of the rtmpcode is a port from http://code.google.com/p/haxevideo/, mixed with a lot of my own to server specific file types. I joined the rtmpy lists, hopefully I can be of some value! Reinoud
participants (9)
-
Arnar Birgisson
-
Cory Dodt
-
glyph@divmod.com
-
Jean-Paul Calderone
-
Jonathan Vanasco
-
Maarten ter Huurne
-
Marco Giusti
-
Reinoud Elhorst
-
Thijs Triemstra | Collab