473,578 Members | 3,286 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Does Python have a Template::Extra ct equivalent from Perl's CPAN

Hi All,

I already searched this newsgroup and google groups to see if I could
find a Python equivalent to Perl's Template::Extra ct, 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::Extra ct is so invaluable to my web scraping
utilities that I can not migrate this very old code base over to Python
yet since there is nothing that I can easily port it over to without
making my web scrapers very brittle to website redesigns. I while I
think Perl is a wonderful language in its own right I would rather just
code more of my codebase in Python than Perl to make my coding more

If anyone knows of a Python module that has the same features of
Template::Extra ct please let me (and maybe the group) know. If nobody
is not aware of any module, I would be interested in developing one for
the Python public. Please let me know if anyone else is interested and
I can setup a sf.net project to get this rolling (unless anyone knows
of an sf.net like website that offers Subversion instead of CVS?).


Jul 19 '05 #1
5 2059
should have read, "if nobody is aware of any module..." not "if nobody
is not aware...".

Jul 19 '05 #2
Can you please elaborate on how to use Python for MS Excel AddIn
development? Is this easy to do? I would love to be able to create
custom extensions to Excel using python! IMHO Python is much better
than Perl due to its OOP features.


Jul 19 '05 #3
Please start a new thread when appropriate.

combinational.l ogic $ soc-ip.com wrote:
Can you please elaborate on how to use Python for MS Excel AddIn
development? Is this easy to do? I would love to be able to create
custom extensions to Excel using python! IMHO Python is much better
than Perl due to its OOP features.

Do you mean automating Excel sheets using Python? If so, you need to get
a COM interface from Python (see Mark Hammond's win32all Python
extensions for this), and you need to figure out the proper com calls,
which is easiest by going into Excel and recording a macro, and then
taking a look at the vbscript the macro recorded.

Paul McNett

Jul 19 '05 #4
Thanks Paul! When I get a chance I'll mess around with Py + Excel as
you have suggested . I was hoping not to have to deal with VBScript :)

Jul 19 '05 #5
CL, after you install py_win32 on windows you should look for a module
called "excel*.py" under your ${PYTHONHOME} directory. They have a
very basic COM Server Excel AddIn as an example.

Jul 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Robert Oschler | last post by:
What is the Python equivalent of the C# StringCollection container? I'm trying to port some C# code over to Python. Thanks. Robert
by: Dan | last post by:
Is there a python equivalent of this trick in C? Logic_Test ? True_Result : False_Result Example: printf( "you have %i %s", num_eggs, num_eggs > 1 ? "eggs" : "egg" );
by: Dekaritae | last post by:
I have a script that I've written in Perl that retrieves files generated from a template. It works decently enough, but I'd like to rewrite it in Python (Perl was just a detour; it was originally Sed). Was wondering what the closest thing to what I'm using now in Perl (LWP::UserAgent and HTTP::Request:Common) is in Python. The main bit of...
by: Just | last post by:
While googling for a non-linear equation solver, I found Math::Polynomial::Solve in CPAN. It seems a great little module, except it's not Python... I'm especially looking for its poly_root() functionality (which solves arbitrary polynomials). Does anyone know of a Python module/package that implements that? Just
by: malachi | last post by:
Is there an python equivalent to perl IDENT module, specifically the client functionality ? TIA
by: AndyL | last post by:
Hi, What would by a python equivalent of following shell program: #!/bin/sh prog1 > file1 & prog2 > file2 &
by: Kurien Mathew | last post by:
Hello, Any suggestions on a good python equivalent for the following C code: while (loopCondition) { if (condition1) goto next; if (condition2) goto next;
by: Jean-Paul Calderone | last post by:
On Sat, 16 Aug 2008 23:20:52 +0200, Kurien Mathew <kmathew@envivio.frwrote: Goto isn't providing much value over `if´ in this example. Python has a pretty serviceable `if´ too: while loopCondition: if not (condition1 or condition2 or condition3): stmt1 stmt2 stmt3
by: ivandatasync | last post by:
I have read about both Plone and Alfresco being considered as alternatives to Sharepoint and unfortunately they may not be enough if you require everything Sharepoint has too offer. Plone and Alfresco are both great applications but out of the box they are too focused to be complete replacements. Sharepoint is quite the Monolithic beast when...
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...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
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...
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...
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.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.