Does anyone script in Python?

sekinto

New Member
Messages
3
Reaction score
0
Points
0
I'm just learning Python. So far I have made a Rectangle Creator based on hight/width parameters... a Recursive Formula Calculator, an Isosceles Triangle Creator based on hight/width parameters, an English-->H4X0R Translator, and I am currently working on a financial organizer.
 
Last edited:

wh00p101

New Member
Messages
241
Reaction score
0
Points
0
sounds like you're more than just learning it. you seems to have a fairly good knowledge of it. At least that's the impression I get from what you've already created. I wouldn't mind seeing what you've created.
 

Dannz

New Member
Messages
43
Reaction score
0
Points
0
I script in Python. For webapps I've been using XMLRPC with MySQLdb interface with a Flash SWF client. On my own set up I've also done a low latency TCP socket server to link Flash swfs with Python (giving the extra functionality of Python for databases etc.) Also done some image analysis stuff in Python involving geometry etc., Binocular to 3D mapping program, and a few other bits and pieces.

What are you using to display the shapes? The big weakness I found with Python was lack of a good easy GUI (having come from programming Flash and Actionscript) - hence I tend to use Python as middleware and Flash as GUI.
 

Slothie

New Member
Messages
1,429
Reaction score
0
Points
0
@Dannz: You've never used pyGTK? I find it helps a lot in creating GUI for apps that I create.
 

Dannz

New Member
Messages
43
Reaction score
0
Points
0
I looked at it, but couldn't see any benefit over Flash. SWFs compile once so with Python this allows for good cross-platform development (as with pyGTK), and using TCP/IP connection between the two means that desktop apps I develop can be deployed on web easily. (Maybe pyGTK can run in a browser, but I haven't seen that). There is more that can be done in Flash than pyGTK, and dozens of extensions, and a quick and easy GUI for prototyping (I admit I use scripting rather than components in final versions, but for quick design mockups its great to drag a button to the stage). Flash has good documentation, and there are lots of resources to use.

As with most things, it depends what you need the GUI to do, but for a web-based GUI run on a server in an n-tier setup with Python, I find Flash swfs does everything I've ever needed to do. I once tried to build the same GUI in Python, but found lack of being able to simply do simple things like layers, swapping depths, and so forth to be a real problem - at least for what I needed to do.

Have you tried Flash? (drag and drop the components, add a couple of lines of code, and its working).
 

Slothie

New Member
Messages
1,429
Reaction score
0
Points
0
I don't use python for web applications. I use it mainly when I need a quick application done and I don't feel like using delphi :)
 

Dannz

New Member
Messages
43
Reaction score
0
Points
0
Slothie, any reason why you don't use Python for web apps? What do you use? What kind of web apps and Python apps do you do?
 

Slothie

New Member
Messages
1,429
Reaction score
0
Points
0
Well, I happen to like using PHP/JSP. Flash is great, the only problem is its effin' hard to get search engines to index it.

With ajax, there's not much I can't do that flash can nowadays anyway.
 

mattura

Member
Messages
570
Reaction score
2
Points
18
I know some python, the last thing I wrote was a code breaker for vigenere ciphers. Works pretty well too, if I say so myself (well it cracked Simon Singh's The Codebook's vigenere no problem). I had a cunning mathematical idea at the heart of it that I thought was very neat.

Yeah flash is v cool, especially when you can get it to interact with php/ajax.
 

Dannz

New Member
Messages
43
Reaction score
0
Points
0
The indexing isn't a problem for me - but I think that's been dealt with in CS3. I never got into PHP/JSP because I found Python was easier and faster, though I found Lua and LSP is really nice also.
 

Dannz

New Member
Messages
43
Reaction score
0
Points
0
You hit it - Flash is cool if its interacting with cgi - only I use Python instead of PHP or Ajax.
 
Top