Is there an effcient way (more so than cgi) of using Python
with Microsoft IIS? Something equivalent to Perl-ISAPI? 12 2358
<ru***@yahoo.co m> wrote in message news:11******** **************@ g10g2000cwb.goo glegroups.com.. . Is there an effcient way (more so than cgi) of using Python with Microsoft IIS? Something equivalent to Perl-ISAPI?
Pywin32 comes with an ISAPI package. See
\lib\site-packages\isapi\ samples\
for some demos.
Roger
----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==---- http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---
Waldemar Osuch wrote: What Roger says and also: http://pyisapie.sourceforge.net/
Thanks for your and Roger's responses.
I looked at pyisapie and there seems to be almost no
dvcumentation -- no sample code and the single readme
is pretty opaque. The pywin isapi has a couple of
examples but its documentation too is pretty bad.
But they both seem to be tissue thin wtrappers around
the MS isapi api. What I was hoping for is something
that would let me run existing cgi scripts efficiently with
minimal changes. I think the isapi and perl-ex stuff that
comes with Activestate's Perl meets this requirement
but the stuff I've found for Python doesn't. So looks
like it's back to Perl for this project :-(. ru***@yahoo.com wrote: Waldemar Osuch wrote:
What Roger says and also: http://pyisapie.sourceforge.net/
Thanks for your and Roger's responses.
I looked at pyisapie and there seems to be almost no dvcumentation -- no sample code and the single readme is pretty opaque. The pywin isapi has a couple of examples but its documentation too is pretty bad. But they both seem to be tissue thin wtrappers around the MS isapi api. What I was hoping for is something that would let me run existing cgi scripts efficiently with minimal changes. I think the isapi and perl-ex stuff that comes with Activestate's Perl meets this requirement but the stuff I've found for Python doesn't. So looks like it's back to Perl for this project :-(.
If you want CGI then there's no need for an ISAPI filter specific to
your programming language - you just need to associate .py requests with
the Python interpreter.
If you want to use Python as an Active Scripting language (i.e. in the
same way that VBScript is used) then you can do this by installing the
win32all extensions maintained by Mark Hammond and enabling Active
Scripting therein.
Don't suffer Perl if you don't want to!
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd www.holdenweb.com
Love me, love my blog holdenweb.blogs pot.com
Steve Holden wrote: If you want CGI then there's no need for an ISAPI filter specific to your programming language - you just need to associate .py requests with the Python interpreter.
If you want to use Python as an Active Scripting language (i.e. in the same way that VBScript is used) then you can do this by installing the win32all extensions maintained by Mark Hammond and enabling Active Scripting therein.
Don't suffer Perl if you don't want to!
Pure cgi is too slow. "Active Scripting" means ASP, yes?
I need something that will do cgi scripts (a lot of which I already
have
and can modify but don't want to rewrite extensively, partly because
of time issues, partly because I want to preserve some degree of
portability back to a unix environment.). I want something that does
for IIS what mod_python does for apache. Fastcgi looked scary even
on unix plaforms, seems like an act of desperation on Windows, ru***@yahoo.com wrote: Steve Holden wrote:
If you want CGI then there's no need for an ISAPI filter specific to your programming language - you just need to associate .py requests with the Python interpreter.
If you want to use Python as an Active Scripting language (i.e. in the same way that VBScript is used) then you can do this by installing the win32all extensions maintained by Mark Hammond and enabling Active Scripting therein.
Don't suffer Perl if you don't want to!
Pure cgi is too slow. "Active Scripting" means ASP, yes? I need something that will do cgi scripts (a lot of which I already have and can modify but don't want to rewrite extensively, partly because of time issues, partly because I want to preserve some degree of portability back to a unix environment.). I want something that does for IIS what mod_python does for apache. Fastcgi looked scary even on unix plaforms, seems like an act of desperation on Windows,
Yes, ASP is Active Scripting.
Remember to use <@ LANGUAGE="PYTHO N" @>
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd www.holdenweb.com
Love me, love my blog holdenweb.blogs pot.com
Steve Holden wrote: ru***@yahoo.com wrote: Pure cgi is too slow. "Active Scripting" means ASP, yes? I need something that will do cgi scripts (a lot of which I already have and can modify but don't want to rewrite extensively, partly because of time issues, partly because I want to preserve some degree of portability back to a unix environment.). I want something that does for IIS what mod_python does for apache. Fastcgi looked scary even on unix plaforms, seems like an act of desperation on Windows, Yes, ASP is Active Scripting.
Remember to use <@ LANGUAGE="PYTHO N" @>
Except I need cgi, not asp, for the reasons i gave. ru***@yahoo.com wrote: Steve Holden wrote: ru***@yahoo.com wrote:
Pure cgi is too slow. "Active Scripting" means ASP, yes? I need something that will do cgi scripts (a lot of which I already have and can modify but don't want to rewrite extensively, partly because of time issues, partly because I want to preserve some degree of portability back to a unix environment.). I want something that does for IIS what mod_python does for apache. Fastcgi looked scary even on unix plaforms, seems like an act of desperation on Windows, Yes, ASP is Active Scripting.
Except I need cgi, not asp, for the reasons i gave.
it seems to me you have no clear idea what you need.
you say you have a lot of CGIs written but you don't clarify if that is
Python or Perl. since you look for python intergration, it seems they
are in python, however in previous posting you say you'll have to
revert to Perl for solution. it just doesnt make sense! if you use
Perl, you will have to REWRITE the scripts and if you do so, it's
unclear why wouldnt you use a superior technology like PHP/ASP/JSP -
any of those is way easier to manage.
it's also unclear why don't you use apache on windows, if mod_python is
your poison.
here is how i imagine you have the layers:
[scripts (CGI?)]
[glue]
[web server (IIS?)]
where the discussion is about the "glue" between them. you say CGI is
too slow for you, so you will want something maintaining the CGI
programming model, but faster. this thing is called FastCGI - but you
are unhappy about it either. there is no way any perl "glue" can solve
your problem between your web server and your python scripts
whatsoever. you'll have to re-code the scripts for perl.
Atanas Banov wrote: ru***@yahoo.com wrote: Steve Holden wrote: ru***@yahoo.com wrote:
> Pure cgi is too slow. "Active Scripting" means ASP, yes? > I need something that will do cgi scripts (a lot of which I already > have > and can modify but don't want to rewrite extensively, partly because > of time issues, partly because I want to preserve some degree of > portability back to a unix environment.). I want something that does > for IIS what mod_python does for apache. Fastcgi looked scary even > on unix plaforms, seems like an act of desperation on Windows, > Yes, ASP is Active Scripting. Except I need cgi, not asp, for the reasons i gave.
it seems to me you have no clear idea what you need.
you say you have a lot of CGIs written but you don't clarify if that is Python or Perl. since you look for python intergration, it seems they are in python, however in previous posting you say you'll have to revert to Perl for solution. it just doesnt make sense! if you use Perl, you will have to REWRITE the scripts and if you do so, it's unclear why wouldnt you use a superior technology like PHP/ASP/JSP - any of those is way easier to manage.
it's also unclear why don't you use apache on windows, if mod_python is your poison.
here is how i imagine you have the layers: [scripts (CGI?)] [glue] [web server (IIS?)]
where the discussion is about the "glue" between them. you say CGI is too slow for you, so you will want something maintaining the CGI programming model, but faster. this thing is called FastCGI - but you are unhappy about it either. there is no way any perl "glue" can solve your problem between your web server and your python scripts whatsoever. you'll have to re-code the scripts for perl.
The final solution must run in a Windows/IIS environment.
Those are part of the requirements which I do not control.
There is code in both Perl and Python. I wrote the Python
stuff and inherited the Perl stuff. It is not web-based now
but conversion to generate html output instead of text is
probably straightforward . Additional requirement is that
is should be movable to unix without too much work.
The layers are:
[database] [equipment interface]
[glue]
[cgi]
[webserver - IIS]
As fo PHP/ASP/JSP? I am doing all the work. I know Perl
and Python. I don't know PHP/JSP. (Also, JSP will require
a lot of new Java infrastructure support, yes?) As for ASP,
I wonder about the "easily moved to unix" requirement.
(I know apache has an asp module but I don't know if other
web servers do, or how compatible apache's is, and I don't
know if I have time to reliably answer those questions.)
Why do you say PHP/JSP/ASP are superior technologies?
All I want to do is avoid the cost of starting a new Python
(or Perl) interpreter on each page request. This is what
I understand Perl-isapi and Perl-Ex does. My question
is simply if there is something similar for Python.
I have concluded the answer is no but hope I'm wrong. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Brandon J. Van Every |
last post by:
I'm realizing I didn't frame my question well.
What's ***TOTALLY COMPELLING*** about Ruby over Python? What makes you jump
up in your chair and scream "Wow! Ruby has *that*? That is SO FRICKIN'
COOL!!! ***MAN*** that would save me a buttload of work and make my life
sooooo much easier!"
As opposed to minor differences of this feature here, that feature there.
Variations on style are of no interest to me. I'm coming at this from a...
|
by: mike420 |
last post by:
I think everyone who used Python will agree that its syntax is
the best thing going for it. It is very readable and easy
for everyone to learn. But, Python does not a have very good
macro capabilities, unfortunately. I'd like to know if it may
be possible to add a powerful macro system to Python, while
keeping its amazing syntax, and if it could be possible to
add Pythonistic syntax to Lisp or Scheme, while keeping all
of the...
|
by: Stephen C. Waterbury |
last post by:
This seems like it ought to work, according to the
description of reduce(), but it doesn't. Is this
a bug, or am I missing something?
Python 2.3.2 (#1, Oct 20 2003, 01:04:35)
on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> d1 = {'a':1}
>>> d2 = {'b':2}
>>> d3 = {'c':3}
|
by: Edward WIJAYA |
last post by:
Hi,
I am new to Python, and I like to
learn more about it. Since I am
used to Perl before, I would like
to know what is Python equivalent
of Perl code below:
$filename = $ARGV;
|
by: Xah Lee |
last post by:
here's another interesting algorithmic exercise, again from part of a
larger program in the previous series.
Here's the original Perl documentation:
=pod
merge($pairings) takes a list of pairs, each pair indicates the
sameness
of the two indexes. Returns a partitioned list of same indexes.
| |
by: Lad |
last post by:
Is anyone capable of providing Python advantages over PHP if there are
any?
Cheers,
L.
|
by: mbbx6spp |
last post by:
Hi All,
I already searched this newsgroup and google groups to see if I could
find a Python equivalent to Perl's Template::Extract, but didn't find
anything leading to a Python module that had similar functionality. I
am a big fan of Python as an OO language and use it for many system
admin utilities, webdev and even MS Excel AddIn development, but I have
found that Perl's Template::Extract is so invaluable to my web scraping
utilities...
|
by: Xah Lee |
last post by:
Sort a List
Xah Lee, 200510
In this page, we show how to sort a list in Python & Perl and also
discuss some math of sort.
To sort a list in Python, use the “sort” method. For example:
li=;
|
by: ccdetail |
last post by:
http://www.tiobe.com/index.htm?tiobe_index
Python is the 7th most commonly used language, up from 8th.
The only one gaining ground besides VB in the top 10.
We're glad, our app is written in python.
It's free at http://pnk.com and it is a web timesheet for project
accounting
|
by: Mladen Gogala |
last post by:
I am a Python newbie who decided to see what that Python fuss is all about.
Quite frankly, I am a bit perplexed. After having had few months of
experience with Perl (started in 1994 with Perl v4, and doing it ever
since) , here is what perplexes me:
perl -e '@a=(1,2,3); map { $_*=2 } @a; map { print "$_\n"; } @a;'
The equivalent in Python looks like this:
Python 2.5.1 (r251:54863, Jun 15 2008, 18:24:51)
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |