October 2nd, 2003, 06:35 PM
XHTML and Python
Do you know of any tutorials that teach you about making an XHTML page and importing Python scripts?
Example: Getting date and time.
October 2nd, 2003, 07:09 PM
Sorry i'm lost, can you examplain what you mean ..
October 2nd, 2003, 08:42 PM
This is so hard to explain.
Say you are making an XHTML/XML page. (Saved as .htm) In the script of the page, you import Python scripts to do certain things like get the date and time.
October 2nd, 2003, 09:32 PM
October 2nd, 2003, 10:18 PM
You mean you want to call a CGI program from within a html page? If so i've seen perl counters called in this way but i don't know how exactly..
October 2nd, 2003, 10:29 PM
I think I want to call a CGI program. I just know someone made a page in XHTML/XML and they imported Python scripts.
October 2nd, 2003, 11:05 PM
*cough* read the above paper
October 3rd, 2003, 10:05 AM
I've read the paper strike (read it last night ), was very interstig. But it didn't say anything about calling a python program from inside plain html which is what were talking about here?
October 3rd, 2003, 10:50 AM
do you mean something like invoking python code inside of html, like jsp style?
you might give spyce or psp a try or something... and yeah, read the linked paper
October 3rd, 2003, 11:52 AM
I'm definatly a Spyce kinda guy when it comes to embedding Python in html. PSP just doesn't sit well with me for some reason. Maybe it's the whole Java thing
Anyway there does seems to be some comfusion about what exactly we're talking about here .. maybe you could give us some more info?
Edit: I would read the article Strike pointed to if you havn't already, if only out of interest.
Last edited by netytan; October 3rd, 2003 at 11:54 AM.
October 3rd, 2003, 05:25 PM
I read the paper. It was a very good read but didn't explain what I wanted. I think you guys are on the right track of what I was wanting to do.
So should I get Spyce?
* What is Rpy?
October 3rd, 2003, 05:31 PM
RPy: it's an interface between python and "R-Programming Language"... which, i think, is a statistical programming language. i don't know much more than that, i just googled it.
as far as spyce goes... Mark seems to really like it. i think it's pretty powerful (seems like it) but i don't know what it's like to actually use it (speed, flexibility, etc).
you can find it at http://spyce.sourceforge.net/
October 3rd, 2003, 05:46 PM
Is it possible to embed Python into XHTML without having to download anything?
October 3rd, 2003, 08:15 PM
Well i've chatted to the guy who made Spyce a few times which kinda helps and i'd It's fast enough, i wouldn't say that it's speedy.. well unless of course you run it with mod_python or fastcgi then
So if you're looking for speed then Spyce probably isn't for you, but if your looking for power, some sweet features and truly Pythonic way to work on the web then i think you'll be surprised.
If your on windows then you can probably get ASP to handle embedding Python for you, other than that you could write you're own?
October 3rd, 2003, 10:51 PM
Is there any program that has speed AND power? Both are very important to me.
If you have a program like Spyce, do you have to use a certain extension? Such as ".spy" Is there a program where you can just save it as ".htm" or ".html"?
You can't have ASP on Windows XP: Home Edition. I'm saving up to build a computer. I'm going to have Debian as my operating system. (Best OS ever! )