Re: [Tutor] How to Create Webpage with Python

2014-07-25 Thread John Cast
Hey everyone, So against all of your better judgement I went ahead and implemented my server through the simpleHTTPServer in python and used win32com to hook up to excel to widen the existing excel columns and then call "SaveAs()" into .htm format (basically programmatically doing the "save as web

Re: [Tutor] How to Create Webpage with Python

2014-07-15 Thread John Cast
Yes, that pretty well sums up what I would like to do. I can't show the input here, but it is saved as an xlsx file (this is proving problematic for me already since I'm using python 3.4 and it doesn't fully support this format yet...I may have to switch to python 2 for better support). I don't th

Re: [Tutor] How to Create Webpage with Python

2014-07-15 Thread Alan Gauld
On 15/07/14 17:48, John Cast wrote: 1) How does one automate the save as webpage from python? It is possible using COM objects and the pywin32 library. However that's rarely the best way to approach things. But if you insist... Here is a short example of opening a FileOpen dialog... import w

Re: [Tutor] How to Create Webpage with Python

2014-07-15 Thread Joel Goldstick
On Tue, Jul 15, 2014 at 12:48 PM, John Cast wrote: > Yes, that's exactly what I'm trying to do. However, when testing this out > manually like I pointed to above, the output of the save as feature freezes > the column widths. This would be fine except that not all of the column > widths are exp

Re: [Tutor] How to Create Webpage with Python

2014-07-15 Thread John Cast
Yes, that's exactly what I'm trying to do. However, when testing this out manually like I pointed to above, the output of the save as feature freezes the column widths. This would be fine except that not all of the column widths are expanded so that all of the text can be seen (at the moment I do

Re: [Tutor] How to Create Webpage with Python

2014-07-15 Thread Chris “Kwpolska” Warrick
On Jul 15, 2014 3:17 AM, "John Cast" wrote: > > Hey everyone, > > I really appreciate all of the help you given me. > I am making progress, however I have reached a problem I'm not sure how best to tackle and would like someone with more experience with excel and python to lend their knowledge/opi

Re: [Tutor] How to Create Webpage with Python

2014-07-14 Thread John Cast
Hey everyone, I really appreciate all of the help you given me. I am making progress, however I have reached a problem I'm not sure how best to tackle and would like someone with more experience with excel and python to lend their knowledge/opinion before I dive in further. I have two questions:

Re: [Tutor] How to Create Webpage with Python

2014-07-12 Thread Danny Yoo
Hi Chris, Yikes. I need to say that as, for disclosure: I work at Google. I do not work on the App Engine team, but I need to acknowledge my potential conflict-of-interest, and I apologize for not stating this in my reply. ___ Tutor maillist - Tutor@

Re: [Tutor] How to Create Webpage with Python

2014-07-12 Thread Danny Yoo
> On Fri, Jul 11, 2014 at 6:21 AM, Danny Yoo wrote: >> The ones I use for my personal and professional use are webfaction.com and >> appengine.google.com. I'm sure others can give more suggestions. > > Both are services used for hosting webapps, not static websites. Hi Chris, It's true that ho

Re: [Tutor] How to Create Webpage with Python

2014-07-11 Thread Dave Angel
John Cast Wrote in message: > > will be hosting this (for the foreseeable future at least) on my desktop. There is another python script already written that generates the excel spreadsheets (I did not write this). That script will be ran on a fairly frequent basis so the webpage will constan

Re: [Tutor] How to Create Webpage with Python

2014-07-11 Thread Chris “Kwpolska” Warrick
On Fri, Jul 11, 2014 at 4:07 AM, John Cast wrote: > For future reference (assuming everything else goes well) how do I procure a > more permanent server (i.e. one that doesn't run on my machine so that I can > turn it off and still be able to visit my pages)? I'm hearing Apache and so > forth bei

Re: [Tutor] How to Create Webpage with Python

2014-07-10 Thread Danny Yoo
> For future reference (assuming everything else goes well) how do I procure a more permanent server (i.e. one that doesn't run on my machine so that I can turn it off and still be able to visit my pages)? I'm hearing Apache and so forth being thrown around (I've read up a little on it) but it see

Re: [Tutor] How to Create Webpage with Python

2014-07-10 Thread John Cast
Thanks everyone again for the great support. Right now I have a very basic server running using the http module (I'm using python 3). My next step is to generating the HTML pages so that the formatting of the excel docs stays pretty much the same except that it gets shown on the web. For future

Re: [Tutor] How to Create Webpage with Python

2014-07-10 Thread Chris “Kwpolska” Warrick
On Thu, Jul 10, 2014 at 6:40 PM, Alex Kleider wrote: > If all you want is to check how your 'site' looks perhaps it'd be much > simpler to simply point your browser to your parent html file rather than > set up a server machine to serve it: > file:///home/yourusername/yoursubdirectory/index.html >

Re: [Tutor] How to Create Webpage with Python

2014-07-10 Thread Alex Kleider
On 2014-07-10 05:28, Chris “Kwpolska” Warrick wrote: On Thu, Jul 10, 2014 at 3:30 AM, John Cast wrote: It sounds like I need a server on my desktop? I need to create a site and host/serve this somehow using my server? Hosting websites off a desktop can be troublesome. Y

Re: [Tutor] How to Create Webpage with Python

2014-07-10 Thread Chris “Kwpolska” Warrick
On Thu, Jul 10, 2014 at 3:30 AM, John Cast wrote: > I'm in unfamiliar territory with the web stuff, but it sounds so far like I > will generate an HTML doc every time I run my script and then somehow turn > that HTML doc into a static site? (My terminology is weak here I'm sure) If you go with t

Re: [Tutor] How to Create Webpage with Python

2014-07-10 Thread Walter Prins
Hi, On 10 July 2014 02:30, John Cast wrote: > Web - Currently it looks like maybe static HTML page(s) generated every time > my script is run is the right way to go? It would be one way to proceed, yes, perhaps the most appropriate way for you for now. > It sounds like I need a server

Re: [Tutor] How to Create Webpage with Python

2014-07-09 Thread John Cast
Thanks everyone for the tremendous and speedy support! Here's a bit more information that I think would be useful: I will be hosting this (for the foreseeable future at least) on my desktop. There is another python script already written that generates the excel spreadsheets (I did not write this

Re: [Tutor] How to Create Webpage with Python

2014-07-09 Thread Mark Lawrence
On 09/07/2014 19:26, John Cast wrote: First, please forgive any ignorance in my post here as I am not good with HTML and new to python. I have a bunch of excel spreadsheets (all in the same format) that I am writing a python script to go through and pick out some information and post to a wiki p

Re: [Tutor] How to Create Webpage with Python

2014-07-09 Thread Alan Gauld
On 09/07/14 19:26, John Cast wrote: I have a bunch of excel spreadsheets (all in the same format) that I am writing a python script to go through and pick out some information and post to a wiki page. I'm new to python and have gone through some basic tutorials. I feel confident that I can figur

Re: [Tutor] How to Create Webpage with Python

2014-07-09 Thread Walter Prins
Hi John, Welcome you to the Python tutor mailing list. On 9 July 2014 19:26, John Cast wrote: > > First, please forgive any ignorance in my post here as I am not good with > HTML and new to python. Not a problem. Although the list if formally about learning the basics of Python, there's many

[Tutor] How to Create Webpage with Python

2014-07-09 Thread John Cast
First, please forgive any ignorance in my post here as I am not good with HTML and new to python. I have a bunch of excel spreadsheets (all in the same format) that I am writing a python script to go through and pick out some information and post to a wiki page. I'm new to python and have gone thr