#python - Fri 6 Apr 2007 between 01:31 and 01:38



thefirstdudeI'm making an http server
ironfroggywell, python includes an http server.
XamuskI'm taking a look at ConfigParser's help
thefirstdudehmm, It's highly custom though
dandersonthefirstdude: import SimpleHTTPServer might interest you
ironfroggyand there are at least a few others of varying design and capacity.
at the very least, as a base.
dandersondon't be fooled by the "simple"
ironfroggyyou might be interested in Twisted.
dandersonit just means it doesn't know how to do much by itself. Not that you can't add the functionality :)
actionTheKrillr murders twisted.
TheKrillrmurders twisted.
twisted raped by brain once a long time ago.
*my
Xamusknice thing you said something about twisted... once I saw it could be used to pass objects through a network connection
dandersonTwisted has very high level, very complete servers for a lot of protocols. As you can see however, approval of twisted is not unanimous.
ironfroggyunanimous it is not, but denied its power um.. also, not.
dandersonXamusk: yeah, it has a few object serialization protocols
actionTheKrillr coughs
TheKrillrcoughs
really twisted is awesome. just mind-bogglingly complex at times.
and makes a lot of things for complicated than they need to be
ironfroggyactually the move is away from serializing and onto asyncronous message passing (AMP).
Xamuskdanderson, I'll need that to pass some e-mail-like messages directly
TheKrillrinterestin.
dandersonoh, right. I was looking for that term. AMP.
ironfroggytwisted can be complicated, but for most purposes its mind numbingly simple to toss in some callbacks and suddenly have a function server with custom protocols, or whatever else you need.
their amp protocol is also implemented in Java and PHP, among others.
thefirstdudeI'm making an http server, but clients need to interact with each other and I need to pend requests
dandersonit makes a lot of things confusing when you want to do something fairly simple, and I find the docs very confusing as they present many ways to do the same thing, and are unclear as to what best practices are.
TheKrillrironfroggy: yes but its mind-bogglingly complicated to realize that simplicity due to the nature of twisted's design.
thefirstdudeand give dynamic responses based on the program state
dandersonbut, I remember about a year ago I'd really gotten into twisted, and reached some kind of zen where it made perfect sense
ironfroggythefirstdude: at least take some time to evaluate twisted. it may be very good for you.
thefirstdudeI'm doing that right now :D
TheKrillrdanderson: lucky. i usually give up before i get there
ironfroggyTheKrillr: i consider that documentation problems.
sproingieif you think twisted is nasty, try perl's POE
actionTheKrillr avoids perl at all costs.
TheKrillravoids perl at all costs.
CSWookieI think it would be cool if twisted had a way to say, "There's deferred craziness inside this function, but it's not getting out."
TheKrillr>.> print "There's deferred craziness inside this function, but it's not getting out."
slap that in a twisted app. there ye go.

Page: 4 11 18 25 32 39 46 53 60 67 74 81 88 95 

IrcArchive